Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why won't the Emitter Parent to UpperTorso?

Replaced with the full script. My problem is that the Particle Emitter is told to be parented to the BodyBackAttachment in the UpperTorso, but instead it just parents to the players character.

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Characters = ReplicatedStorage.Characters
local Powers = ReplicatedStorage.Powers

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(Character)
	Character.Head.face.Texture = ""	
	local UpperTorso = Character.UpperTorso
		
	local Data = plr:WaitForChild("Data")
	for i, v in pairs(Data:GetChildren()) do
		if v.Value == "" then repeat wait(0.2) until v.Value ~= ""
		end
		end
	
	
	plr.CharacterLoaded.Value = true
	
	for i, child in pairs(Characters[Data.CurrentCharacter.Value]:GetChildren()) do
		wait()
		local Assets = child:Clone()
		if Assets.Name ~= "ParticleEmitter" or Assets.Name ~= "LocalScript" then
		Assets.Parent = Character

		elseif Assets:IsA("LocalScript") then
			Assets.Parent = plr.Backpack

		elseif Assets.Name == "ParticleEmitter" then
			Assets.Parent = UpperTorso.BodyBackAttachment
			end
		end
	end)
end)

Everything else parents properly

4 comments

0

the 2nd arguement of Instance.new is deprecated

0

you didn't post the whole script. if you did, it is wrong

0

posted the full script to make it easier

0

This should have worked but it didn't. Thanks anyway, I had to create another :GetChildren function with a different folder named auras. Either way it works now.

1 answer

✓ Accepted answer

ParticleEmitters can only be parented to parts, you cant put it in an Attachment

1 comment

0

Actually they can be parented to attachments, either way I found an alternative way. Thanks anyways.

This discussion is preserved as it was. New answers, comments, and votes are closed.