Advertisement
FireBlazer_Scripting

Untitled

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