I have made a textbutton GUI to give a player a tool into their backpack. The tool is given but does not work, I placed it in the starter pack and it functions works well. There are no errors or mistakes in the script. It just does not work
I think it has something to do with filtering enabled...
Script:
local used = false
local desuboru = game.ReplicatedStorage.Attacks.Desuboru
script.Parent.MouseButton1Click:Connect(function()
if used == false then
local clone = desuboru:Clone()
clone.Parent = game.Players.LocalPlayer.Backpack
used = true
else
script.Parent.Text = "Equipped"
wait(1)
script.Parent.Text = "Equip"
end
end)
Please help!

1 comment
I tried on the server but didn't clone on server , thanks a lot!