Advertisement
XxxLloyd061302xxX

Data (Must be in the ServerScriptService)

Jun 26th, 2017
34,185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. game.Players.PlayerAdded:connect(function(player)
  2. game.Workspace:WaitForChild("NumPlayers").Value = game.Workspace:WaitForChild("NumPlayers").Value + 1
  3. local settings = Instance.new("Folder",player)
  4. settings.Name = "Settings"
  5. local afk = Instance.new("BoolValue",settings)
  6. afk.Name = "AFK"
  7. local leaderboard = Instance.new("Folder",player)
  8. leaderboard.Name = "leaderstats"
  9. local currency1 = Instance.new("IntValue",leaderboard)
  10. currency1.Name = "Credits"
  11. local currency2 = Instance.new("IntValue",leaderboard)
  12. currency2.Name = "Wins"
  13. end)
  14.  
  15. game.Players.PlayerRemoving:connect(function(player)
  16. game.Workspace:WaitForChild("NumPlayers").Value = game.Workspace:WaitForChild("NumPlayers").Value - 1
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement