Universal Script 📌
7.7k Views
218 Executions

Client Item Giver

Universal Script 📌
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

You need to write the id of the item and its client so nobody can see what you have in your hand and if its like a Hyperlasergun it will not eliminate people if you know what im talking about

View Raw
--// LocalScript - Item Giver (Client-side, múltiple ID compatible)

local player = game.Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")

-- GUI principal
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "ItemGiver"
ScreenGui.ResetOnSpawn = false
ScreenGui.Parent = playerGui

local Frame = Instance.new("Frame")
Frame.Size = UDim2.new(0, 260, 0, 160)
Frame.Position = UDim2.new(0.5, -130, 0.5, -80)
Frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
Frame.BorderSizePixel = 0
Frame.Parent = ScreenGui

-- Draggeable
local dragging, dragInput, dragStart, startPos

local function update(input)
	local delta = input.Position - dragStart
	Frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
end

Frame.InputBegan:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
		dragging = true
		dragStart = input.Position
		startPos = Frame.Position
		input.Changed:Connect(function()
			if input.UserInputState == Enum.UserInputState.End then
				dragging = false
			end
		end)
	end
end)

Frame.InputChanged:Connect(function(input)


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Universal Script 📌
5.2k
16.8k
Bumped 23 minutes ago
Universal Script 📌
47.3k
40.2k
Bumped 6 hours ago
Script hub
116.4k
176.2k
Bumped 8 hours ago
Key System
Script hub
14.8k
73.1k
Bumped 8 hours ago
Universal Script 📌
35.6k
1.1M
Bumped 8 hours ago
Universal Script 📌
20.4k
206.5k
Bumped 9 hours ago