Facebook
From Angelika, 2 Months ago, written in Lua.
Embed
Download Paste or View Raw
Hits: 139
  1. -- Get a reference to the player's rank object
  2. local rank = game.Players.LocalPlayer.Data.Rank
  3.  
  4. -- Create a loop that runs continuously
  5. while true do
  6.     -- Wait for 10 seconds
  7.     wait(10)
  8.    
  9.     -- Increment the player's rank by 1
  10.     rank.Value = rank.Value + 1
  11.    
  12.     -- Save the updated rank back to the game
  13.     rank:Write()
  14. end