Ad
Log in to vote
0

Is there anythig wrong with this script?

Asked by 7 years ago

Well my studio wasn't acting right and figured I could ask on here and blah blah blah. Well I am testing this script on here. The objective of this script is to make a loop of a disco ball. Here it is :P

game.Workspace.Brick.Color  = Vector3value(255,255,255)
While true do
game.Workspace.Brick.Color = Vector3value(0,0,255)
Wait(0.5)
game.Workspace.Brick.Color = Vector3value(0,255,0)
end
game.Workspace.Brick.Color = Vector3value(255,255,255)

Well I think this is good. But please comment if something is wrong. Twoface

1 answer

Log in to vote
0
Answered by
nate890 495 Moderation Voter
7 years ago

Close,

game.Workspace.Brick.BrickColor = BrickColor.new(Color3.new(255, 255, 255))
    wait(0.5)
    game.Workspace.Brick.BrickColor = BrickColor.new(Color3.new(0, 0, 255))
    wait(0.5)
    game.Workspace.Brick.BrickColor = BrickColor.new(Color3.new(0, 255, 0))
end
game.Workspace.Brick.BrickColor = BrickColor.new(Color3.new(255, 255, 255)) --this line will never run because of the infinite loop.
0
Thanks that's one way to do it. But I found out I can use pointlight. Your meathld GreekGodOfMLG 244 — 7y
Ad

Answer this question