generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

need help w/ very small script

Previous Thread :: Next Thread 
Skydric is not online. 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 is not online. 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
AdvancedObjects is not online. AdvancedObjects
Joined: 11 Dec 2012
Total Posts: 3354
31 Dec 2015 12:58 AM
change "yes = true" too:

local yes = true.
Report Abuse
Phenite is not online. 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 is not online. 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 is not online. Skydric
Joined: 20 May 2008
Total Posts: 8026
31 Dec 2015 03:11 AM
thanks tons
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image