Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _G.Farm = true
- local player = game.Players.LocalPlayer
- local level = player.PlayerFolder.Level.Value
- while wait() do
- if _G.Farm then
- if level < 10 then
- for i,v in pairs(workspace:GetChildren()) do
- if v.Name == "TrainingDummy" and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Humanoid") then
- repeat wait()
- player.Character.HumanoidRootPart.CFrame=CFrame.new(v.HumanoidRootPart.Position+Vector3.new(-1,0,2))
- game:GetService("ReplicatedStorage").Remotes.Client.PlayerControl:FireServer("Combat")
- until v.Humanoid.Health == 0 or _G.Farm == false
- end
- end
- end
- if level > 10 then
- if player.PlayerFolder.Quest.Value == "No Quest" then
- game.ReplicatedStorage.Remotes.Player.NPCChat:FireServer("Defeat 10 Thugs.", true)
- end
- if player.PlayerFolder.Quest.Value ~= "No Quest" then
- for i,v in pairs(player.Backpack:GetChildren()) do
- if v.Name == "Combat" then
- repeat wait()
- player.Character.Humanoid:EquipTool(v)
- until player.Character:FindFirstChild("Combat")
- end
- end
- for i,v in pairs(workspace:GetChildren()) do
- if v.Name == "Thug" and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Humanoid") then
- repeat wait()
- player.Character.HumanoidRootPart.CFrame=CFrame.new(v.HumanoidRootPart.Position+Vector3.new(-1,0,2))
- game:GetService("ReplicatedStorage").Remotes.Client.PlayerControl:FireServer("Combat")
- until v.Humanoid.Health == 0 or _G.Farm == false or player.PlayerFolder.Quest.Value == "No Quest"
- end
- end
- end
- end
- end
- if _G.Farm == false then
- break
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement