nguyenminhnghia

Untitled

Mar 26th, 2019
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.20 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local ScreenGui = Instance.new("ScreenGui")
  5. local XD = Instance.new("Frame")
  6. local TextLabel = Instance.new("TextLabel")
  7. local AutoFarm = Instance.new("TextButton")
  8. local TextLabel_2 = Instance.new("TextLabel")
  9. --Properties:
  10. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  11. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  12.  
  13. XD.Name = "XD"
  14. XD.Parent = ScreenGui
  15. XD.BackgroundColor3 = Color3.new(0, 1, 0.498039)
  16. XD.BorderColor3 = Color3.new(1, 1, 1)
  17. XD.BorderSizePixel = 3
  18. XD.Position = UDim2.new(0.542091846, 0, 0.384765625, 0)
  19. XD.Size = UDim2.new(0, 227, 0, 171)
  20.  
  21. TextLabel.Parent = XD
  22. TextLabel.BackgroundColor3 = Color3.new(0, 1, 0.498039)
  23. TextLabel.BorderColor3 = Color3.new(1, 1, 1)
  24. TextLabel.BorderSizePixel = 3
  25. TextLabel.Position = UDim2.new(0.0572687238, 0, 0.0350877196, 0)
  26. TextLabel.Size = UDim2.new(0, 200, 0, 19)
  27. TextLabel.Font = Enum.Font.Cartoon
  28. TextLabel.Text = "By DPT Roblox"
  29. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  30. TextLabel.TextSize = 24
  31.  
  32. AutoFarm.Name = "Auto Farm"
  33. AutoFarm.Parent = XD
  34. AutoFarm.BackgroundColor3 = Color3.new(0, 1, 0.498039)
  35. AutoFarm.BorderColor3 = Color3.new(1, 1, 1)
  36. AutoFarm.BorderSizePixel = 3
  37. AutoFarm.Position = UDim2.new(0.308370054, 0, 0.245327368, 0)
  38. AutoFarm.Size = UDim2.new(0, 87, 0, 48)
  39. AutoFarm.Font = Enum.Font.Cartoon
  40. AutoFarm.Text = "Auto Farm"
  41. AutoFarm.TextColor3 = Color3.new(0, 0, 0)
  42. AutoFarm.TextSize = 20
  43. AutoFarm.MouseButton1Down:connect(function()
  44.     local player = game.Players.LocalPlayer
  45. _G.Active = true
  46. _G.Enemy = "Weak Villain"
  47. _G.Quest = "Kill Weak Villain"
  48. _G.Quirk = "Quirk1"
  49. _G.Key = "E"
  50.  
  51. for k,v in pairs(player.Character:GetChildren()) do
  52. if string.find(v.Name, "Quirk") then
  53. _G.Quirk = v.Name
  54. end
  55. end
  56.  
  57. while _G.Active do
  58.  
  59. if player.Character.Humanoid.Health > 0 then
  60.  
  61. for k,v in pairs(workspace.NPCs:GetChildren()) do
  62.  
  63. if _G.Active and player.Character.Humanoid.Health > 0 and v.Name == _G.Enemy then
  64.  
  65. repeat
  66.  
  67. if player.Character.Humanoid.Health > 0 then
  68.  
  69. local NPC = v
  70. player.Character.HumanoidRootPart.CFrame = NPC.HumanoidRootPart.CFrame * CFrame.new(0,0,2)
  71.  
  72.  
  73. local PunchEvent = game:GetService("Workspace")[player.Name][_G.Quirk][_G.Key]
  74. PunchEvent:FireServer()
  75.  
  76. local PunchEvent2 = game:GetService("Workspace")[player.Name][_G.Quirk].E
  77. PunchEvent2:FireServer()
  78.  
  79. local QuestEvent = game:GetService("ReplicatedStorage").Remotes.Quest.AcceptQuest
  80. QuestEvent:FireServer(_G.Quest)
  81.  
  82. local QuestEvent2 = game:GetService("ReplicatedStorage").Remotes.Quest.CompleteQuest
  83. QuestEvent2:FireServer(_G.Quest)
  84.  
  85. wait(.05)
  86.  
  87. else
  88.  
  89. wait(2)
  90.  
  91. end
  92.  
  93. until not _G.Active or v.Humanoid.Health < 1
  94.  
  95. end
  96.  
  97. wait()
  98.  
  99. end
  100.  
  101. else
  102.  
  103. wait(2)
  104.  
  105. end
  106.  
  107. wait()
  108.  
  109. end
  110. end)
  111.  
  112. TextLabel_2.Parent = XD
  113. TextLabel_2.BackgroundColor3 = Color3.new(0, 1, 0.498039)
  114. TextLabel_2.BorderColor3 = Color3.new(0, 1, 0.498039)
  115. TextLabel_2.Position = UDim2.new(0.0572687238, 0, 0.721209347, 0)
  116. TextLabel_2.Size = UDim2.new(0, 200, 0, 19)
  117. TextLabel_2.Font = Enum.Font.Cartoon
  118. TextLabel_2.Text = "Help me\npress the registration button\nand ring the bell \nif you are new"
  119. TextLabel_2.TextColor3 = Color3.new(0, 0, 0)
  120. TextLabel_2.TextSize = 19
  121. -- Scripts:
Add Comment
Please, Sign In to add comment