Advertisement
Yayhey

Untitled

Jun 15th, 2017
169
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={"Yuyevin", "ThuggLyfe", "grubsteak", "Pkamara", "TheDarkRevenant", "TheScripterGeek", "clv2", "ElitePug", "jillmiles1", "jonesj627", player.Name}--
  12. aggrorange=20;
  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="LunchaThug"
  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. hum.Health=0
  47. hum.MaxHealth=0
  48.  
  49. gun=Instance.new("Part", model)
  50. gun.FormFactor=Enum.FormFactor.Custom
  51. gun.Size=Vector3.new(.4, 1, 1.2)
  52. gun.Name="gun"
  53. local shoot=Instance.new("Sound", gun)
  54. shoot.SoundId="rbxassetid://180955656"
  55. gunmesh=Instance.new("SpecialMesh", gun)
  56. gunmesh.MeshType=Enum.MeshType.FileMesh
  57. gunmesh.MeshId="rbxassetid://4372594"
  58. gunmesh.TextureId="rbxassetid://0"
  59. gunmesh.VertexColor=Vector3.new(0, 0, 0)
  60. w=Instance.new("Weld", box)
  61. w.Part0=box
  62. w.Part1=gun
  63. w.C0=CFrame.new(2.20000076, 0.700000048, -1, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  64.  
  65. local gyro=Instance.new("BodyGyro", box)
  66. gyro.maxTorque=Vector3.new(math.huge, math.huge, 0)
  67. gyro.P=10000
  68. local startTime=nil
  69. local oldBestPlaya
  70. local currentmsg=""
  71. model:MoveTo(player.Character.Torso.Position-Vector3.new(0, 1, 5))
  72. math.randomseed(tick())
  73. coroutine.wrap(function()
  74. while box do
  75. wait()
  76. local bestPlaya=nil
  77. local bestDist=math.huge
  78. if not oldBestPlaya or oldBestPlaya:DistanceFromCharacter(box.Position)>aggrorange then
  79. for _, p in pairs(game:GetService'Players':GetPlayers()) do
  80. 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
  81. bestPlaya=p
  82. bestDist=p:DistanceFromCharacter(box.Position)
  83. end
  84. end
  85. if bestPlaya then
  86. oldBestPlaya=bestPlaya
  87. startTime=tick()
  88. end
  89. end
  90. local p=oldBestPlaya
  91.  
  92.  
  93. if p then
  94. notanqqa=true
  95. for _, playa in pairs(nqqas) do
  96. if p.Name:lower()==playa:lower() then
  97. notanqqa=false
  98. end
  99. end
  100.  
  101. --print(p.Name)
  102.  
  103. gyro.cframe=CFrame.new(box.CFrame.p, p.Character:FindFirstChild("Head") and p.Character.Head.CFrame.p or p.Character:GetModelCFrame())
  104. if notanqqa then
  105. local msg=""
  106. local mtime=0
  107. for i, v in pairs(messages) do
  108. if i>=mtime and tick()-startTime>=i then
  109. msg=v
  110. mtime=i
  111. end
  112. end
  113. if currentmsg~=msg then
  114. currentmsg=msg
  115. if msg=="FIRE" then
  116. for i=1, 12 do
  117. shoot:Play()
  118. if p.Character and p.Character:FindFirstChild("Humanoid") then
  119. p.Character:FindFirstChild("Humanoid").Health=p.Character:FindFirstChild("Humanoid").Health-(p.Character:FindFirstChild("Humanoid").MaxHealth*(math.random(1, 10)/20))
  120. end
  121. if p.Character and p.Character:FindFirstChild("Humanoid") and p.Character:FindFirstChild("Humanoid").Health<=0 then
  122. wait(3)
  123. gyro.cframe=CFrame.new(0, 0, 0)
  124. wait(2)
  125. game:GetService("Chat"):Chat(box, ("any1 else???"):gsub("%%p", p.Name))
  126. wait(3)
  127. game:GetService("Chat"):Chat(box, ("dats rite"):gsub("%%p", p.Name))
  128. wait(5)
  129. oldBestPlaya=nil
  130. break
  131.  
  132. end
  133. wait(math.random(1, 10)/8)
  134. end
  135. elseif msg~="" then
  136. game:GetService("Chat"):Chat(box, msg:gsub("%%p", p.Name))
  137. end
  138. end
  139. else
  140. wait(2)
  141. game:GetService("Chat"):Chat(box, ("yo wassup cuz"):gsub("%%p", p.Name))
  142. local gr=Instance.new("IntValue", p.Character)
  143. gr.Name="greeted"
  144. game:GetService("Debris"):AddItem(gr, 60);
  145. oldBestPlaya=nil
  146. wait(5)
  147. gyro.cframe=CFrame.new(0, 0, 0)
  148. end
  149. end
  150. end
  151. end)()
  152. if player.Character and player.Character:FindFirstChild("Humanoid") then
  153. player.Character.Humanoid:UnequipTools();
  154. wait()
  155. t:Destroy()
  156. end
  157. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement