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

How can i change the value of a brickcolorvalue?

Asked by 7 years ago
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

Log in to vote
0
Answered by
R_alatch 394 Moderation Voter
7 years ago

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)
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 DreamSkyHigh 30 — 7y
0
sadly it didnt work DreamSkyHigh 30 — 7y
Ad

Answer this question