Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I parent a particle effect to a player so it could be seen by the Server?

Asked by 5 years ago

So I am wanting to parent a particle effect to the Players Torso, though it only works when executed via a LocalScript. Anyway of doing it via a Script so it can be seen by all players instead of just the client?

1 answer

Log in to vote
1
Answered by 5 years ago

Yes! You just have to use remote events. This isn't exact, but i'll run through it generally; In the localscript do something along the lines of:

event = game.ReplicatedStorage.Particles
event:FireServer()

In a server script, preferably in serverscriptservice, put something along the lines of:

game.ReplicatedStorage.Particles.OnServerEvent:Connect(function(LocalPlayer)
particles = game.ReplicatedStorage.ParticleName:Clone().Parent = LocalPlayer.Character.Head
end)
Ad

Answer this question