Hasli4

RBLX. UpgradeCharacter

Jan 14th, 2026
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.74 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local function leaderboardSetup(player)
  3.     wait(1)
  4.     game.Workspace.Data.Player.Value = player
  5.     local char = game.Workspace:WaitForChild(player.Name)
  6.     local sword = player.Backpack.ClassicSword
  7.     local lunge = sword.LungeDamage
  8.     local slash = sword.SlashDamage
  9.     local exp = player.leaderstats.Exp
  10.     exp.Value=1
  11.     lunge.Value = 5
  12.     slash.Value = 0.01
  13.     while true do
  14.         wait(2)
  15.         print("exp = ",exp.Value,"Lunge damage = ",lunge.Value," Slash damage = ",slash.Value)
  16.         if exp.Value > 10 then
  17.             lunge.Value = 5 + 2*exp.Value/10
  18.             slash.Value = 5 + 5*exp.Value/10
  19.         end
  20.  
  21.     end
  22. end
  23. Players.PlayerAdded:Connect(leaderboardSetup)
Advertisement
Add Comment
Please, Sign In to add comment