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

HOW DO I ADD GAME STATS LIKE (ONE PIECE)?

so im trying to make a game where u can lvl up if someone can help me msg me pls

1 comment

0

Hello, Invite to your game or elaborate on your question. Thank you.

1 answer

This is not a leveling up system but you can edit it to make it one. This is just the basics.

In ServerScriptService make a script and put this code;

game.Players.PlayerAdded:connect(function(plr) -- when the player joins the game
    local leaderstats=Instance.new("Configuration") --make folder of leaderstats
    leaderstats.Name="leaderstats" --define the name
    leaderstats.Parent=plr -- sets the leaderstats in the player

    local stat=Instance.new("NumberValue") --makes the stat value
    stat.Name="Score" -- the name of the stat
    stat.Parent=leaderstats --sets it so you can see the score on the leaderboard
end)

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