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)

2 comments
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
I already tried both ways, I then get an error leaderstats are not a member of player.