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

How To Make An Aura That A Player Unlocks At A Certain Level/Rebirth?

Hi, I'm trying to make a aura the player gets once they reach a certain lvl or rebirth. I have a ServerScript in StarterCharacterScripts to handle this, the output shows no errors or anything printed as told.

Here is the script:

game.Players.PlayerAdded:Connect(function(player)
	local Aura = game.ReplicatedStorage.Auras.Lightning
	player.CharacterAdded:Connect(function(Char)
		if player.leaderstats.Levels.Value >= 50 and player.leaderstats.Rebirths.Value >= 5 then
			Aura:Clone().Parent = Char.HumanoidRootPart
           print("Given")
		end
	end)
end)

1 answer

Try putting the script in ServerScriptService. If that doesn’t work then instead of making the aura on the HumanoidRootPart, put it on the torso

2 comments

0

Also btw, you should run a loop for this script since it only runs when the player joins. If you have a data store written already then there’s no need for this

0

I already tried both ways, I then get an error leaderstats are not a member of player.

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