Skydric
|
  |
| Joined: 20 May 2008 |
| Total Posts: 8026 |
|
|
| 31 Dec 2015 12:49 AM |
yes = true wait(5) if yes == true then script.Parent.Properties.Data.Enabled = false wait(2) script.Parent.Properties.Data.Enabled = true end
not working ?? how would i disable the smoke via script and then enable it like a few seconds later
(kinda haven't touched scripts in over 2 years lol) |
|
|
| Report Abuse |
|
|
mudkip99
|
  |
| Joined: 17 Jun 2008 |
| Total Posts: 3362 |
|
|
| 31 Dec 2015 12:57 AM |
Is the script's parent the smoke? if so, you could just do this:
wait(5)
script.Parent.Enabled = false
wait(2)
script.Parent.Enabled = false
The if statement isn't really necessary if you want it to always do this. if you want it to loop endlessly, put a while loop around it:
while true do
wait(5)
script.Parent.Enabled = false
wait(2)
script.Parent.Enabled = false end |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2015 12:58 AM |
change "yes = true" too:
local yes = true. |
|
|
| Report Abuse |
|
|
Phenite
|
  |
| Joined: 16 May 2010 |
| Total Posts: 158 |
|
|
| 31 Dec 2015 01:28 AM |
script.Parent.Properties.Data.Enabled = false?
you mean:
yes = false? |
|
|
| Report Abuse |
|
|
Phenite
|
  |
| Joined: 16 May 2010 |
| Total Posts: 158 |
|
|
| 31 Dec 2015 01:29 AM |
nvm, they're right. don't do the name of the table of properties just do the property name script.Parent.Enabled |
|
|
| Report Abuse |
|
|
Skydric
|
  |
| Joined: 20 May 2008 |
| Total Posts: 8026 |
|
| |
|