FireClient to specific player/s

So basically, for example, I want to fire a projectile, if that projectile hits a player, a remote is fired which shows a GUI or something on the player that got hit’s client, if that makes sense, im kind of bad at explaining things

Event:FireClient(Player) --> Makes it send to "Player"

Event:FireAllClients() --> Sends it to ALL players

Some example code for an idea:

when the part is touched get hit
if hits parent is a character and the character has a player to it
fireclient using a variable for player

So all I have to do is get the victim’s name and put it as an argument in the remote?

You have to get the victim’s player object, Not the name.

local Player = game.Players.Bobby

Event:FireClient(Player) --> Fires ONLY for bobby

You need the victims player OBJECT, which you can get from hit,


if game.Players:GetPlayerFromCharacter(hit.Parent) then
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
1 Like

Ohh I see, thanks!

Char limitt

1 Like

I would recommend giving yourself solutions, hand them out to other players :slight_smile: