#Basic Problem
1 messages · Page 1 of 1 (latest)
** You are now Level 1! **
Well if the objective is to only add 1 point you could add a debounce
Or just utilize an if statement to only award a point if the value is <=0
ty very much I will try that
bruh wait
local debounce = false
script.Parent.Touched:Connect(function(hit)
if debounce = false then
debounce = true
print("e")
wait(1)
debounce = false
end
end)
there
@warm lark
thank you
What this does is checks if a variable named debounce is false, if it is it will turn debounce (cooldown) to true, run the code, wait 1 second and turn the cooldown off meaning you can touch the part again
happy scripting!
ok thank you for detailed answer