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

How do i add aura to my player?

Well, was trying to make an aura that appears when you join the game but it isn't working (already tried on LocalScript and Script), anyone got any idea of how i can make it work??

local Aura = game.ReplicatedStorage.ParticleEmitter

function copy(place)

local aura2 = Aura:Clone()

aura2.Parent = place

end

game.Players.PlayerAdded:Connect(function(player, char

copy(workspace[player]["Head"])

copy(workspace[player]["Left Arm"])

copy(workspace[player]["Right Arm"])

copy(workspace[player]["Left Leg"])

copy(workspace[player]["Right Leg"])

copy(workspace[player]["Torso"])

copy(workspace[player]["HumanoidRootPart"])

end)

1 comment

0

Put that in a code block

1 answer

✓ Accepted answer

It isn't working because

  1. You are missing a closed bracket when you used PlayerAdded
  2. You are defining character as the second parameter of PlayerAdded

There is a function for a PlayerObject called CharacterAdded. It will fire every time you respawn and give you the new character object.

game.Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(character)
		--Add ParticleEmitters
	end)
	player:LoadCharacter()
	--we re-load the character to make sure the CharacterAdded
	--event actually fires
end)

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