Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local godmode = false -- set true if u want farm without dying
- local executecheck = false -- initialize as false
- if executecheck then
- print("Already Executed")
- return
- end
- game.Players.LocalPlayer.Character:BreakJoints()
- game.Players.LocalPlayer.Character.Humanoid.Died:Connect(function()
- game.Players.LocalPlayer.CharacterAdded:Connect(function()
- for i, v in pairs(game:GetService("Workspace").Spawn.Classes.Class1:GetDescendants()) do
- if v:IsA("ClickDetector") then
- fireclickdetector(v)
- executecheck = true
- end
- end
- end)
- end)
- game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
- wait(7)
- if godmode then
- local speaker = game.Players.LocalPlayer
- local Cam = workspace.CurrentCamera
- local Char = speaker.Character
- local Human = Char:FindFirstChildWhichIsA("Humanoid")
- local nHuman = Human:Clone()
- nHuman.Parent = Char
- speaker.Character = nil
- nHuman:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
- nHuman:SetStateEnabled(Enum.HumanoidStateType.FallingDown, false)
- nHuman:SetStateEnabled(Enum.HumanoidStateType.Running, false)
- nHuman.BreakJointsOnDeath = true
- Human:Destroy()
- speaker.Character = Char
- Cam.CameraSubject = nHuman
- Cam.CFrame = Pos
- nHuman.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
- local Script = Char:FindFirstChild("Animate")
- nHuman.Health = nHuman.MaxHealth
- Char.Animate.Disabled = true
- wait(.05)
- Char.Animate.Disabled = false
- wait(.10)
- end
- game.Players.LocalPlayer.Backpack["Infinity Gauntlet"].Parent = game.Players.LocalPlayer.Character
- while wait() do
- pcall(function()
- for i, v in pairs(game:GetService("Workspace").Enemies:GetChildren()) do
- repeat wait(.01)
- game.Players.LocalPlayer.Character["Infinity Gauntlet"]:Activate()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame =
- v.HumanoidRootPart.CFrame * CFrame.new(1, -1,math.random(-2,2))
- until (v:FindFirstChildWhichIsA("Humanoid").Health <= 0 or not v)
- end
- end)
- end
Advertisement
Advertisement