electrify

Script - Speed City(full script)

Apr 21st, 2020
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.72 KB | None | 0 0
  1. local player = game:service'Players'.LocalPlayer;
  2. local character = player.Character or player.CharacterAdded:wait();
  3.  
  4. local getMap = function()
  5. local k = ""
  6. local lvl = game:service'Players'.LocalPlayer.leaderstats.Steps.Value
  7. if lvl >= 500000 and k == "" then
  8. k = "BeachMap"
  9. else if lvl >= 75000 and k == "" then
  10. k = "VolcanoMap"
  11. else if lvl >= 50000 and k == "" then
  12. k = "OldMap"
  13. else if lvl >= 2500 and k == "" then
  14. k = "Winter"
  15. else if lvl < 2500 and k == "" then
  16. k = "MainMap"
  17. end
  18. end
  19. end
  20. end
  21. end
  22. return k
  23. end
  24.  
  25. spawn(function()
  26. spawn(function()
  27. while wait(0.1) do
  28. for _,orb in next, workspace:WaitForChild(getMap()).Spawners:GetChildren() do
  29. if orb:FindFirstChildOfClass("Model") then
  30. character.HumanoidRootPart.CFrame = CFrame.new(orb.Position)
  31. wait(0.05)
  32. end
  33. end
  34. end
  35. end)
  36. spawn(function()
  37. while wait(0.25) do
  38. if getMap() == "Winter" then
  39. character.HumanoidRootPart.CFrame = CFrame.new(-1470, 1213.00049, -2675)
  40. character.Humanoid:MoveTo(Vector3.new(-1000, 1213.00049, -2675))
  41. else if getMap() == "OldMap" then
  42. character.HumanoidRootPart.CFrame = CFrame.new(-2388, 2742.49976, 390)
  43. character.Humanoid:MoveTo(Vector3.new(-2000, 2742.49976, 390))
  44. else if getMap() == "VolcanoMap" then
  45. character.HumanoidRootPart.CFrame = CFrame.new(-1261, 1849.59656, -11)
  46. character.Humanoid:MoveTo(Vector3.new(-1000, 1849.59656, -11))
  47. else if getMap() == "BeachMap" then
  48. character.HumanoidRootPart.CFrame = CFrame.new(-3613.07739, 67.7421036, 1119.66309)
  49. character.Humanoid:MoveTo(Vector3.new(-3000.07739, 67.7421036, 1119.66309))
  50. end
  51. end
  52. end
  53. end
  54. end
  55. end)
  56. spawn(function()
  57. game:service'RunService'.Stepped:Connect(function()
  58. character.Humanoid.WalkSpeed = 400;
  59. character.Humanoid:ChangeState(11)
  60. end)
  61. end)
  62. end)
Add Comment
Please, Sign In to add comment