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

Auto Save script help? [Don't need anymore]

Asked by 10 years ago

I want to make it where, you like have 25 wins, you quit, and you join back in, your wins are saved.

Here's the leaderboard script:

function onPlayerEntered(newPlayer)
local stats = Instance.new("IntValue")
stats.Name = "leaderstats"
local wins = Instance.new("IntValue")
wins.Name = "Wins"
wins.Value = 0
wins.Parent = stats
stats.Parent = newPlayer
end

game.Players.ChildAdded:connect(onPlayerEntered)

Thank you.

1 answer

Log in to vote
0
Answered by
lomo0987 250 Moderation Voter
10 years ago

You are going to want to look into datastore. You can find it here

http://wiki.roblox.com/index.php?title=Data_store

Ad

Answer this question