#FireClient

11 messages · Page 1 of 1 (latest)

kind mason
#

i need help with remote events
to send the remote event to the specific person u need to put the player variable in the brackets
event:FireClient(Player)
but when i use remote events i put data in the brackets.

how can i send data to only 1 player

shy fractal
#

FireClient(Player, Data)

stoic trail
#

In server script you can do:
event:FireClient(Player, Data)
to fire to a specific user
OR
event:FireClients(Data)
to fire all the clients

In local script:
event.OnClientEvent:Connect(function(Data) --your code end)

You can also do reverse, from client to server:
In client script:
event:FireServer(Data)
ans on server script:
event.OnServerEvent:Connect(function(Player, Data) --your code end)

kind mason
#

can i do something like this?
event:FireClient(Player, Data, Data2)

gritty templeBOT
#

studio** You are now Level 3! **studio

stoic trail
#

Yea, as many as you want

kind mason
#

ok thanks

shy fractal
#

correction.

#

Its not FireClients its FireAllClients

stoic trail
#

My bad