|
print'ipenguin in da club'
wait(.3)
while true do
script.Parent.BrickColor = BrickColor.new(math.random, math.random, math.random)
a = Instance.new("SurfaceLight", script.Parent)
a.Face = "Top"
a.Shadows = true
a.Color = Color3.new(math.random, math.random, math.random)
wait(.5)
end
print'foxmany in da club'
It got through the prints and all, but the part isn't changing color, and there is no surface light. |
|
|
BobCowManJoin Date: 2010-05-14 Post Count: 22634 |
Well what happens if the random number gives an invalid color
and shouldn't it be script.Parent.BrickColor = BrickColor.new(Color3.new(x,x,x))
3:8 BCM / Speedyseat(co-owner) |
|
|
script.Parent.BrickColor = BrickColor.new(math.random, math.random, math.random)
that's if you want specific colors, but I want them completely randomized. |
|
|
ok now its changing okay, but theres no surfacelight. |
|
|
|
BrickColor.Random() exists, no? |
|
|
Yeah I used that instead, but the lighting isn't working at all.
print'ipenguin in da club'
while true do
script.Parent.BrickColor = BrickColor.random()
a = Instance.new("PointLight", workspace)
a.Parent = script.Parent
a.Range = 8
a.Shadows = true
a.Color = Color3.new(math.random, math.random, math.random)
wait(.2)
end
print'foxmany in da club' |
|
|
$$$ M8, $$$$
Funification | Was dominusawesomus | you wil cryying when obama take yur computr |Yee | ParanoidHumanoid is my trading account |
|
|
The problem isn't what you are trying to change lol
look closer
Funification | Was dominusawesomus | you wil cryying when obama take yur computr |Yee | ParanoidHumanoid is my trading account |
|
BobCowManJoin Date: 2010-05-14 Post Count: 22634 |
why do you set a's parent twice
3:8 BCM / Speedyseat(co-owner) |
|
|
I was testing to see if how it was set would be any different.
But that's not the point of why it's not working |
|
|
wait(.3)
a = Instance.new("PointLight", script.Parent)
a.Range = 10
a.Shadows = true
while true do
a.Color = Color3.new(math.random, math.random, math.random)
wait(.5)
end |
|
|
imo the problem is obvious
Funification | Was dominusawesomus | you wil cryying when obama take yur computr |Yee | ParanoidHumanoid is my trading account |
|
|
Then help me since no one else seems to know either,, |
|
|
|
I don't help for free :/
Funification | Was dominusawesomus | you wil cryying when obama take yur computr |Yee | ParanoidHumanoid is my trading account |
|
|
game.Workspace.Part.BrickColor = BrickColor.Random()
wait(how long you want to pause in between color change)
just try that |
|
|
@deranking
omfg I have that already, and as I stated already, that's no longer the problem. |
|