It wont give me gems after i touch it
local deb = false script.Parent.Touched:connect(function(hit) if game.Players.LocalPlayer.Maxgems.Max.Value - game.Players.LocalPlayer.leaderstats.Gem.Value > 0 then if hit.Parent:FindFirstChild("Humanoid") then if deb == false then for _,Player in pairs(game.Players:GetPlayers()) do if Player:FindFirstChild("leaderstats") then Player.leaderstats.Gem.Value = Player.leaderstats.Gem.Value +1 workspace.CollectSound:Play() script.Parent:Destroy() if game.Players.LocalPlayer.leaderstats.Gem.Value > game.Players.LocalPlayer.Maxgems.Max.Value then game.Players.LocalPlayer.leaderstats.Gem.Value = 10 end end end end end end deb = true wait(0.1) deb = false end)
No output errors
You destroyed the parent of your script thus destroying your script. EDIT: Move your script somewhere else other than the parent of the current script.