Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// Made by Hamii / Hamiii#4518. DISCORD SERVER: https://discord.gg/7HrfDJ7
- --// Settings | EDIT THEM
- local ENABLEKEY = "E" --/ Enable Key, Capitals Only
- local DISABLEKEY = "U" --/ Disable Key, Capitals Only
- local Mobs = "all" --/ The mobs you will bring, "all" is for every mob. Ex: Pillar
- local AutoTeleport = true --/ use if you're a begginer
- local AutoUpgrade = true --/ auto uses your points to upgrade strength and stamina
- local StunBey = true --/ Stuns your bey
- local BeySpeed = 100 --/ Only works with StunBey = false
- local MaxDistance = 75 --/ Max distance your beyblade brings the mobs.
- --// Do not edit below!
- local Player = game:GetService("Players").LocalPlayer
- local Character = Player.Character
- local Root = Character.HumanoidRootPart
- local Humanoid = Character.Humanoid
- local Beyblades = workspace.beyblades
- local Number = 0
- local EnemyNumber = 0
- local Enabled = false
- if Player:WaitForChild("PlayerScripts"):FindFirstChild("") then
- local Security = Player:WaitForChild("PlayerScripts"):FindFirstChild("")
- Security.Disabled = true
- Security:Destroy()
- else
- print'Already destroyed security'
- end
- function AttackMob(v, bey)
- if v.Parent == workspace.mobs then
- if (bey.Torso.Position - v.PrimaryPart.Position).magnitude <= MaxDistance then
- v.PrimaryPart.CanCollide = false
- v.PrimaryPart.CFrame = CFrame.new(bey.Torso.Position)
- wait(0.01)
- bey.Torso.CFrame = CFrame.new(v.PrimaryPart.Position)
- end
- else
- EnemyNumber = EnemyNumber + 1
- print('Destroyed: ' .. v.Name .. ' [MOB NR: ' .. EnemyNumber .. ']')
- end
- end
- function DamageMob(State)
- if State then
- Enabled = true
- print("Beybye has been ENABLED! AFK Farm is now enabled!")
- else
- Enabled = false
- print("Beybye has been DISABLED! AFK Farm is now disabled!")
- end
- while wait() and Enabled do
- if not game.Workspace.beyblades:FindFirstChild(Player.Name) then
- Number = Number + 1
- if AutoTeleport then
- Root.CFrame = CFrame.new(-130, -2, -680)
- end
- game.ReplicatedStorage.event:FireServer("launch")
- repeat wait() until Beyblades:FindFirstChild(Player.Name)
- print("Spawned Beyblade NUMBER: " .. Number)
- else
- local bey = Beyblades:FindFirstChild(Player.Name)
- if StunBey and Enabled then
- bey.hum.WalkSpeed = 0
- else
- bey.hum.WalkSpeed = BeySpeed
- end
- if AutoUpgrade then
- game:GetService("ReplicatedStorage"):FindFirstChild("event"):FireServer("attri", os.time(), "atk")
- game:GetService("ReplicatedStorage"):FindFirstChild("event"):FireServer("attri", os.time(), "stam")
- end
- for _,v in pairs(workspace.mobs:GetChildren()) do
- if Mobs:lower() == "all" then
- AttackMob(v, bey)
- else
- if v.Name == Mobs then
- AttackMob(v, bey)
- end
- end
- end
- end
- end
- end
- game:GetService("UserInputService").InputBegan:Connect(function(input)
- if input.KeyCode == Enum.KeyCode[ENABLEKEY] then
- DamageMob(true)
- elseif input.KeyCode == Enum.KeyCode[DISABLEKEY] then
- DamageMob(false)
- end
- end)
- print("Beybye by Hamii completly loaded!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement