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.
01 | while true do |
02 | game.Workspace.Door.Transparency = 0.5 |
03 | wait( 5 ) |
04 | game.Workspace.Door.Transparency = 0 |
05 | wait( 5 ) |
06 | end |
07 | while true do |
08 | game.Workspace.Door.CanCollide = true |
09 | wait( 5 ) |
10 | game.Workspace.Door.CanCollide = false |
11 | wait( 5 ) |
12 | end |
Like this?:
1 | Door = game.Workspace.Door |
2 | while 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 ) |
9 | end |
1 | Door = game.Workspace.Door |
2 | while 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 ) |
9 | end |
This is the correct script, I think you got mixed up.