Answered by
4 years ago Edited 4 years ago
I assume that you have a RemoteEvent in ReplicatedStorage.
First, you have the fire the RemoteEvent with the player argument, it refers to the client you want to fire.
1 | game.Players.PlayerAdded:Connect( function (plr) |
2 | game.ReplicatedStorage.RemoteEvent:FireClient(plr) |
Then, add arguments after plr
to pass the arguments to your LocalScript.
1 | game.Players.PlayerAdded:Connect( function (plr) |
2 | game.ReplicatedStorage.RemoteEvent:FireClient(plr, game.Workspace.Part) |
In the LocalScript, write this.
1 | game.ReplicatedStorage.RemoteEvent.OnClientEvent:Connect( function (part) |