|
| 08 Sep 2012 11:29 PM |
Game.Workspace.Part.Sparkles.?
I've tried many ways, any help would be appreciated. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 08 Sep 2012 11:35 PM |
I'm pretty sure you can also use negatives.
Color3.new(1, -127, 0) |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 08 Sep 2012 11:44 PM |
Oops! I was using the Fire properties. You want "SparkleColor".
† KMXD † |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
| |
|