Vest Lighting Issue

I am currently making the vest for the railway company. And that vest is in the ServerStorage so I am using objectvalue to scan but it will says Not vaild member when try to press button. There is only way to use objectvalue to move this.
And I am making objectvalue’s value to light part.

script.Parent.Frame.Colors.Greens.MouseButton1Up:Connect(function()
	value.BrickColor = BrickColor.new("Lime green")
end)

script.Parent.Frame.Colors.Yellows.MouseButton1Up:Connect(function()
	value.BrickColor = BrickColor.new("Bright yellow")
end)

script.Parent.Frame.Colors.Red.MouseButton1Up:Connect(function()
	value.BrickColor = BrickColor.new("Really red")
end)

Explorer
Workspace
image
ServerStorage
image

1 Like

Any idea is appreciate!! i am so weak at script.

if value is Lightsectionvalues.Value then you need to do value.Value
so it becomes like this
value.Value.BrickColor = BrickColor.new("Bright yellow")

2 Likes

You can’t use a script in screengui, use a local script instead. However, this will cause an issue as the client cannot access serverstorage, so I suggest using remote events to tell the server to change the color.

Because you are a beginner I made some words hyperlinks to resource that may help you

2 Likes