#how to make a cooldown on touch event
1 messages · Page 1 of 1 (latest)
uhh
do a cd
jk
exemple
local OnTouchCD = [false,1}
thing.touched:Once(function() -- or use connect
if OnTouchCD[1] == false then
OnTouchCD[1] = true
task.spawn(function()
task.wait(OnTouchCD[2])
OnTouchCD[1] = false
end
end)
** You are now Level 15! **
Alr but when someone will touch this thing other people need to wait 1 sec to touch it too and this is a problem
just check if the player has already touched the part or not
okay but how?
** You are now Level 1! **