✓ Accepted answer
You did the opposite, when you are on a script and you want to fire the remote to the client you can use two methods.
:FireAllClients who fire all clients in the game.
:FireClient who fire only one client and need for first argument the player instance.
To recieve information on the client side you need to use ÒnClientEvent and not OnServerEvent.
You can see the developer page who talk about RemoteEvents
If I answered your question you can Accept Answer and if you have any questions put them in the comments.
local remote = game.ReplicatedStorage.RemoteEvent
local GAME_INFO = {}
remote:FireAllClients(GAME_INFO)
local remote = game.ReplicatedStorage.RemoteEvent
local REMOTE_INFO
remote.OnClientEvent:Connect(function(info)
REMOTE_INFO = info
end)
Isn't the best structure to do but your code is fix.
3 comments
You right, I will use PlayerAdded.
Indeed it will be better.
Yes