cuhieu9xk

Zombie Atack Roblox Script by acsu123#9826

Aug 13th, 2021
1,439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.60 KB | None | 0 0
  1. --[[ SETTING ]]--
  2. local your_sword = "Darkheart" -- Name of your sword
  3. _G.f = true -- true = autofarm; false = off
  4. --[[ CREDIT ]]--
  5. --acsu123#9826
  6. --[[ The Logic (Dont Touch) ]]--
  7. local remote = game.ReplicatedStorage.forhackers
  8. local boss = workspace.BossFolder:FindFirstChildOfClass("Model")
  9. delay(0, function()
  10.     while wait(math.random(40,50)) do
  11.         local random = tostring("hei look at "..math.random(10,1000000))
  12.         game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(random,"All")
  13.     end
  14. end)
  15. function equip()
  16.     if not game.Players.LocalPlayer.Character:FindFirstChild(your_sword) then
  17.         game.Players.LocalPlayer.Backpack:FindFirstChild(your_sword).Parent = game.Players.LocalPlayer.Character
  18.     end
  19. end
  20. while wait() do
  21.     if _G.f == true and not boss then    
  22.         equip()
  23.         for i,v in pairs(workspace.enemies:GetChildren()) do
  24.             if v:FindFirstChild("HumanoidRootPart") then
  25.                 v.HumanoidRootPart.Size = Vector3.new(20,40,20)
  26.                 v.HumanoidRootPart.Transparency = 0.6
  27.                 remote:InvokeServer("throw", your_sword, v.HumanoidRootPart.CFrame * CFrame.new(0,12,0))  
  28.             end
  29.         end
  30.     elseif _G.f == true and boss then
  31.             equip()
  32.             if boss:FindFirstChild("HumanoidRootPart") then
  33.                 boss.HumanoidRootPart.Size = Vector3.new(20,40,20)
  34.                 boss.HumanoidRootPart.Transparency = 0.6
  35.                 remote:InvokeServer("throw", your_sword, v.HumanoidRootPart.CFrame * CFrame.new(0,12,0))  
  36.             end
  37.     end
  38. end
Advertisement
Add Comment
Please, Sign In to add comment