Advertisement
Sungmingamerpro13

RoundsDataStore with TeleportService

May 25th, 2025
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.36 KB | None | 0 0
  1. local TeleportService = game:GetService("TeleportService")
  2. local RoundsDataStore = game:GetService("DataStoreService"):GetOrderedDataStore("Rounds")
  3.  
  4. game.Players.PlayerAdded:Connect(function(player)
  5.     player.CharacterAdded:Connect(function(Char)
  6.  
  7.         Char.Humanoid.Died:Connect(function()
  8.  
  9.             RoundsDataStore:IncrementAsync(player.UserId, 1)
  10.  
  11.         end)
  12.     end)
  13. end)
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement