you are doing OnClientEvent inside a server script, also
FireAllClients() in a local script? so what you want to do instead is when the player makes an input, send it to the server and have the server do FireAllClients() then in a local script, it will receive this
(also if i’m wrong and this is a local script already, still would not work since it’s in ServerScriptService, add it anywhere in the client side, maybe startergui?)
FireAllClients() in a local script? so what you want to do instead is when the player makes an input, send it to the server and have the server do FireAllClients() then in a local script, it will receive this
The remote did fire, which I tested using the print function. It’s just not saying the message in chat.
local PlayerGui = game.Players.LocalPlayer.PlayerGui
local text = PlayerGui.AdminMenu.Fakechat.Message.Text
local remote = game.ReplicatedStorage:FindFirstChild("FakeMessageRE")
remote.OnServerEvent:Connect(function()
game.StarterGui:SetCore("ChatMakeSystemMessage", {
Text = "[System]: " .. text;
Color = Color3.fromRGB(255, 255, 255);
Font = Enum.Font.SourceSansBold;
})
end)
I don’t think its possible for you to send messages in system chat, but I know its possible to send automated messages into system chat. Take a look at this video.