Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Filtering Enabled, send string from server to client?

Just a quick one, is it possible for me to send a string from the server to the players Gui on their client? For example a message from the server to the client saying hello and then updating the players textlabel to say hello?

If this is possible can somebody explain the easiest way to do this, thanks in advance.

1 answer

✓ Accepted answer

Of course it is! Here's an example:

Server; Telling all the clients a string

local RemoteEvent = game.ReplicatedStorage:WaitForChild('RemoteEvent')

RemoteEvent:FireAllClients("Hello client!")

Client(s); receiving the string

local RemoteEvent = game.ReplicatedStorage:WaitForChild('RemoteEvent')

RemoteEvent.OnClientEvent:Connect(function(Argument)
	print(Argument) --Prints the string "Hello client!"
end)

2 comments

0

Wow that was too easy. I just overthink when it comes to using FE. Thanks!

0

No problem! :)

This discussion is preserved as it was. New answers, comments, and votes are closed.