Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help me with tool script, say what i need for making tool dont stuck in his position. Idk how?

Asked by 2 years ago
Edited 2 years ago

Please tell me what to add to make the tool in hand dont stuck code:

local tool = game.ServerStorage.Tablet

local giver = script.Parent

local canGive = false

local function GiveTool(player)

if canGive == false then

canGive = true

local clone = tool:Clone()

clone.Parent = player.Backpack

wait(1)

canGive = false

    end

end

giver.ClickDetector.MouseClick:Connect(function(player)

GiveTool(player)

end)

Answer this question