So after touching the part and getting 'minutes' aka the currency I want the script to break so it won't be able to get any more minutes from the part. Anyone know how? I tried to; then break, break, wait(seconds) break, etc and it won't work.
THE SCRIPT;
script.Parent.Touched:Connect(function(hit)
local debounce = true
if debounce then
debounce = false
if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
local player = game.Players[hit.Parent.Name]
player.leaderstats.Minutes.Value += 1
end
debounce = false
end
end)

3 comments
(Ah, the script is looking odd when I copied and pasted-)
Well, please put your code in Lua Code Block. If you don't know how, just click on blue Lua button and ~~~ may appear. Just paste your code in between them
Oh okay thankyou