I have tried many scripts, but none of them work. Im not that good at making scripts so help would be nice!
There are three things I’m assuming:
Never the less, I’ll still help you lol..
There are two simple ways of doing this.
This code changes color if the button and part are inside a model.
model = script.Parent model.Button.ClickDetector.MouseClick:Connect(function() model.ColorPart.BrickColor = BrickColor.new("Lime green") end)
This code changes color if the part is somewhere in workspace.
part = workspace:FindFirstChild("ColorPart") button = script.Parent button.ClickDetector.MouseClick:Connect(function() part.BrickColor = BrickColor.new("Lime green") end)
I hope this answers your question! If you are experiencing any problems, comment back. This was actually one of my first successful scripts I've made back in 2017 lol