Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Changing colour of brick in studio?

If I wanted to change the colour of a brick in Roblox Studio what would I be required to do?

Sources, links, quick replies is what I'm looking for.

I am creating a disco ball and my "club" needs one in order for us to BOOGEY!

However this is as far as I have got, what do you think?

discoball = Instance.new("Part")
discoball.BrickColor = Random() -- ?
discoball.Parent = game.Workspace

As you see it is giving me output errors such as invalid command or something...

1 answer

If you want to have a disco ball that consistently changes colors, you can use BrickColor.random() in a loop. You should also make your disco ball in the workspace instead of using the Instance.new() constructor function. Here's an example of how to do this:

local discoball = workspace.Discoball -- locate your disco ball, assuming it is one part.
while true do
    wait(1) -- time between each color change
    discoball.BrickColor = BrickColor.random()
end

Hope this helps!

3 comments

0

I have one problem!

0

I didn't test this, please let me know if it doesn't work! I would be glad to try and fix it.

0

What's the problem?

This discussion is preserved as it was. New answers, comments, and votes are closed.