Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i make them all change different color?

Asked by 4 years ago
Edited 4 years ago

So basically, This is not working and i wonder why, The problem is only 1 changes colour, How do i fix this?

~~~~~~~~~~~~~~~~~

wait(0.5) 

while true do 
local i = math.random(1,3) -- change these numbers for the wait time it is set at 30 seconds to a minute, right now.
wait(i * 60) 
i = math.random(1,2) -- UP to 5 events; change value if you need more events 
if i == 1 then 
local j = Instance.new("Message") 
j.Parent = game.workspace 
j.Text = "The world is being torn apart!" 
wait(3) -- this is wait for the message 
j:Remove() -- remove message 
j.Text = "XD" 
wait(3) -- this is wait for the message 
j:Remove()
game.Workspace.X.Part.BrickColor = BrickColor.new("Royal purple") --Tree 1 -- (YES WORKING)
game.Workspace.X.Part2.BrickColor = BrickColor.new("Royal purple")

game.Workspace.X.Part.BrickColor = BrickColor.new("Royal purple") game.Workspace.X.Part2.BrickColor = BrickColor.new("Royal purple")-- Tree 2 --(NOT WORKING) --- Tornado

0
use lua button for script, get all script highlighted and press lua icon enes223 327 — 4y
0
Could you edit this and put your message in a code block? RealTinCan 217 — 4y
0
There moggieannejr 0 — 4y

Answer this question