Advertisement
bacnguyenxgen

Khởi tạo tính điểm trong Server Script

Mar 30th, 2021
621
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. local function onPlayerJoin(player)
  2.     local leaderstats = Instance.new("Folder")
  3.     leaderstats.Name = "leaderstats"
  4.     leaderstats.Parent = player
  5.  
  6.     -- Example of a IntValue
  7.     local points = Instance.new("IntValue")
  8.     points.Name = "Points"
  9.     points.Value = 0
  10.     points.Parent = leaderstats
  11.  
  12. end
  13.  
  14.  
  15. game.Players.PlayerAdded:Connect(onPlayerJoin)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement