Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local function leaderboardSetup(player)
- wait(1)
- game.Workspace.Data.Player.Value = player
- local char = game.Workspace:WaitForChild(player.Name)
- local sword = player.Backpack.ClassicSword
- local lunge = sword.LungeDamage
- local slash = sword.SlashDamage
- local exp = player.leaderstats.Exp
- exp.Value=1
- lunge.Value = 5
- slash.Value = 0.01
- while true do
- wait(2)
- print("exp = ",exp.Value,"Lunge damage = ",lunge.Value," Slash damage = ",slash.Value)
- if exp.Value > 10 then
- lunge.Value = 5 + 2*exp.Value/10
- slash.Value = 5 + 5*exp.Value/10
- end
- end
- end
- Players.PlayerAdded:Connect(leaderboardSetup)
Advertisement
Add Comment
Please, Sign In to add comment