Ive used this code and it isnt working:
script.Parent.Touched:Connect(function(hit) local human = hit.Parent:FindFirstChild("Humanoid") if human ~= nil then local plr = game.Players:GetPlayerFromCharacter(hit.Parent) while true do if plr.leaderstats.Coins.Value >= 200 then script.Parent:Destroy() end end end end)
Pls tell me what i did wrong.
