Hello. Sorry for all the forum posts lol.
In my game, the player can choose to change their colour.
However, this is done by a local script in a GUI button.
Once the player changes their colour, only they can see it. I understand that I could use a remote event, but I have no idea how I would go about actually using it so that the whole server can see the player’s new colour.
Send me your script and send me which one is local and which one is not like show me the workspace because I suppose you wrote onserver event on the client because it says Client-LocalScript
Ok so firstly in the remote variable you didn’t specify the remote event it should be local remote = game.ReplicatedStorage.RemoteEvent
And for the local script first you didn’t specify the remote second mouse button 1 click is for gui button plus you wrote an onServerEvent in the local script
local Remote = game.ReplicatedStorage.REMOTES.ChangeColor --edit this to where yours is stored
Remote.OnServerEvent:Connect(function(Player)
Player.Character.Torso.Color = Color3.fromRGB(252, 61, 78)
print("color changed")
end)
CLIENT
local Remote = game.ReplicatedStorage.REMOTES.ChangeColor --edit this to where yours is stored
local Player = game.Players.LocalPlayer
local Character = Player.Character
script.Parent.MouseButton1Click:Connect(function()
Remote:FireServer(Player)
print("fired")
end)