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

Why won't this put particles inside the Player's torso when they join?

Asked by 9 years ago

This is a localscript inside starterpack. I want the particles I have in ServerStorage to be cloned into the player. I get no error but it won't make them appear.

local player = game.Players.LocalPlayer

game.Players.PlayerAdded:connect(function()
    local newParticle = game.ServerStorage.ParticleEmitter:Clone()
    newParticle.Parent = player.Torso
end)
0
Do you have FilteringEnabled on? Necrorave 560 — 9y
0
I will check CheekySquid 78 — 9y
0
No. I dont CheekySquid 78 — 9y

1 answer

Log in to vote
1
Answered by 9 years ago

Your problem:

LocalPlayer is a player object, not a model. To get the character:

repeat wait() until player.Character
local torso = player.Character:WaitForChild("Torso")
Ad

Answer this question