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

How can i change the value of a brickcolorvalue?

script.Parent.MouseButton1Down:connect(function()
	workspace.TwoStoryType1.Value.Value = BrickColor.new("Really blue")
	script.Parent.Parent.Visible = false
	script.Parent.Parent.Parent.TwoStoryType1.Visible = true
end)

well the script doesnt error in output however it does work the color of the house doesnt change( FIY i have already scripted the house with help from admins on scripting helpers, so the house color already changes depending on the value of the brickcolorvalue)

But if you dont understand my question heres pretty much what im doing im trying to change the value of a brickcolorvalue from a local script

1 answer

I tried doing what you did and for me it worked so I'll try and show you what I did. For the "script.Parent.Parent.Parent.TwoStoryType1" I assumed that was the same thing as workspace.TwoStoryType1. Correct me if I'm wrong.

script.Parent.MouseButton1Down:Connect(function()
	local twostory = workspace:WaitForChild("TwoStoryType1")
    twostory:WaitForChild("Value").Value = BrickColor.new("Really blue")
    twostory.Visible = true
	script.Parent.Parent.Visible = false
end)

2 comments

0

no they are not the same thing "script.Parent.Parent.Parent.TwoStoryType1" is a frame in a screen gui but i understand how that could get mixed up

0

sadly it didnt work

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