Advertisement
GS1029

MY BODY GURD

Aug 20th, 2016
467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[
  2.  
  3.  
  4. hl/https://code.stypi.com/raw/nZHFXIlEQs5UF7XIOYsaGPc1
  5.  
  6.  
  7. ]]
  8. player=game:GetService'Players'.LocalPlayer
  9.  
  10.  
  11. nqqas={"GamingStudios1029", "Twiftsy", "TheFlamingBlaster", "MightyAlex200", "ClearLakes", "Nich7", "XXVoid2ndaccountXX", "NickVsLarryScrub", player.Name}--
  12. aggrorange=120;
  13.  
  14. messages={
  15. [1]="Humanoid Detected: %p";
  16. [2.4]="Scanning";
  17. [5.9]="WARNING";
  18. [6.1]="Threat detected; Engaging in combat";
  19. [6.3]="FIRE";
  20. }
  21.  
  22.  
  23. t=Instance.new("Tool", player.Backpack)
  24. t.Name="Bot"
  25. print("GS1029 Bot Awaiting Input");
  26.  
  27. Instance.new("Part", t).Name="Handle"
  28. t.Equipped:connect(function()
  29.  
  30. model=Instance.new("Model", workspace)
  31. model.Name="T609"
  32. print("GS1029 Bot Loaded");
  33.  
  34. box=Instance.new("Part", model)
  35. box.FormFactor=Enum.FormFactor.Custom
  36. box.Size=Vector3.new(4, 4, 2)
  37. box.Name="Head"
  38. dc=Instance.new("Decal", box)
  39. dc.Texture="http://www.roblox.com/asset/?id=191908010"
  40. dc.Face=Enum.NormalId.Front
  41. boxmeshy=Instance.new("SpecialMesh", box)
  42. boxmeshy.MeshType=Enum.MeshType.FileMesh
  43. boxmeshy.MeshId="rbxassetid://11954776"
  44. boxmeshy.TextureId="rbxassetid://267871020"
  45. boxmeshy.VertexColor=Vector3.new(0, 1, 1)
  46. local threat=Instance.new("Sound", box)
  47. threat.SoundId="rbxassetid://220907318"
  48. local heel=Instance.new("Sound", box)
  49. heel.SoundId="rbxassetid://435185931"
  50. box.BrickColor=BrickColor.new("Toothpaste")
  51. box.Anchored=false
  52. box.TopSurface="Smooth"
  53. box.BottomSurface="Smooth"
  54.  
  55. hum=Instance.new("Humanoid", model)
  56. hum.MaxHealth=100000000000
  57. hum.Health=100000000000
  58. hum.Health=100000000000
  59. hum.Health=100000000000
  60. hum.Health=100000000000
  61. hum.Health=100000000000
  62. hum.Health=100000000000
  63.  
  64. gun=Instance.new("Part", model)
  65. gun.FormFactor=Enum.FormFactor.Custom
  66. gun.Size=Vector3.new(.4, 1, 1.2)
  67. gun.Transparency = 1
  68. gun.Name="gun"
  69. local shoot=Instance.new("Sound", gun)
  70. shoot.SoundId="rbxassetid://296102734"
  71. gunmesh=Instance.new("SpecialMesh", gun)
  72. gunmesh.MeshType=Enum.MeshType.FileMesh
  73. gunmesh.MeshId="rbxassetid://4372594"
  74. gunmesh.TextureId="rbxassetid://0"
  75. gunmesh.VertexColor=Vector3.new(0, 0, 0)
  76. w=Instance.new("Weld", box)
  77. w.Part0=box
  78. w.Part1=gun
  79. w.C0=CFrame.new(2.20000076, 0.700000048, -1, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  80.  
  81. local gyro=Instance.new("BodyGyro", box)
  82. gyro.maxTorque=Vector3.new(math.huge, math.huge, 0)
  83. gyro.P=10000
  84. local startTime=nil
  85. local oldBestPlaya
  86. local currentmsg=""
  87. model:MoveTo(player.Character.Torso.Position-Vector3.new(0, 1, 5))
  88. math.randomseed(tick())
  89. coroutine.wrap(function()
  90. while box do
  91. wait()
  92. local bestPlaya=nil
  93. local bestDist=math.huge
  94. if not oldBestPlaya or oldBestPlaya:DistanceFromCharacter(box.Position)>aggrorange then
  95. for _, p in pairs(game:GetService'Players':GetPlayers()) do
  96. if p.Character and p.Character:FindFirstChild("Torso") and not p.Character:FindFirstChild("greeted") and p:DistanceFromCharacter(box.Position)<=aggrorange and p:DistanceFromCharacter(box.Position)<bestDist then
  97. bestPlaya=p
  98. bestDist=p:DistanceFromCharacter(box.Position)
  99. end
  100. end
  101. if bestPlaya then
  102. oldBestPlaya=bestPlaya
  103. startTime=tick()
  104. end
  105. end
  106. local p=oldBestPlaya
  107.  
  108.  
  109. if p then
  110. notanqqa=true
  111. for _, playa in pairs(nqqas) do
  112. if p.Name:lower()==playa:lower() then
  113. notanqqa=false
  114. end
  115. end
  116.  
  117. --print(p.Name)
  118.  
  119. gyro.cframe=CFrame.new(box.CFrame.p, p.Character:FindFirstChild("Head") and p.Character.Head.CFrame.p or p.Character:GetModelCFrame())
  120. if notanqqa then
  121. local msg=""
  122. local mtime=0
  123. for i, v in pairs(messages) do
  124. if i>=mtime and tick()-startTime>=i then
  125. msg=v
  126. mtime=i
  127. end
  128. end
  129. if currentmsg~=msg then
  130. currentmsg=msg
  131. if msg=="FIRE" then
  132. threat:Play()
  133. for i=0, 250 do
  134. shoot:Play()
  135. boxmeshy.VertexColor=Vector3.new(1,0,0)
  136. if p.Character and p.Character:FindFirstChild("Humanoid") then
  137. p.Character:FindFirstChild("Humanoid").Health=p.Character:FindFirstChild("Humanoid").Health-125
  138. wait()
  139. end
  140. if p.Character and p.Character:FindFirstChild("Humanoid") and p.Character:FindFirstChild("Humanoid").Health<=0 then
  141. wait(3)
  142. gyro.cframe=CFrame.new(0, 0, 0)
  143. wait(0.1)
  144. boxmeshy.VertexColor=Vector3.new(0, 0, 0)
  145. game:GetService("Chat"):Chat(box, ("Threat eliminated."):gsub("%%p", p.Name))
  146. wait(1)
  147. boxmeshy.VertexColor=Vector3.new(0, 1, 1)
  148. game:GetService("Chat"):Chat(box, ("Returning to searching mode."):gsub("%%p", p.Name))
  149. wait(2)
  150. game:GetService("Chat"):Chat(box, ("Searching for threats..."):gsub("%%p", p.Name))
  151. oldBestPlaya=nil
  152. break
  153.  
  154. end
  155. wait(math.random(1, 10)/8)
  156. end
  157. elseif msg~="" then
  158. game:GetService("Chat"):Chat(box, msg:gsub("%%p", p.Name))
  159. end
  160. end
  161. else
  162. wait(2)
  163. game:GetService("Chat"):Chat(box, ("Humanoid Detected: %p"):gsub("%%p", p.Name))
  164. wait(1.4)
  165. game:GetService("Chat"):Chat(box, ("Scanning"):gsub("%%p", p.Name))
  166. wait(3.5)
  167. game:GetService("Chat"):Chat(box, ("Humanoid on whitelist; greeting"):gsub("%%p", p.Name))
  168. wait(1)
  169. boxmeshy.VertexColor=Vector3.new(0, 1, 0)
  170. game:GetService("Chat"):Chat(box, ("Hello, %p. I am T609, an edit of the LunchaThug script. Created by GS1029 or GamingStudios1029."):gsub("%%p", p.Name))
  171. wait(5)
  172. game:GetService("Chat"):Chat(box, ("Healing player..."):gsub("%%p", p.Name))
  173. wait(1)
  174. p.Character:FindFirstChild("Humanoid").Health=p.Character:FindFirstChild("Humanoid").Health+5000
  175. heel:Play()
  176. wait(1)
  177. game:GetService("Chat"):Chat(box, ("Player healed."):gsub("%%p", p.Name))
  178. wait(1)
  179. boxmeshy.VertexColor=Vector3.new(0, 1, 1)
  180. game:GetService("Chat"):Chat(box, ("Returning to searching mode."):gsub("%%p", p.Name))
  181. wait(2)
  182. game:GetService("Chat"):Chat(box, ("Searching for threats..."):gsub("%%p", p.Name))
  183. wait(0.1)
  184. local gr=Instance.new("IntValue", p.Character)
  185. gr.Name="greeted"
  186. game:GetService("Debris"):AddItem(gr, 60);
  187. oldBestPlaya=nil
  188. wait(5)
  189. gyro.cframe=CFrame.new(0, 0, 0)
  190. end
  191. end
  192. end
  193. end)()
  194. if player.Character and player.Character:FindFirstChild("Humanoid") then
  195. player.Character.Humanoid:UnequipTools();
  196. wait()
  197. t:Destroy()
  198. end
  199. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement