Advertisement
HowToRoblox

WipeoutLeaderboardScript

Jan 6th, 2020
3,690
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. local plrs = game.Players
  2.  
  3.  
  4. plrs.PlayerAdded:Connect(function(plr)
  5.    
  6.     local stats = Instance.new("Folder")   
  7.     stats.Name = "leaderstats"
  8.     stats.Parent = plr
  9.    
  10.     local wipeouts = Instance.new("IntValue")  
  11.     wipeouts.Name = "Wipeouts"
  12.     wipeouts.Value = 0
  13.     wipeouts.Parent = stats
  14.    
  15.     plr.CharacterAdded:Connect(function(char)
  16.        
  17.         local humanoid = char:FindFirstChild("Humanoid")
  18.        
  19.         humanoid.Died:Connect(function()
  20.            
  21.             wipeouts.Value = wipeouts.Value + 1
  22.            
  23.         end)       
  24.     end)
  25. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement