local Player = game.Players.LocalPlayer
local points = Player.leaderstats.Points
local Player = game.Players.LocalPlayer
local points = Player.leaderstats.Points
Ok, I was so confused, Now I finally know what you mean.
Honestly, leaderstats are not a part of Player. If you want to create a leaderstats, insert a script In ServerScriptService.
The script:
game.Players.PlayerAdded:connect(function(p) -- p means player
local stats = Instance.new("IntValue")
stats.Name = "leaderstats"
stats.Parent = p
local money = Instance.new("IntValue")
money.Name = "Points" -- Change "Points" to other things that you wanted
money.Value = 50 -- Change the value to how many you want when the player joins the game
money.Parent = stats
end)
You can't just find leaderstats inside Player, so just creates them!
Hope I helped, and please explain clearer next time! Cya!
ok thx
np and if worked then accept the answer
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
Please explain clearer. We don't know what problem you wrong.
ok
it says that leaderstats is not a valid member of folder
Done I did an answer, hope I helped.