I made a script to change the color of a tool when you click a gui and it works, but its only for the user that clicked the button, so i changed it to a normal script but now it wont work, can someone help please? (its a script inside a gui which is inside the tool so i can make it pop up when you equip the tool)
local Handle = game.Players.LocalPlayer.Character.Glowstick:WaitForChild("Handle")
local RedButton = script.Parent:WaitForChild("RedButton")
local YellowButton = script.Parent:WaitForChild("YellowButton")
local OrangeButton = script.Parent:WaitForChild("OrangeButton")
local GreenButton = script.Parent:WaitForChild("GreenButton")
local BlueButton = script.Parent:WaitForChild("BlueButton")
local PurpleButton = script.Parent:WaitForChild("PurpleButton")
RedButton.MouseButton1Click:Connect(function()
Handle.BrickColor = BrickColor.new("Really red")
Handle.PointLight.Color = Color3.new(255, 0, 0)
end)
YellowButton.MouseButton1Click:Connect(function()
Handle.BrickColor = BrickColor.new("New Yeller")
Handle.PointLight.Color = Color3.new(255, 255, 0)
Handle.Pointlight.Brightness = 2
end)
OrangeButton.MouseButton1Click:Connect(function()
Handle.BrickColor = BrickColor.new("Deep orange")
Handle.PointLight.Color = BrickColor.new("Deep orange").Color
Handle.Pointlight.Brightness = 2
end)
GreenButton.MouseButton1Click:Connect(function()
Handle.BrickColor = BrickColor.new("Lime green")
Handle.PointLight.Color = Color3.new(0, 255, 0)
Handle.Pointlight.Brightness = 2
end)
BlueButton.MouseButton1Click:Connect(function()
Handle.BrickColor = BrickColor.new("Lapis")
Handle.PointLight.Color = BrickColor.new("Lapis").Color
Handle.Pointlight.Brightness = 3
end)
PurpleButton.MouseButton1Click:Connect(function()
Handle.BrickColor = BrickColor.new("Magenta")
Handle.PointLight.Color = Color3.new(170, 0, 170)
Handle.Pointlight.Brightness = 2
end)

4 comments
Try using a remote event for changing each color.
got no clue how to do that lmao
working on a solution for you!
alright finished if there are any issues comment!