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

The block won't change color when I click play?

Asked by 7 years ago
game.Workspace.Part.LocalScript
color = Really Red

Also, what is the best way to test a script?

0
if that's the whole script. you need to learn more. RobloxianDestory 262 — 7y
0
I'm sorry I'm new there is nothing I can do about it :( SeitaiShi 0 — 7y
0
no no no, you can't write random English stuff and hope it'll work. please research on the wiki: http://wiki.roblox.com/index.php?title=Intro_to_Scripting Perci1 4988 — 7y

1 answer

Log in to vote
1
Answered by 7 years ago

Hello there. This is a very easy mistake to make! You did not use correct format. Lets re-write this entire script. You need to use BrickColor.new statement. Make a part you want to change color, then add a script.

local changemycolor = script.Parent --This locates the part.

changemycolor.BrickColor = BrickColor.new("Really red") --This finds the variable changemycolor, and changes the brickcolor of changemycolor to Really red.
0
This is how you answer a question to beginners. Harrison_Ford 5 — 7y
Ad

Answer this question