Advertisement
Blueisim

Untitled

Aug 20th, 2016
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.39 KB | None | 0 0
  1. --[[
  2.  
  3.  
  4. hl/https://code.stypi.com/raw/nZHFXIlEQs5UF7XIOYsaGPc1
  5.  
  6.  
  7. ]]
  8. player=game:GetService'Players'.LocalPlayer
  9.  
  10.  
  11. nqqas={player.Name}--
  12. aggrorange=20000000000000000;
  13.  
  14. messages={
  15. [3]="yo get off our turf, %p";
  16. [6]="im warning u";
  17. [8]="3...";
  18. [9]="2...";
  19. [10]="1..";
  20. [11]="FIRE";
  21. }
  22.  
  23.  
  24. t=Instance.new("Tool", player.Backpack)
  25. t.Name="LunchThug"
  26.  
  27. Instance.new("Part", t).Name="Handle"
  28. t.Equipped:connect(function()
  29.  
  30. model=Instance.new("Model", workspace)
  31. model.Name="LunchaBot v:Annoy "
  32.  
  33. box=Instance.new("Part", model)
  34. box.FormFactor=Enum.FormFactor.Custom
  35. box.Size=Vector3.new(4, 4, 2)
  36. box.Name="Head"
  37. dc=Instance.new("Decal", box)
  38. dc.Texture="http://www.roblox.com/asset/?id=265177579"
  39. dc.Face=Enum.NormalId.Front
  40. box.BrickColor=BrickColor.new("Bright yellow")
  41. box.Anchored=false
  42. box.TopSurface="Smooth"
  43. box.BottomSurface="Smooth"
  44.  
  45. hum=Instance.new("Humanoid", model)
  46.  
  47. hum.MaxHealth=math.huge
  48. hum.Health=hum.MaxHealth
  49.  
  50. gun=Instance.new("Part", model)
  51. gun.FormFactor=Enum.FormFactor.Custom
  52. gun.Size=Vector3.new(.4, 1, 1.2)
  53. gun.Name="gun"
  54. local shoot=Instance.new("Sound", gun)
  55. shoot.SoundId="rbxassetid://180955656"
  56. gunmesh=Instance.new("SpecialMesh", gun)
  57. gunmesh.MeshType=Enum.MeshType.FileMesh
  58. gunmesh.MeshId="rbxassetid://4372594"
  59. gunmesh.TextureId="rbxassetid://0"
  60. gunmesh.VertexColor=Vector3.new(0, 0, 0)
  61. w=Instance.new("Weld", box)
  62. w.Part0=box
  63. w.Part1=gun
  64. w.C0=CFrame.new(2.20000076, 0.700000048, -1, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  65.  
  66. local gyro=Instance.new("BodyGyro", box)
  67. gyro.maxTorque=Vector3.new(math.huge, math.huge, 0)
  68. gyro.P=10000
  69. local startTime=nil
  70. local oldBestPlaya
  71. local currentmsg=""
  72. model:MoveTo(player.Character.Torso.Position-Vector3.new(0, 1, 5))
  73. math.randomseed(tick())
  74. coroutine.wrap(function()
  75. while box do
  76. wait()
  77. local bestPlaya=nil
  78. local bestDist=math.huge
  79. if not oldBestPlaya or oldBestPlaya:DistanceFromCharacter(box.Position)>aggrorange then
  80. for _, p in pairs(game:GetService'Players':GetPlayers()) do
  81. 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
  82. bestPlaya=p
  83. bestDist=p:DistanceFromCharacter(box.Position)
  84. end
  85. end
  86. if bestPlaya then
  87. oldBestPlaya=bestPlaya
  88. startTime=tick()
  89. end
  90. end
  91. local p=oldBestPlaya
  92.  
  93.  
  94. if p then
  95. notanqqa=true
  96. for _, playa in pairs(nqqas) do
  97. if p.Name:lower()==playa:lower() then
  98. notanqqa=false
  99. end
  100. end
  101.  
  102. --print(p.Name)
  103.  
  104. gyro.cframe=CFrame.new(box.CFrame.p, p.Character:FindFirstChild("Head") and p.Character.Head.CFrame.p or p.Character:GetModelCFrame())
  105. if notanqqa then
  106. local msg=""
  107. local mtime=0
  108. for i, v in pairs(messages) do
  109. if i>=mtime and tick()-startTime>=i then
  110. msg=v
  111. mtime=i
  112. end
  113. end
  114. if currentmsg~=msg then
  115. currentmsg=msg
  116. if msg=="FIRE" then
  117. for i=1, 1 do
  118. shoot:Play()
  119. if p.Character and p.Character:FindFirstChild("Humanoid") then
  120. p.Character:FindFirstChild("Humanoid").Health=p.Character:FindFirstChild("Humanoid").Health-1337
  121. end
  122. if p.Character and p.Character:FindFirstChild("Humanoid") and p.Character:FindFirstChild("Humanoid").Health<=0 then
  123. wait()
  124. gyro.cframe=CFrame.new(0, 0, 0)
  125. wait()
  126. game:GetService("Chat"):Chat(box, ("any1 else???"):gsub("%%p", p.Name))
  127. wait()
  128. game:GetService("Chat"):Chat(box, ("dats rite"):gsub("%%p", p.Name))
  129. wait()
  130. oldBestPlaya=nil
  131. break
  132.  
  133. end
  134. wait()
  135. end
  136. elseif msg~="" then
  137. game:GetService("Chat"):Chat(box, msg:gsub("%%p", p.Name))
  138. end
  139. end
  140. else
  141. wait()
  142. game:GetService("Chat"):Chat(box, ("yo wassup cuz"):gsub("%%p", p.Name))
  143. local gr=Instance.new("IntValue", p.Character)
  144. gr.Name="greeted"
  145. game:GetService("Debris"):AddItem(gr, 60);
  146. oldBestPlaya=nil
  147. wait(5)
  148. gyro.cframe=CFrame.new(0, 0, 0)
  149. end
  150. end
  151. end
  152. end)()
  153. if player.Character and player.Character:FindFirstChild("Humanoid") then
  154. player.Character.Humanoid:UnequipTools();
  155. wait()
  156. t:Destroy()
  157. end
  158. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement