I need a timer that makes a part's "Can.Collide" turn off once it reaches 0, and turn back on after a few seconds. If anyone can help that'll be great!
COMMUNITY QUESTION
I need a timer that makes a part's "Can.Collide" turn off once it reaches 0. Any suggestions?
1 answer
local WAITOFF = 1 -- How long to wait when CanCollide is off.
local WAITON = 1 -- How long to wait when CanCollide is on.
local part -- This is your part.
while wait(WAITOFF) do
part.CanCollide = true
wait(WAITON)
part.CanCollide = false
end
Is this what you meant by the timer? The code is really simple.
1 comment
0
^^^^^^^^^ awnsered
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Not a request site. Make an attempt, please!