I'm making a script which makes smoke disappear and reappear but it doesn't seem to work. Does any one know what I did wrong? My script is above.
1 | local smoke = game.Workspace.Smoke |
2 |
3 | while true do |
4 | wait ( 10 ) |
5 | smoke.Opacity = 0.5 |
6 | wait ( 5 ) |
7 | smoke.Opacity = 0 |
8 | wait( 5 ) |
9 | end |
I'm making a script which makes smoke disappear and reappear but it doesn't seem to work. Does any one know what I did wrong? Here's my script:
so since all of this hasnt worked, here's a new way. Put the script inside of the smoke and copy and paste this new code.
01 | local smoke = script.Parent |
02 |
03 | while wait( 10 ) do |
04 | smoke.Opacity = 0.5 |
05 | print (smoke.Opacity) -- like rabbi99 said, print opacity to see if it works |
06 | wait( 5 ) |
07 | smoke.Opacity = 0 |
08 | wait( 5 ) |
09 | print (smoke.Opacity) |
10 | end |
if that doesn't work, make sure the smoke actually does exist, remember roblox lua is case sensitive