local Part = script.Parent local Tool = game.Lighting.GravityCoil local Player = game.Players:GetPlayerFromCharacter(Part.Parent) local Debounce = false if Tool and Part then Part.Touched:connect(function(Part) local Humanoid = Part.Parent.Parent.Parent.Parent.Parent.Parent:FindFirstChild('Humanoid') if Humanoid and Debounce == false then Debounce = true local Player = game.Players:GetPlayerFromCharacter(Part.Parent) if Player then local ClonedTool = Tool:Clone() ClonedTool.Parent = Player.Backpack wait(10) end wait() Debounce = false end end) end
Error:
local part = script.Parent; local tool = game:GetService("ServerStorage"):FindFirstChild("GravityCoil"); -- Move your gravity coil to Server storage, it doesn't belong in lighting. local debounce = true; if (tool) then part.Touched:connect(function(touchee) local player = game:GetService("Players"):GetPlayerFromCharacter(touchee.Parent); if (player and debounce) then tool:Clone().Parent = player.Backpack; debounce = false; wait(10); debounce = true; end end) end