bored215
New Member
i'M REtarDeed
Posts: 12
|
Post by bored215 on Jun 10, 2017 0:17:39 GMT
I was practicing what i know on an experiment.
what i was doing was to make a model that repeatedly flashes random colors.
i've done that well, but i also put it into a tool with welding and a handle, but when i went in game, the colors stopped.
My script:
Colors = script.Parent
while true do
Colors.Lights.Light.BrickColor = BrickColor.Random()
wait(0.1)
Colors.Lights.Light.BrickColor = BrickColor.Random()
end
i tried fixing it so i changed game.Workspace into script.Parent, but it didn't work
|
|
LittleBigKid
New Member
Veteran
Posts: 11
ROBLOX Username: LittleBigKid2000
|
Post by LittleBigKid on Jun 10, 2017 10:33:59 GMT
Can you upload the model or show us what it looks like in the explorer?
Also, that second Colors.Lights.Light.BrickColor = BrickColor.Random() is redundant. It'll just change the color to a random color, then loop and immediately do it again.
|
|
bored215
New Member
i'M REtarDeed
Posts: 12
|
Post by bored215 on Jun 10, 2017 11:11:35 GMT
My experiment is for the block to change colors rapidly.
file:///C:/Users/dillon/Downloads/1.PNG What it Looks like The middle is the color changing part
file:///C:/Users/dillon/Downloads/Capture.PNG What it looks like in workspace.
|
|
LittleBigKid
New Member
Veteran
Posts: 11
ROBLOX Username: LittleBigKid2000
|
Post by LittleBigKid on Jun 10, 2017 14:05:00 GMT
What I meant is the second Colors.Lights.Light.BrickColor = BrickColor.Random() won't do anything effective as it's immediately going to do it again. It's the same as
while true do Colors.Lights.Light.BrickColor = BrickColor.Random() Colors.Lights.Light.BrickColor = BrickColor.Random() wait() end
Removing the second Colors.Lights.Light.BrickColor = BrickColor.Random() won't have any visible effect.
Also you are attempting to link to a file on your computer. We can't see it, because the internet does not work that way. Upload it to a site such as imgur, then link to the uploaded image.
|
|
bored215
New Member
i'M REtarDeed
Posts: 12
|
Post by bored215 on Jun 10, 2017 14:13:17 GMT
|
|
LittleBigKid
New Member
Veteran
Posts: 11
ROBLOX Username: LittleBigKid2000
|
Post by LittleBigKid on Jun 11, 2017 20:58:38 GMT
It looks like you need to change Colors.Lights.Light.BrickColor to script.Parent.Light.BrickColor, since 'Lights' doesn't exist.
|
|
bored215
New Member
i'M REtarDeed
Posts: 12
|
Post by bored215 on Jun 12, 2017 0:21:38 GMT
OH SHOOOT I DIDN'T EVEN SEE IT
thank you it worked
This website is so useful.
|
|