GS_StarGamer

Untitled

Apr 2nd, 2022 (edited)
890
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.69 KB | None | 0 0
  1.  
  2.     -- Variable
  3.    
  4.     local player = game.Players.LocalPlayer
  5.     _G.Enabled = true
  6.     local ghostN = "Wizard" -- you can find all name in Workspace.Ghost
  7.     local GhostsFolder = game.Workspace.Ghosts
  8.     local bLocation
  9.    
  10.    
  11.     -- function
  12.    
  13.     function teleport(loc) -- Nymphoria on v3rmillion.net
  14.        bLocation = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  15.        if game.Players.LocalPlayer.Character.Humanoid.Sit then
  16.            game.Players.LocalPlayer.Character.Humanoid.Sit = false
  17.        end
  18.        wait()
  19.        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = loc
  20.     end
  21.    
  22.    
  23. getgenv().autofarm = true
  24.  
  25. while getgenv().autofarm == true do
  26.     repeat
  27.         for i,v in pairs(game.Workspace.Ghosts:GetChildren()) do
  28.                    if GhostsFolder[ghostN]:FindFirstChild("HumanoidRootPart") and GhostsFolder[ghostN]:FindFirstChild("EnemyHumanoid") and GhostsFolder[ghostN].Health.Value > 0 and player.Character:FindFirstChild("HumanoidRootPart") then
  29.                            if player.Character:FindFirstChild("HumanoidRootPart") and GhostsFolder[ghostN]:FindFirstChild("HumanoidRootPart") then
  30.                                player.Character.HumanoidRootPart.CFrame = GhostsFolder[ghostN].HumanoidRootPart.CFrame * CFrame.new(0,0,5)
  31.                            
  32.                            wait()
  33.                            
  34.                            local remote = game:GetService("ReplicatedStorage").Network.ToServer.Requests.VacuumEnemy
  35.                            remote:FireServer(GhostsFolder[ghostN])
  36.  
  37.                         end  
  38.                 end
  39.             end
  40.         until getgenv().autofarm == false
  41.     end
  42.  
Advertisement
Add Comment
Please, Sign In to add comment