So I have made a bedframe model and I want to make it change color when the click detector is clicked. I have a RemoteEvent labeled "Event" in my workspace, with a Script inside it. I have a LocalScript in StarterGUI connected to the event. I cannot get it to work and it is getting annoying, any ideas?
Code in the StarterGUI:
local clickdetector = game.Workspace.Bedframe.Pinecone.ClickDetector
clickdetector.MouseClick:Connect(function()
game.Workspace.Event:FireServer()
end)
Code in the RemoteEvent (Event):
game.Workspace.Event.OnServerEvent:Connect(function()
game.Workspace.Bedframe.Change.BrickColor="Pine Cone"
end)

3 comments
workspace.Bedframe.Change.BrickColor = BrickColor.new("Pine Cone")
Updated my answer, hopefully it works now
Updated my answer again