Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.Players.PlayerAdded:Connect(function(Player)
- local leaderstats = Instance.new("Folder") -- Don't Change
- leaderstats.Name = "leaderstats" -- Don't Change
- leaderstats.Parent = Player -- Don't Change
- local Value = Instance.new("IntValue") -- I want to save this value after leaving the game
- Value.Name = "Points"
- Value.Parent = leaderstats
- Value.Value = 0
- local Value2 = Instance.new("IntValue") -- I don't want to save this value after leaving the game
- Value2.Name = "RN"
- Value2.Parent = leaderstats
- local Value3 = Instance.new("StringValue") -- I don't want to save this value after leaving the game
- Value3.Name = "Rank"
- Value3.Parent = leaderstats
- Value3.Value = "Owner"
- -- To create a new value, just copy and paste this text and change the components to your liking
- local MyValue = Instance.new("StringValue") -- Change MyValue to what you want to name your value or just keep it idrc, change StringValue to what type of value you would like to store
- MyValue.Name = "Value" -- Change "Value" to the name of your value
- MyValue.Parent = leaderstats
- MyValue.Value = 1 -- Change the number to the starting value or to the only value
- -- Delete the MyValue if you want to
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement