How can you transfer Information from a server to a clients GUI?

Hello developers,

I have a question. I have some information I want to be sent over to a Client and their GUI but I don’t know how to do this. The Information is in Server Storage and I needed it to be sent to the player in a script. I tried to use a RemoteEvent and FireClient but I got this error:

FireClient: player argument must be a Player object

If you know how i can transfer this data, It would be appreciated.

Thanks (The data I am sending is a String Value)

2 Likes

:FireClient(Player, "something lol")
as you are only sending info to one client, it needs to know who that is in argument 1.

If you want to send data to ALL clients do
:FireAllClients("something lol")
and it won’t need a player Instance to be given.

2 Likes

So would I have to define the player then put it in the fireClient?

1 Like

Yes, Argument 1 needs to be a player Instance
you can just do Players:FindFirstChild(name or something lol) or get the player as a returned value through a function.

1 Like