My code is:
script.Parent.Touched:Connect(function(hit)
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
local cup = game.ReplicatedStorage:WaitForChild("Cup")
local debounce = false
if debounce == false then
debounce = true
script.Parent.Parent = game.ReplicatedStorage
end
cup:Clone().Parent = plr.Backpack
if debounce == true then
wait(5)
debounce = false
game.ReplicatedStorage.CupGiver.Parent = workspace
end
end)
