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
 

Re: hmm, about Enabling Sparkles on a brick

Previous Thread :: Next Thread 
Jiquor is not online. Jiquor
Joined: 02 Jun 2008
Total Posts: 10249
09 Jun 2016 04:36 AM
How would I use these intervals or mess with them to make it so sparkles are enabled on something when it spawns?

I want to use Sparkles on a brick, but I want them disabled at first.
When the brick spawns, wait 2 seconds before Sparkles activate from "Not Enabled" to "Enabled".

How to resolve this?

wait(10)
script.Parent.Sparkles.Enabled = true
script:Remove()
Report Abuse
seanbenish is not online. seanbenish
Joined: 31 Jul 2009
Total Posts: 429
09 Jun 2016 06:14 AM
Are you talking about enabling the sparkles 2 seconds after the brick spawns? If so, try this code:

local b = --Instance.new("Part") or :Clone()
--do stuff to b
b.Position = --the position you want it to spawn
local s = --Instance.new("Sparkles") or :Clone()
-do stuff to s
s.Parent = b
b.Parent = --workspace or wherever you want it to go
wait(2)
s.Enabled = true


public static void main(String[] args) { System.out.println("Oops! Wrong language."); }
Report Abuse
0Dan is not online. 0Dan
Joined: 22 Oct 2009
Total Posts: 2552
09 Jun 2016 06:44 AM
Just create a new instance if you're not using the sparkles at first

wait(2)
local Sparkles = Instance.new("Sparkles", script.Parent)


Report Abuse
Jiquor is not online. Jiquor
Joined: 02 Jun 2008
Total Posts: 10249
09 Jun 2016 09:34 AM
aaaaaaaaaaa
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