Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function onPlayerJoin(player)
- local leaderstats = Instance.new("Folder")
- leaderstats.Name = "leaderstats"
- leaderstats.Parent = player
- -- Example of a IntValue
- local points = Instance.new("IntValue")
- points.Name = "Points"
- points.Value = 0
- points.Parent = leaderstats
- end
- -- Run onPlayerJoin when the PlayerAdded event fires
- game.Players.PlayerAdded:Connect(onPlayerJoin)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement