local ATM = script.Parent debounce = false ATM.Touched:connect(function(entity) if entity.Parent.Name == "WaterEssence" and debounce == false then debounce = true local Man = entity.Parent.Parent.Parent local player = game.Players:GetPlayerFromCharacter(Man) local EXP = player.leaderstats:FindFirstChild("EXP") EXP.Value = EXP.Value + 100 print(EXP.Value) wait(1) debounce = false end end)
Whats my error? it should give EXP when touched with WaterEssence, but it isnt doing it.