Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I need a timer that makes a part's "Can.Collide" turn off once it reaches 0. Any suggestions?

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!

1 comment

0

Not a request site. Make an attempt, please!

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.