Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game.Players
- Players.PlayerAdded:Connect(function(player)
- repeat wait() until player.Character
- --[[For Reference: 0 FPs = Max lvl 50
- 1 FP = Max lvl 75
- 2 FPs = Max lvl 100
- 3 FPs = Max lvl 150
- 4 FPs = Max lvl 175
- 5 FPs = Max lvl 200
- 6 FPs = Max lvl 250
- 7 FPs = Max lvl 300
- 8 FPs = Max lvl 350
- 9 FPs = Max lvl 400
- 10 FPs = Max lvl 500
- --]]
- local FlashPointLevels = {
- [0] = 50,
- [1] = 75,
- [2] = 100,
- [3] = 150,
- [4] = 175,
- [5] = 200,
- [6] = 250,
- [7] = 300,
- [8] = 350,
- [9] = 400,
- [10] = 500
- }
- local speedforce = player.leaderstats:WaitForChild("Speed Force Inherited")
- local lvl = player.leaderstats:WaitForChild("Level")
- local xp = player.leaderstats.hidden:WaitForChild("Experience")
- local fps = player.leaderstats:WaitForChild("Flash Points")
- local maxXp = 12
- local canEarnXp = true
- player.Character.Humanoid.WalkSpeed = lvl.Value * (2/10)+ player.Character.Humanoid.WalkSpeed
- if lvl.Value == 1 then
- player.Character.Humanoid.WalkSpeed = 2
- end
- speedforce.Changed:Connect(function()
- if speedforce.Value % 5 == 0 and canEarnXp then
- print("we good")
- xp.Value = xp.Value + 1
- end
- end)
- lvl.Changed:Connect(function()
- if lvl.Value == 1 then
- player.Character.Humanoid.WalkSpeed = 2
- maxXp = 12
- elseif lvl.Value == FlashPointLevels[fps.Value] then
- print("wth")
- canEarnXp = false
- else
- print("yep")
- maxXp = lvl.Value * 12
- player.Character.Humanoid.WalkSpeed = lvl.Value * (2/10)+ player.Character.Humanoid.WalkSpeed
- end
- end)
- xp.Changed:Connect(function()
- if xp.Value >= maxXp and canEarnXp then
- lvl.Value = lvl.Value + 1
- end
- end)
- player.CharacterAdded:Connect(function(char)
- while true do
- wait()
- print("start the char")
- local playerr = game.Players:GetPlayerFromCharacter(char)
- local speedforcee = playerr.leaderstats:WaitForChild("Speed Force Inherited")
- local lvle = playerr.leaderstats:WaitForChild("Level")
- local xpe = playerr.leaderstats.hidden:WaitForChild("Experience")
- local fpse = playerr.leaderstats:WaitForChild("Flash Points")
- local maxXpe = 12
- local canEarnXpe = true
- print("ok getting along")
- char.Humanoid.WalkSpeed = lvle.Value * (2/10)+ char.Humanoid.WalkSpeed
- if lvle.Value == 1 then
- char.Humanoid.WalkSpeed = 2
- end
- speedforcee.Changed:Connect(function()
- if speedforcee.Value % 5 == 0 and canEarnXpe then
- print("we good")
- xpe.Value = xpe.Value + 1
- end
- end)
- lvle.Changed:Connect(function()
- if lvle.Value == 1 then
- char.Humanoid.WalkSpeed = 2
- maxXpe = 12
- elseif lvle.Value == FlashPointLevels[fpse.Value] then
- print("wth")
- canEarnXpe = false
- else
- print("yep")
- maxXpe = lvle.Value * 12
- char.Humanoid.WalkSpeed = lvle.Value * (2/10)+ player.Character.Humanoid.WalkSpeed
- end
- end)
- xpe.Changed:Connect(function()
- if xpe.Value >= maxXpe and canEarnXpe then
- lvle.Value = lvle.Value + 1
- end
- end)
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement