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.
local smoke = game.Workspace.Smoke
while true do
wait (10)
smoke.Opacity = 0.5
wait (5)
smoke.Opacity = 0
wait(5)
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:

6 comments
Maybe it is changing but you're not noticing it. Try using print(smoke.Opacity) to check if it really works or not.
In the output it says "Smoke is not a valid member of workspace" and then I change it to local smoke = game.Worspace.Parent.Smoke and then it says "smoke is not a valid member of DataModel" I'm pretty new to scripting so idk what that means.
when you say workspace.Parent your referring to the parent of the workspace, which is the game, or, datamodel
I tried game.workspace.smoke.parent but it didn't work how would I make it so I'm talking about the smoke itself it's in a part so would I do game.workspace.part.smoke? I'm sorry if it seems really weird to ask things like this I'm new.
ok ive edited my answer
i wish i could downvote this