RemoteServer
script.RecolorGUI:FireAllClients()
RemoteClient
PlrService = game:GetService("Players")
plr = game.Players.LocalPlayer
char = plr.Character
PlrGui = game.Players.LocalPlayer.PlayerGui
PlrGui:WaitForChild("ScreenGui").TextButton.MouseButton1Click:connect(function()
game.Workspace.RemoteServer.RecolorGUI.OnClientEvent:connect(function()
PlrGui:WaitForChild("ScreenGui").TextButton.BackgroundColor3 = Color3.new(math.random(), math.random(), math.random())
end)
end)
When I try to click the button in a server with 2 players, it doesn't change color, and in play mode It changes color, but only 1 time, and not more. Any fix?
