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

How to make a particle emitter for all players?

Asked by 8 years ago

hello i want to make a particle emitter on the torso of the players but i only get it in studio how can i fix this issue?

this is what i have

 local speed2 = Instance.new("ParticleEmitter",Workspace.Player1.torso)

1 answer

Log in to vote
0
Answered by 8 years ago

Well first it would be a good idea to make sure the Player and it's character have loaded in. Then you'd be able to implement a particle emitter into the torso

Here is a fast and efficient way of completing the statement above:

game.Players.PlayerAdded:connect(function(player) 
    player.CharacterAdded:connect(function(char) 
        if char then
            local torso = char:FindFirstChild'Torso'
            local speed2 = Instance.new("ParticleEmitter", torso)
        end
    end)
end)

Note: This should be put in a Script, not a Localscript

0
The other part of my script need to be done in a localscript where must i put in this script and how can i connect them? robloxy0123 30 — 8y
0
Now it worked but it works only in studio but not in game :( robloxy0123 30 — 8y
Ad

Answer this question