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 » Scripting Helpers
Home Search
 

Re: How would you change the color of sparkles?

Previous Thread :: Next Thread 
PoopsAndPeepees is not online. PoopsAndPeepees
Joined: 05 Sep 2012
Total Posts: 55
08 Sep 2012 11:29 PM
Game.Workspace.Part.Sparkles.?

I've tried many ways, any help would be appreciated.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
08 Sep 2012 11:31 PM
Using Color3. It's from 0-1, so if it says anything higher than 1, divide by 255.

    Workspace.Part.Sparkles.Color = Color3.new()

Would make it black.

    Workspace.Sparkles.SecondaryColor = Color3.new(1, 127/255, 0)

Would turn the Secondary color to what I think is some orange.

† KMXD †

Report Abuse
ServerLabs is not online. ServerLabs
Joined: 29 Dec 2010
Total Posts: 2263
08 Sep 2012 11:35 PM
I'm pretty sure you can also use negatives.

Color3.new(1, -127, 0)
Report Abuse
PoopsAndPeepees is not online. PoopsAndPeepees
Joined: 05 Sep 2012
Total Posts: 55
08 Sep 2012 11:40 PM
Okay, now I'm trying to get the sparkles yellow, but when I do:

Workspace.Part.Sparkles.Color = Color3.new(1,1,0)
Or
Workspace.Part.Sparkles.Color = Color3.new(0.5,0.5,0)

And it makes the color a redish brown color: 144; 25; 0 or 72; 12; 0

Any help?
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
08 Sep 2012 11:44 PM
Oops! I was using the Fire properties. You want "SparkleColor".

† KMXD †
Report Abuse
ServerLabs is not online. ServerLabs
Joined: 29 Dec 2010
Total Posts: 2263
08 Sep 2012 11:45 PM
(R,G,B)

(-255,-255,0)
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
08 Sep 2012 11:46 PM
@Server

Ah, right. Though what use would that give, that can't be achieved without it?

† KMXD †
Report Abuse
PoopsAndPeepees is not online. PoopsAndPeepees
Joined: 05 Sep 2012
Total Posts: 55
08 Sep 2012 11:56 PM
Oh okay! Thanks, I knew it was SparkleColor, it's just when I tried it out it partially worked, so I didn't question it. Now that I have this fixed, I need help with the rest.
Report Abuse
PoopsAndPeepees is not online. PoopsAndPeepees
Joined: 05 Sep 2012
Total Posts: 55
08 Sep 2012 11:56 PM
local a = {"Really red", "New Yeller", "Black"}

while wait(5) do
Game.Workspace.Part.BrickColor = BrickColor.new(a[math.random(#a)])
end
Nothing wrong with this one.
____________________________________________
Now with this one, it works once, then does the same thing over and over, example: The first color is Red, so it make fire, so when it adds the fire, it removes the fire and re-adds the fire, even if the color is not red, if you have any questions, feel free to ask, I know this may be confusing, thanks in advanced!
____________________________________________
local P = Game.Workspace.Part
local PC = Game.Workspace.Part.BrickColor

while wait(5) do
if PC == BrickColor.new("Really red") then
P:ClearAllChildren()
F = Instance.new("Fire", P)
F.Size = 25

elseif PC == BrickColor.new("Really yellow") then
P:ClearAllChildren()
Sp = Instance.new("Sparkles", P)
Sp.SparkleColor = Color3.new(1,1,0)

elseif PC == BrickColor.new("Black") then
P:ClearAllChildren()
Sm = Instance.new("Smoke", P)
Sm.Color = Color3.new()

end
end
_____________________________
There is no output. :(
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
09 Sep 2012 12:00 AM
Since you did:

local PC = Game.Workspace.Part.BrickColor

It will stay what it originally was, Really red. So to fix this:

local P = Game.Workspace.Part

    while wait(5) do
      if P.BrickColor == BrickColor.new("Really red") then
       P:ClearAllChildren()
       F = Instance.new("Fire", P)
       F.Size = 25
      elseif P.BrickColor== BrickColor.new("Really yellow") then
       P:ClearAllChildren()
       Sp = Instance.new("Sparkles", P)
       Sp.SparkleColor = Color3.new(1,1,0)
      elseif P.BrickColor== BrickColor.new("Black") then
       P:ClearAllChildren()
       Sm = Instance.new("Smoke", P)
       Sm.Color = Color3.new()
      end
    end


† KMXD †
Report Abuse
PoopsAndPeepees is not online. PoopsAndPeepees
Joined: 05 Sep 2012
Total Posts: 55
09 Sep 2012 12:08 AM
Okay thank you very much.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
09 Sep 2012 12:16 AM
No problem.

† KMXD †
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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