Advertisement
RazHack_YT

Sin

Jun 17th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.51 KB | None | 0 0
  1. --// Made by Hamii / Hamiii#4518. DISCORD SERVER: https://discord.gg/7HrfDJ7
  2. --// Settings | EDIT THEM
  3. local ENABLEKEY = "E" --/ Enable Key, Capitals Only
  4. local DISABLEKEY = "U" --/ Disable Key, Capitals Only
  5. local Mobs = "all" --/ The mobs you will bring, "all" is for every mob. Ex: Pillar
  6. local AutoTeleport = true --/ use if you're a begginer
  7. local AutoUpgrade = true --/ auto uses your points to upgrade strength and stamina
  8. local StunBey = true --/ Stuns your bey
  9. local BeySpeed = 100 --/ Only works with StunBey = false
  10. local MaxDistance = 75 --/ Max distance your beyblade brings the mobs.
  11.  
  12. --// Do not edit below!
  13. local Player = game:GetService("Players").LocalPlayer
  14. local Character = Player.Character
  15. local Root = Character.HumanoidRootPart
  16. local Humanoid = Character.Humanoid
  17. local Beyblades = workspace.beyblades
  18. local Number = 0
  19. local EnemyNumber = 0
  20. local Enabled = false
  21.  
  22. if Player:WaitForChild("PlayerScripts"):FindFirstChild("") then
  23. local Security = Player:WaitForChild("PlayerScripts"):FindFirstChild("")
  24. Security.Disabled = true
  25. Security:Destroy()
  26. else
  27. print'Already destroyed security'
  28. end
  29.  
  30. function AttackMob(v, bey)
  31. if v.Parent == workspace.mobs then
  32. if (bey.Torso.Position - v.PrimaryPart.Position).magnitude <= MaxDistance then
  33. v.PrimaryPart.CanCollide = false
  34. v.PrimaryPart.CFrame = CFrame.new(bey.Torso.Position)
  35. wait(0.01)
  36. bey.Torso.CFrame = CFrame.new(v.PrimaryPart.Position)
  37. end
  38. else
  39. EnemyNumber = EnemyNumber + 1
  40. print('Destroyed: ' .. v.Name .. ' [MOB NR: ' .. EnemyNumber .. ']')
  41. end
  42. end
  43. function DamageMob(State)
  44. if State then
  45. Enabled = true
  46. print("Beybye has been ENABLED! AFK Farm is now enabled!")
  47. else
  48. Enabled = false
  49. print("Beybye has been DISABLED! AFK Farm is now disabled!")
  50. end
  51. while wait() and Enabled do
  52. if not game.Workspace.beyblades:FindFirstChild(Player.Name) then
  53. Number = Number + 1
  54. if AutoTeleport then
  55. Root.CFrame = CFrame.new(-130, -2, -680)
  56. end
  57. game.ReplicatedStorage.event:FireServer("launch")
  58. repeat wait() until Beyblades:FindFirstChild(Player.Name)
  59. print("Spawned Beyblade NUMBER: " .. Number)
  60. else
  61. local bey = Beyblades:FindFirstChild(Player.Name)
  62. if StunBey and Enabled then
  63. bey.hum.WalkSpeed = 0
  64. else
  65. bey.hum.WalkSpeed = BeySpeed
  66. end
  67. if AutoUpgrade then
  68. game:GetService("ReplicatedStorage"):FindFirstChild("event"):FireServer("attri", os.time(), "atk")
  69. game:GetService("ReplicatedStorage"):FindFirstChild("event"):FireServer("attri", os.time(), "stam")
  70. end
  71. for _,v in pairs(workspace.mobs:GetChildren()) do
  72. if Mobs:lower() == "all" then
  73. AttackMob(v, bey)
  74. else
  75. if v.Name == Mobs then
  76. AttackMob(v, bey)
  77. end
  78. end
  79. end
  80. end
  81. end
  82. end
  83.  
  84. game:GetService("UserInputService").InputBegan:Connect(function(input)
  85. if input.KeyCode == Enum.KeyCode[ENABLEKEY] then
  86. DamageMob(true)
  87. elseif input.KeyCode == Enum.KeyCode[DISABLEKEY] then
  88. DamageMob(false)
  89. end
  90. end)
  91.  
  92. print("Beybye by Hamii completly loaded!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement