Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 7 years ago

Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.

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

0
Hello, Invite to your game or elaborate on your question. Thank you. arshad145 392 — 7y

Closed as Too Broad by User#5423, DanzLua, and shayner32

This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
Corexty 15
7 years ago

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)
Ad