Why isnt this creating a leaderstat?

image

Type leaderstats instead of leaderboard

it need to be lowercase l

leaderboards.Name = “leaderstats”


Still not working

it need to be a local script inside StarterPlayerScript

and need to be parented to the player

you can write leaderstats

local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(Player : Player)
	local Leaderstats = Instance.new("Folder",Player)
	Leaderstats.Name = "leaderstats"

	local Cash = Instance.new("NumberValue",Leaderstats)
	Cash.Name = "Cash"
end)

Thank you i really appreciate it!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.