--localscript-- script.Parent.MouseButton1Click:Connect(function() if script.Parent.Check.Value == true Then game.ReplicatedStorage.Event:FireServer(script.Parent, script.Parent.Check.Value) end end)
--server-- game.ReplicatedStorage.Event.OnServerEvent:Connect(function(player, Button, Check) if Check == true then Buttoon.BackgroundColo3 = Color3.fromRGB(30,30,30) end end)
it changes the colour first time but it wont after that idk why. the gui is only local.
line 4 second script
Button.BackgroundColor3 = Color3.fromRGB(30,30,30) wait()-- enter how much time to wait Button.BackgroundColor3 = Color3.fromRGB() -- enter second color
also you need to just not use that remote event because it will not change the button color in a real game