This should be a simple fix but I’m just not sure how to do it.
I need the player to click the button and get the gear into their backpack which is working fine, but when they equip it, it’s still in the spot where I spawned the gear in studio and not letting the player move. GIF below.
This is the script I am using:
local tool = game.ReplicatedStorage.JetPack
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)
If any more information is needed I most likely be able to provide. I am using the official gear from the catalog that I inserted with the command bar in studio.