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

how would i fire a event to travel from one client to the server and then all other clients?

hello,

i dont have a script for this because i need help making one or have some questions on how to do something. this isnt a request just need some help.

so im trying to make a script where when a player presses a key it makes him invisible or visible on their own screen(which i already did). then i want the script to fire a event to travel to the server and then all other clients. a script that would receive the event inside each player would then compare its clients leaderstat with the client who pressed the key's leaderstat if the client has more or less stats then the client who pressed the key it would then make the client who pressed the key invisible or visible on the other clients screens.

i just need help figuring out how i can make each client receive the event fired and then get the clients character who fired the event and then i would know how to make then visible or invisible.

anyway i hope i was clear with what i needed help with and somone can help me? and thank you!

1 answer

✓ Accepted answer

like this:

from client: someRemoteEvent1:FireServer();

someRemoteEvent1.OnClientEvent:Connect(function(player)
	someRemoteEvent2:FireAllClients()
end)


1 comment

0

oh dont forget the recieving part maybe you should right that too

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