Advertisement
poweredraihan

Ninja Master Script

Mar 13th, 2019
3,463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.14 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local ScreenGui = Instance.new("ScreenGui")
  5. local Ninja = Instance.new("Frame")
  6. local BarA = Instance.new("Frame")
  7. local Title = Instance.new("TextLabel")
  8. local BarB = Instance.new("Frame")
  9. local Close = Instance.new("TextButton")
  10. local Farm = Instance.new("TextButton")
  11. local Sell = Instance.new("TextButton")
  12. --Properties:
  13. ScreenGui.Parent = game.CoreGui
  14. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  15.  
  16. Ninja.Name = "Ninja"
  17. Ninja.Parent = ScreenGui
  18. Ninja.BackgroundColor3 = Color3.new(0, 0, 0)
  19. Ninja.Position = UDim2.new(0.336457372, 0, 0.310756981, 0)
  20. Ninja.Size = UDim2.new(0, 349, 0, 190)
  21.  
  22.  
  23. BarA.Name = "BarA"
  24. BarA.Parent = Ninja
  25. BarA.BackgroundColor3 = Color3.new(1, 1, 1)
  26. BarA.BorderSizePixel = 0
  27. BarA.Size = UDim2.new(0, 349, 0, 33)
  28.  
  29. Title.Name = "Title"
  30. Title.Parent = BarA
  31. Title.BackgroundColor3 = Color3.new(1, 1, 1)
  32. Title.BackgroundTransparency = 1
  33. Title.Position = UDim2.new(0.212034389, 0, 0, 0)
  34. Title.Size = UDim2.new(0, 200, 0, 33)
  35. Title.Font = Enum.Font.SourceSans
  36. Title.Text = "Ninja Master Auto Farm"
  37. Title.TextColor3 = Color3.new(0, 0, 0)
  38. Title.TextSize = 33
  39.  
  40. BarB.Name = "BarB"
  41. BarB.Parent = Ninja
  42. BarB.BackgroundColor3 = Color3.new(1, 1, 1)
  43. BarB.BorderSizePixel = 0
  44. BarB.Position = UDim2.new(0, 0, 0.826315761, 0)
  45. BarB.Size = UDim2.new(0, 349, 0, 33)
  46.  
  47. Close.Name = "Close"
  48. Close.Parent = Ninja
  49. Close.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
  50. Close.Position = UDim2.new(0.936962724, 0, 0, 0)
  51. Close.Size = UDim2.new(0, 22, 0, 33)
  52. Close.Font = Enum.Font.SourceSans
  53. Close.Text = "X"
  54. Close.TextColor3 = Color3.new(1, 1, 1)
  55. Close.TextSize = 23
  56.  
  57. Farm.Name = "Farm"
  58. Farm.Parent = Ninja
  59. Farm.BackgroundColor3 = Color3.new(1, 1, 1)
  60. Farm.Position = UDim2.new(0.303724945, 0, 0.236842066, 0)
  61. Farm.Size = UDim2.new(0, 137, 0, 35)
  62. Farm.Font = Enum.Font.SourceSans
  63. Farm.Text = "Auto Farm"
  64. Farm.TextColor3 = Color3.new(0, 0, 0)
  65. Farm.TextSize = 30
  66.  
  67. Sell.Name = "Sell"
  68. Sell.Parent = Ninja
  69. Sell.BackgroundColor3 = Color3.new(1, 1, 1)
  70. Sell.Position = UDim2.new(0.303724915, 0, 0.578947365, 0)
  71. Sell.Size = UDim2.new(0, 137, 0, 35)
  72. Sell.Font = Enum.Font.SourceSans
  73. Sell.Text = "Auto Sell"
  74. Sell.TextColor3 = Color3.new(0, 0, 0)
  75. Sell.TextSize = 30
  76. -- Scripts:
  77.  
  78. Farm.MouseButton1Down:connect(function()
  79. local Options = {
  80. ["Start Area Back"] = true, -- Starting Area (true if you wanna farm it)
  81. ["Autumn"] = true, -- Autumn Area (true if you wanna farm it)
  82. ["Frostland"] = true, -- Frostland Area (true if you wanna farm it)
  83. ["Inferno"] = true, -- Inferno Zone (true if you wanna farm it)
  84. ["Voidland"] = true,
  85. ["Skyland"] = true,
  86. ["Grassland"] = true,
  87. ["Iceland"] = true,
  88. }
  89.  
  90. local Weapon;
  91. _G.StopFarming = false
  92. function GetWeapon()
  93. local Found = false
  94. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  95. if v:IsA("Tool") then
  96. if v:FindFirstChild("Katana") then
  97. Weapon = v
  98. Found = true
  99. end
  100. end
  101. end
  102. if Found == false then
  103. for a,b in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  104. if b:IsA("Tool") then
  105. if b:FindFirstChild("Katana") then
  106. b.Parent = game.Players.LocalPlayer.Character
  107. Weapon = b
  108. Found = true
  109. end
  110. end
  111. end
  112. end
  113. end
  114.  
  115. GetWeapon()
  116.  
  117. function CheckWeapon()
  118. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  119. if v:IsA("Tool") then
  120. if v:FindFirstChild("Katana") then
  121. Weapon = v
  122. return true
  123. else
  124. return false
  125. end
  126. end
  127. end
  128. end
  129.  
  130. local NotDoneYet = false
  131. repeat
  132. wait()
  133. for i,v in pairs(game.Workspace.NPCs.Spawns:GetChildren()) do
  134. if v.Name == "Start Area Back" and Options["Start Area Back"] == true or v.Name == "Autumn" and Options["Autumn"] == true or v.Name == "Frostland" and Options["Frostland"] == true or v.Name == "Inferno" and Options["Inferno"] == true or v.Name == "Voidland" and Options["Voidland"] == true or v.Name == "Skyland" and Options["Skyland"] == true or v.Name == "Grassland" and Options["Grassland"] == true or v.Name == "Iceland" and Options["Iceland"] == true then
  135. local a = v:GetChildren()
  136. for i=1,#a do
  137. if a[i].Name:match("Ninja") then
  138. if a[i]:FindFirstChild("Humanoid") and a[i].Humanoid.Health > 0 and a[i]:FindFirstChild("HumanoidRootPart") then
  139. local ItsNil = false
  140. repeat
  141. wait()
  142. if game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") and a[i]:FindFirstChild("HumanoidRootPart") then
  143. if CheckWeapon() then
  144. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = a[i].HumanoidRootPart.CFrame + a[i].HumanoidRootPart.CFrame.lookVector * -3
  145. wait()
  146. Weapon:Activate()
  147. wait()
  148. Weapon:Deactivate()
  149. else
  150. GetWeapon()
  151. end
  152. else
  153. ItsNil = true
  154. end
  155. until ItsNil == true or a[i].Humanoid.Health <= 0 or _G.StopFarming == true
  156. if _G.StopFarming == false then
  157. wait(0.9)
  158. else
  159. wait()
  160. end
  161. if _G.StopFarming == true and NotDoneYet == false then
  162. NotDoneYet = true
  163. wait(1)
  164. end
  165. end
  166. end
  167. end
  168. end
  169. end
  170. until _G.StopFarming == true
  171. end)
  172.  
  173. Sell.MouseButton1Click:Connect(function()
  174.  
  175. _G.sell = true
  176.  
  177. while _G.sell do
  178. wait()
  179. game.Workspace.Rings.Sell.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  180. end
  181.  
  182. end)
  183.  
  184. Close.MouseButton1Down:connect(function()
  185. ScreenGui:Destroy()
  186. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement