So I am testing some stuff, and I want a part of my game to be where you have a part where you can change its colour with this gui, but I am having problems.
Here is the script:
local gui = game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.Green local frame = game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame local part = game.Workspace.Part4 gui.MouseButton1Click:Connect(function() part.BrickColor = BrickColor.new("Lime green") end)
Help is appreciated.
I've fixed it.
The problem was the part variable.
game.Workspace.Part4, the Part4 was the wrong part.
It's fixed now.