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)
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)
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
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
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?
Now it worked but it works only in studio but not in game :(