Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Door script help?

Asked by 11 years ago

So I have a door script. It's suppose to like every 5 seconds it's transparency 0.5 then 5 seconds later 0. At the same time. the ConCollide is true, then false. At the same time.

01while true do
02    game.Workspace.Door.Transparency=0.5
03    wait(5)
04    game.Workspace.Door.Transparency=0
05    wait(5)
06end
07while true do
08    game.Workspace.Door.CanCollide = true
09    wait(5)
10    game.Workspace.Door.CanCollide = false
11    wait(5)
12end

2 answers

Log in to vote
0
Answered by
jav2612 180
11 years ago

Like this?:

1Door = game.Workspace.Door
2while true do
3    Door.Transparency=0.5
4    Door.CanCollide = true
5    wait(5)
6    Door.Transparency = 0
7    Door.CanCollide = false
8    wait(5)
9end
0
Wow, thanks! Roboy5857 20 — 11y
Ad
Log in to vote
0
Answered by 11 years ago
1Door = game.Workspace.Door
2while true do
3    Door.Transparency=0.5
4    Door.CanCollide = true
5    wait(5)
6    Door.Transparency = 0
7    Door.CanCollide = false
8    wait(5)
9end

This is the correct script, I think you got mixed up.

Answer this question