Advertisement
vibrantsinger423

dded

Jun 21st, 2019
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 89.67 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
  5.  
  6.  
  7.  
  8. --Converted with ttyyuu12345's model to script plugin v4
  9. function sandbox(var,func)
  10. local env = getfenv(func)
  11. local newenv = setmetatable({},{
  12. __index = function(self,k)
  13. if k=="script" then
  14. return var
  15. else
  16. return env[k]
  17. end
  18. end,
  19. })
  20. setfenv(func,newenv)
  21. return func
  22. end
  23. cors = {}
  24. mas = Instance.new("Model",game:GetService("Lighting"))
  25. Model0 = Instance.new("Model")
  26. WedgePart1 = Instance.new("WedgePart")
  27. WedgePart2 = Instance.new("WedgePart")
  28. Part3 = Instance.new("Part")
  29. Part4 = Instance.new("Part")
  30. SpecialMesh5 = Instance.new("SpecialMesh")
  31. CFrameValue6 = Instance.new("CFrameValue")
  32. Decal7 = Instance.new("Decal")
  33. Part8 = Instance.new("Part")
  34. WedgePart9 = Instance.new("WedgePart")
  35. WedgePart10 = Instance.new("WedgePart")
  36. WedgePart11 = Instance.new("WedgePart")
  37. WedgePart12 = Instance.new("WedgePart")
  38. Part13 = Instance.new("Part")
  39. Part14 = Instance.new("Part")
  40. CylinderMesh15 = Instance.new("CylinderMesh")
  41. Part16 = Instance.new("Part")
  42. Part17 = Instance.new("Part")
  43. Part18 = Instance.new("Part")
  44. CylinderMesh19 = Instance.new("CylinderMesh")
  45. WedgePart20 = Instance.new("WedgePart")
  46. Part21 = Instance.new("Part")
  47. CylinderMesh22 = Instance.new("CylinderMesh")
  48. Part23 = Instance.new("Part")
  49. CylinderMesh24 = Instance.new("CylinderMesh")
  50. Part25 = Instance.new("Part")
  51. Part26 = Instance.new("Part")
  52. CylinderMesh27 = Instance.new("CylinderMesh")
  53. Part28 = Instance.new("Part")
  54. Part29 = Instance.new("Part")
  55. CylinderMesh30 = Instance.new("CylinderMesh")
  56. WedgePart31 = Instance.new("WedgePart")
  57. Part32 = Instance.new("Part")
  58. CylinderMesh33 = Instance.new("CylinderMesh")
  59. Part34 = Instance.new("Part")
  60. CylinderMesh35 = Instance.new("CylinderMesh")
  61. Part36 = Instance.new("Part")
  62. CylinderMesh37 = Instance.new("CylinderMesh")
  63. Tool38 = Instance.new("Tool")
  64. Part39 = Instance.new("Part")
  65. Fire40 = Instance.new("Fire")
  66. Script41 = Instance.new("Script")
  67. Sound42 = Instance.new("Sound")
  68. Script43 = Instance.new("Script")
  69. Script44 = Instance.new("Script")
  70. SpecialMesh45 = Instance.new("SpecialMesh")
  71. Script46 = Instance.new("Script")
  72. Script47 = Instance.new("Script")
  73. Script48 = Instance.new("Script")
  74. LocalScript49 = Instance.new("LocalScript")
  75. Part50 = Instance.new("Part")
  76. WedgePart51 = Instance.new("WedgePart")
  77. Part52 = Instance.new("Part")
  78. Part53 = Instance.new("Part")
  79. CylinderMesh54 = Instance.new("CylinderMesh")
  80. WedgePart55 = Instance.new("WedgePart")
  81. WedgePart56 = Instance.new("WedgePart")
  82. WedgePart57 = Instance.new("WedgePart")
  83. WedgePart58 = Instance.new("WedgePart")
  84. WedgePart59 = Instance.new("WedgePart")
  85. WedgePart60 = Instance.new("WedgePart")
  86. WedgePart61 = Instance.new("WedgePart")
  87. Part62 = Instance.new("Part")
  88. CFrameValue63 = Instance.new("CFrameValue")
  89. BodyPosition64 = Instance.new("BodyPosition")
  90. Script65 = Instance.new("Script")
  91. BillboardGui66 = Instance.new("BillboardGui")
  92. Frame67 = Instance.new("Frame")
  93. Frame68 = Instance.new("Frame")
  94. Frame69 = Instance.new("Frame")
  95. Part70 = Instance.new("Part")
  96. Part71 = Instance.new("Part")
  97. Part72 = Instance.new("Part")
  98. CylinderMesh73 = Instance.new("CylinderMesh")
  99. WedgePart74 = Instance.new("WedgePart")
  100. Part75 = Instance.new("Part")
  101. CylinderMesh76 = Instance.new("CylinderMesh")
  102. WedgePart77 = Instance.new("WedgePart")
  103. WedgePart78 = Instance.new("WedgePart")
  104. Part79 = Instance.new("Part")
  105. WedgePart80 = Instance.new("WedgePart")
  106. Part81 = Instance.new("Part")
  107. CylinderMesh82 = Instance.new("CylinderMesh")
  108. Part83 = Instance.new("Part")
  109. Tool84 = Instance.new("Tool")
  110. Part85 = Instance.new("Part")
  111. CFrameValue86 = Instance.new("CFrameValue")
  112. LocalScript87 = Instance.new("LocalScript")
  113. Script88 = Instance.new("Script")
  114. SpecialMesh89 = Instance.new("SpecialMesh")
  115. Script90 = Instance.new("Script")
  116. Script91 = Instance.new("Script")
  117. Script92 = Instance.new("Script")
  118. Script93 = Instance.new("Script")
  119. Part94 = Instance.new("Part")
  120. CylinderMesh95 = Instance.new("CylinderMesh")
  121. Part96 = Instance.new("Part")
  122. CylinderMesh97 = Instance.new("CylinderMesh")
  123. WedgePart98 = Instance.new("WedgePart")
  124. Part99 = Instance.new("Part")
  125. Part100 = Instance.new("Part")
  126. WedgePart101 = Instance.new("WedgePart")
  127. WedgePart102 = Instance.new("WedgePart")
  128. Part103 = Instance.new("Part")
  129. WedgePart104 = Instance.new("WedgePart")
  130. WedgePart105 = Instance.new("WedgePart")
  131. WedgePart106 = Instance.new("WedgePart")
  132. Part107 = Instance.new("Part")
  133. WedgePart108 = Instance.new("WedgePart")
  134. WedgePart109 = Instance.new("WedgePart")
  135. BoolValue110 = Instance.new("BoolValue")
  136. BoolValue111 = Instance.new("BoolValue")
  137. Script112 = Instance.new("Script")
  138. Script113 = Instance.new("Script")
  139. Script114 = Instance.new("Script")
  140. Script115 = Instance.new("Script")
  141. Script116 = Instance.new("Script")
  142. Script117 = Instance.new("Script")
  143. Script118 = Instance.new("Script")
  144. Humanoid119 = Instance.new("Humanoid")
  145. StringValue120 = Instance.new("StringValue")
  146. BoolValue121 = Instance.new("BoolValue")
  147. Script122 = Instance.new("Script")
  148. BoolValue123 = Instance.new("BoolValue")
  149. ObjectValue124 = Instance.new("ObjectValue")
  150. ObjectValue125 = Instance.new("ObjectValue")
  151. Script126 = Instance.new("Script")
  152. Model0.Name = "Mecha Tanker DX-5"
  153. Model0.Parent = mas
  154. WedgePart1.Parent = Model0
  155. WedgePart1.CFrame = CFrame.new(-129.142334, 13.3998775, 5.1893301, 0, 0, -0.999999881, 0, -1, 0, -0.999999881, 0, 0)
  156. WedgePart1.Orientation = Vector3.new(0, -90, 180)
  157. WedgePart1.Position = Vector3.new(-129.142334, 13.3998775, 5.1893301)
  158. WedgePart1.Rotation = Vector3.new(0, -89.9700012, 0)
  159. WedgePart1.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  160. WedgePart1.Size = Vector3.new(2, 2, 2)
  161. WedgePart1.Anchored = true
  162. WedgePart1.BottomSurface = Enum.SurfaceType.Smooth
  163. WedgePart1.BrickColor = BrickColor.new("Burnt Sienna")
  164. WedgePart1.Material = Enum.Material.CorrodedMetal
  165. WedgePart1.brickColor = BrickColor.new("Burnt Sienna")
  166. WedgePart1.FormFactor = Enum.FormFactor.Symmetric
  167. WedgePart1.formFactor = Enum.FormFactor.Symmetric
  168. WedgePart2.Parent = Model0
  169. WedgePart2.CFrame = CFrame.new(-139.128174, 13.3998775, 5.1893301, 0, 0, 1, 0, -1, 0, 1, 0, 0)
  170. WedgePart2.Orientation = Vector3.new(0, 90, 180)
  171. WedgePart2.Position = Vector3.new(-139.128174, 13.3998775, 5.1893301)
  172. WedgePart2.Rotation = Vector3.new(180, 90, 0)
  173. WedgePart2.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  174. WedgePart2.Size = Vector3.new(2, 2, 2)
  175. WedgePart2.Anchored = true
  176. WedgePart2.BottomSurface = Enum.SurfaceType.Smooth
  177. WedgePart2.BrickColor = BrickColor.new("Burnt Sienna")
  178. WedgePart2.Material = Enum.Material.CorrodedMetal
  179. WedgePart2.brickColor = BrickColor.new("Burnt Sienna")
  180. WedgePart2.FormFactor = Enum.FormFactor.Symmetric
  181. WedgePart2.formFactor = Enum.FormFactor.Symmetric
  182. Part3.Parent = Model0
  183. Part3.CFrame = CFrame.new(-140.835205, 12.2785397, 5.1893301, 0.707106709, 0.707106769, 0, 0.707106769, -0.707106709, 0, 0, 0, -1)
  184. Part3.Orientation = Vector3.new(0, 180, 135)
  185. Part3.Position = Vector3.new(-140.835205, 12.2785397, 5.1893301)
  186. Part3.Rotation = Vector3.new(-180, 0, -45)
  187. Part3.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  188. Part3.Size = Vector3.new(4, 2, 2)
  189. Part3.Anchored = true
  190. Part3.BottomSurface = Enum.SurfaceType.Smooth
  191. Part3.BrickColor = BrickColor.new("Burnt Sienna")
  192. Part3.Material = Enum.Material.CorrodedMetal
  193. Part3.TopSurface = Enum.SurfaceType.Smooth
  194. Part3.brickColor = BrickColor.new("Burnt Sienna")
  195. Part3.FormFactor = Enum.FormFactor.Symmetric
  196. Part3.formFactor = Enum.FormFactor.Symmetric
  197. Part4.Name = "Head"
  198. Part4.Parent = Model0
  199. Part4.CFrame = CFrame.new(-134.128174, 12.3999577, 5.1893301, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  200. Part4.Orientation = Vector3.new(0, 180, 0)
  201. Part4.Position = Vector3.new(-134.128174, 12.3999577, 5.1893301)
  202. Part4.Rotation = Vector3.new(-180, 0, -180)
  203. Part4.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  204. Part4.Size = Vector3.new(8, 8, 8)
  205. Part4.Anchored = true
  206. Part4.BottomSurface = Enum.SurfaceType.Weld
  207. Part4.BrickColor = BrickColor.new("Burnt Sienna")
  208. Part4.Material = Enum.Material.CorrodedMetal
  209. Part4.TopSurface = Enum.SurfaceType.Smooth
  210. Part4.brickColor = BrickColor.new("Burnt Sienna")
  211. Part4.FormFactor = Enum.FormFactor.Symmetric
  212. Part4.formFactor = Enum.FormFactor.Symmetric
  213. SpecialMesh5.Parent = Part4
  214. CFrameValue6.Name = "qRelativeCFrameWeldValue"
  215. CFrameValue6.Parent = Part4
  216. CFrameValue6.Value = CFrame.new(3.88675499, -3.96889496, 2.00182533, -0.707507908, -0.706699848, 9.00280611e-07, 0.706694365, -0.707513392, 1.22883444e-06, -2.68219736e-07, 1.45493391e-06, 0.999996245)
  217. Decal7.Parent = Part4
  218. Decal7.Texture = "http://www.roblox.com/asset/?id=49170133"
  219. Part8.Parent = Model0
  220. Part8.CFrame = CFrame.new(-127.435181, 12.2785397, 5.1893301, -0.707106709, -0.707106709, 0, 0.707106769, -0.707106709, 0, 0, 0, 0.999999881)
  221. Part8.Orientation = Vector3.new(0, 0, 135)
  222. Part8.Position = Vector3.new(-127.435181, 12.2785397, 5.1893301)
  223. Part8.Rotation = Vector3.new(0, 0, 135)
  224. Part8.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  225. Part8.Size = Vector3.new(4, 2, 2)
  226. Part8.Anchored = true
  227. Part8.BottomSurface = Enum.SurfaceType.Smooth
  228. Part8.BrickColor = BrickColor.new("Burnt Sienna")
  229. Part8.Material = Enum.Material.CorrodedMetal
  230. Part8.TopSurface = Enum.SurfaceType.Smooth
  231. Part8.brickColor = BrickColor.new("Burnt Sienna")
  232. Part8.FormFactor = Enum.FormFactor.Symmetric
  233. Part8.formFactor = Enum.FormFactor.Symmetric
  234. WedgePart9.Parent = Model0
  235. WedgePart9.CFrame = CFrame.new(-125.728149, 11.1571369, 5.1893301, 0, 1.49013744e-07, 0.999999881, -6.77626358e-21, 0.999999881, -1.49013744e-07, -0.999999881, 0, 0)
  236. WedgePart9.Orientation = Vector3.new(0, 90, 0)
  237. WedgePart9.Position = Vector3.new(-125.728149, 11.1571369, 5.1893301)
  238. WedgePart9.Rotation = Vector3.new(90, 89.9700012, -90)
  239. WedgePart9.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  240. WedgePart9.Size = Vector3.new(2, 2, 2)
  241. WedgePart9.Anchored = true
  242. WedgePart9.BottomSurface = Enum.SurfaceType.Smooth
  243. WedgePart9.BrickColor = BrickColor.new("Burnt Sienna")
  244. WedgePart9.Material = Enum.Material.CorrodedMetal
  245. WedgePart9.brickColor = BrickColor.new("Burnt Sienna")
  246. WedgePart9.FormFactor = Enum.FormFactor.Symmetric
  247. WedgePart9.formFactor = Enum.FormFactor.Symmetric
  248. WedgePart10.Parent = Model0
  249. WedgePart10.CFrame = CFrame.new(-142.542358, 11.1571369, 5.1893301, 4.44088736e-14, -1.49013744e-07, -0.999999881, -6.77626358e-21, 0.999999881, -1.49013744e-07, 0.99999994, 1.01643954e-20, 4.44088736e-14)
  250. WedgePart10.Orientation = Vector3.new(0, -90, 0)
  251. WedgePart10.Position = Vector3.new(-142.542358, 11.1571369, 5.1893301)
  252. WedgePart10.Rotation = Vector3.new(90, -89.9700012, 90)
  253. WedgePart10.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  254. WedgePart10.Size = Vector3.new(2, 2, 2)
  255. WedgePart10.Anchored = true
  256. WedgePart10.BottomSurface = Enum.SurfaceType.Smooth
  257. WedgePart10.BrickColor = BrickColor.new("Burnt Sienna")
  258. WedgePart10.Material = Enum.Material.CorrodedMetal
  259. WedgePart10.brickColor = BrickColor.new("Burnt Sienna")
  260. WedgePart10.FormFactor = Enum.FormFactor.Symmetric
  261. WedgePart10.formFactor = Enum.FormFactor.Symmetric
  262. WedgePart11.Parent = Model0
  263. WedgePart11.CFrame = CFrame.new(-125.90332, 11.2322178, 15.1893301, -0.999999404, 0, -1.49011612e-08, -1.49011612e-08, 0, 0.999999404, 0, 1, 0)
  264. WedgePart11.Orientation = Vector3.new(-89.9400024, -90, -90)
  265. WedgePart11.Position = Vector3.new(-125.90332, 11.2322178, 15.1893301)
  266. WedgePart11.Rotation = Vector3.new(-90, 0, -180)
  267. WedgePart11.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  268. WedgePart11.Size = Vector3.new(1, 2, 2.20000005)
  269. WedgePart11.Anchored = true
  270. WedgePart11.BottomSurface = Enum.SurfaceType.Smooth
  271. WedgePart11.BrickColor = BrickColor.new("Really black")
  272. WedgePart11.Material = Enum.Material.CorrodedMetal
  273. WedgePart11.brickColor = BrickColor.new("Really black")
  274. WedgePart11.FormFactor = Enum.FormFactor.Symmetric
  275. WedgePart11.formFactor = Enum.FormFactor.Symmetric
  276. WedgePart12.Parent = Model0
  277. WedgePart12.CFrame = CFrame.new(-125.90332, 10.83214, 13.1893301, -0.999999404, 0, 1.49011612e-08, -1.49011612e-08, 0, -0.999999404, 0, -1, 0)
  278. WedgePart12.Orientation = Vector3.new(89.9400024, 90, -90)
  279. WedgePart12.Position = Vector3.new(-125.90332, 10.83214, 13.1893301)
  280. WedgePart12.Rotation = Vector3.new(90, 0, -180)
  281. WedgePart12.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  282. WedgePart12.Size = Vector3.new(1, 2, 3)
  283. WedgePart12.Anchored = true
  284. WedgePart12.BottomSurface = Enum.SurfaceType.Smooth
  285. WedgePart12.BrickColor = BrickColor.new("Really black")
  286. WedgePart12.Material = Enum.Material.CorrodedMetal
  287. WedgePart12.brickColor = BrickColor.new("Really black")
  288. WedgePart12.FormFactor = Enum.FormFactor.Symmetric
  289. WedgePart12.formFactor = Enum.FormFactor.Symmetric
  290. Part13.Parent = Model0
  291. Part13.CFrame = CFrame.new(-142.507324, 8.11207771, 3.1893301, 0, 1, 0, 1, 0, 0, 0, 0, -1)
  292. Part13.Orientation = Vector3.new(0, 180, 90)
  293. Part13.Position = Vector3.new(-142.507324, 8.11207771, 3.1893301)
  294. Part13.Rotation = Vector3.new(-180, 0, -90)
  295. Part13.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  296. Part13.Size = Vector3.new(2, 2, 2)
  297. Part13.Anchored = true
  298. Part13.BottomSurface = Enum.SurfaceType.Smooth
  299. Part13.BrickColor = BrickColor.new("Burnt Sienna")
  300. Part13.Material = Enum.Material.CorrodedMetal
  301. Part13.TopSurface = Enum.SurfaceType.Smooth
  302. Part13.brickColor = BrickColor.new("Burnt Sienna")
  303. Part13.FormFactor = Enum.FormFactor.Symmetric
  304. Part13.formFactor = Enum.FormFactor.Symmetric
  305. Part14.Parent = Model0
  306. Part14.CFrame = CFrame.new(-131.628174, 8.52118874, -2.2249155, 0, 0, 0.999999821, -0.707106769, 0.70710665, 0, -0.70710665, -0.707106769, 0)
  307. Part14.Orientation = Vector3.new(0, 90, -45)
  308. Part14.Position = Vector3.new(-131.628174, 8.52118874, -2.2249155)
  309. Part14.Rotation = Vector3.new(0, 89.9700012, 0)
  310. Part14.Color = Color3.new(0.105882, 0.164706, 0.207843)
  311. Part14.Size = Vector3.new(1, 5, 1)
  312. Part14.Anchored = true
  313. Part14.BottomSurface = Enum.SurfaceType.Smooth
  314. Part14.BrickColor = BrickColor.new("Black")
  315. Part14.TopSurface = Enum.SurfaceType.Smooth
  316. Part14.brickColor = BrickColor.new("Black")
  317. Part14.FormFactor = Enum.FormFactor.Symmetric
  318. Part14.formFactor = Enum.FormFactor.Symmetric
  319. CylinderMesh15.Parent = Part14
  320. Part16.Parent = Model0
  321. Part16.CFrame = CFrame.new(-125.728149, 8.65707588, 5.1893301, 0, 1, 0, 1, 0, 0, 0, 0, -1)
  322. Part16.Orientation = Vector3.new(0, 180, 90)
  323. Part16.Position = Vector3.new(-125.728149, 8.65707588, 5.1893301)
  324. Part16.Rotation = Vector3.new(-180, 0, -90)
  325. Part16.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  326. Part16.Size = Vector3.new(3, 2, 2)
  327. Part16.Anchored = true
  328. Part16.BottomSurface = Enum.SurfaceType.Smooth
  329. Part16.BrickColor = BrickColor.new("Burnt Sienna")
  330. Part16.Material = Enum.Material.CorrodedMetal
  331. Part16.TopSurface = Enum.SurfaceType.Smooth
  332. Part16.brickColor = BrickColor.new("Burnt Sienna")
  333. Part16.FormFactor = Enum.FormFactor.Symmetric
  334. Part16.formFactor = Enum.FormFactor.Symmetric
  335. Part17.Parent = Model0
  336. Part17.CFrame = CFrame.new(-125.728149, 8.1570797, 8.1893301, 0, 1, 0, 1, 0, 0, 0, 0, -1)
  337. Part17.Orientation = Vector3.new(0, 180, 90)
  338. Part17.Position = Vector3.new(-125.728149, 8.1570797, 8.1893301)
  339. Part17.Rotation = Vector3.new(-180, 0, -90)
  340. Part17.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  341. Part17.Size = Vector3.new(2, 2, 4)
  342. Part17.Anchored = true
  343. Part17.BottomSurface = Enum.SurfaceType.Smooth
  344. Part17.BrickColor = BrickColor.new("Burnt Sienna")
  345. Part17.Material = Enum.Material.CorrodedMetal
  346. Part17.TopSurface = Enum.SurfaceType.Smooth
  347. Part17.brickColor = BrickColor.new("Burnt Sienna")
  348. Part17.FormFactor = Enum.FormFactor.Symmetric
  349. Part17.formFactor = Enum.FormFactor.Symmetric
  350. Part18.Parent = Model0
  351. Part18.CFrame = CFrame.new(-141.507324, 9.41219521, 12.6893301, -1, 0, 0, 0, 0, -1, 0, -1, 0)
  352. Part18.Orientation = Vector3.new(90, 180, 0)
  353. Part18.Position = Vector3.new(-141.507324, 9.41219521, 12.6893301)
  354. Part18.Rotation = Vector3.new(90, 0, -180)
  355. Part18.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  356. Part18.Size = Vector3.new(0.780000031, 2.92999983, 0.830000043)
  357. Part18.Anchored = true
  358. Part18.BottomSurface = Enum.SurfaceType.Smooth
  359. Part18.BrickColor = BrickColor.new("Really black")
  360. Part18.TopSurface = Enum.SurfaceType.Smooth
  361. Part18.brickColor = BrickColor.new("Really black")
  362. Part18.FormFactor = Enum.FormFactor.Custom
  363. Part18.formFactor = Enum.FormFactor.Custom
  364. CylinderMesh19.Parent = Part18
  365. CylinderMesh19.Scale = Vector3.new(0.970000267, 1, 1)
  366. WedgePart20.Parent = Model0
  367. WedgePart20.CFrame = CFrame.new(-134.128174, 7.39995766, 0.189330101, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  368. WedgePart20.Position = Vector3.new(-134.128174, 7.39995766, 0.189330101)
  369. WedgePart20.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  370. WedgePart20.Size = Vector3.new(10, 2, 2)
  371. WedgePart20.Anchored = true
  372. WedgePart20.BottomSurface = Enum.SurfaceType.Smooth
  373. WedgePart20.BrickColor = BrickColor.new("Burnt Sienna")
  374. WedgePart20.Material = Enum.Material.CorrodedMetal
  375. WedgePart20.brickColor = BrickColor.new("Burnt Sienna")
  376. WedgePart20.FormFactor = Enum.FormFactor.Symmetric
  377. WedgePart20.formFactor = Enum.FormFactor.Symmetric
  378. Part21.Parent = Model0
  379. Part21.CFrame = CFrame.new(-132.628052, 7.81414223, -1.51782322, 0, 0, 0.999999821, -0.707106769, 0.70710665, 0, -0.70710665, -0.707106769, 0)
  380. Part21.Orientation = Vector3.new(0, 90, -45)
  381. Part21.Position = Vector3.new(-132.628052, 7.81414223, -1.51782322)
  382. Part21.Rotation = Vector3.new(0, 89.9700012, 0)
  383. Part21.Color = Color3.new(0.105882, 0.164706, 0.207843)
  384. Part21.Size = Vector3.new(1, 3, 1)
  385. Part21.Anchored = true
  386. Part21.BottomSurface = Enum.SurfaceType.Smooth
  387. Part21.BrickColor = BrickColor.new("Black")
  388. Part21.TopSurface = Enum.SurfaceType.Smooth
  389. Part21.brickColor = BrickColor.new("Black")
  390. Part21.FormFactor = Enum.FormFactor.Symmetric
  391. Part21.formFactor = Enum.FormFactor.Symmetric
  392. CylinderMesh22.Parent = Part21
  393. Part23.Parent = Model0
  394. Part23.CFrame = CFrame.new(-135.628174, 7.81408882, -1.51782322, 0, 0, -0.999999821, 0.70710665, 0.707106769, 0, 0.707106769, -0.70710665, 0)
  395. Part23.Orientation = Vector3.new(0, -90, 45)
  396. Part23.Position = Vector3.new(-135.628174, 7.81408882, -1.51782322)
  397. Part23.Rotation = Vector3.new(0, -89.9700012, 0)
  398. Part23.Color = Color3.new(0.105882, 0.164706, 0.207843)
  399. Part23.Size = Vector3.new(1, 3, 1)
  400. Part23.Anchored = true
  401. Part23.BottomSurface = Enum.SurfaceType.Smooth
  402. Part23.BrickColor = BrickColor.new("Black")
  403. Part23.TopSurface = Enum.SurfaceType.Smooth
  404. Part23.brickColor = BrickColor.new("Black")
  405. Part23.FormFactor = Enum.FormFactor.Symmetric
  406. Part23.formFactor = Enum.FormFactor.Symmetric
  407. CylinderMesh24.Parent = Part23
  408. Part25.Parent = Model0
  409. Part25.CFrame = CFrame.new(-125.728149, 8.1570797, 3.1893301, 0, 1, 0, 1, 0, 0, 0, 0, -1)
  410. Part25.Orientation = Vector3.new(0, 180, 90)
  411. Part25.Position = Vector3.new(-125.728149, 8.1570797, 3.1893301)
  412. Part25.Rotation = Vector3.new(-180, 0, -90)
  413. Part25.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  414. Part25.Size = Vector3.new(2, 2, 2)
  415. Part25.Anchored = true
  416. Part25.BottomSurface = Enum.SurfaceType.Smooth
  417. Part25.BrickColor = BrickColor.new("Burnt Sienna")
  418. Part25.Material = Enum.Material.CorrodedMetal
  419. Part25.TopSurface = Enum.SurfaceType.Smooth
  420. Part25.brickColor = BrickColor.new("Burnt Sienna")
  421. Part25.FormFactor = Enum.FormFactor.Symmetric
  422. Part25.formFactor = Enum.FormFactor.Symmetric
  423. Part26.Parent = Model0
  424. Part26.CFrame = CFrame.new(-136.628052, 8.52118874, -2.2249155, 0, 0, -0.999999821, 0.70710665, 0.707106769, 0, 0.707106769, -0.70710665, 0)
  425. Part26.Orientation = Vector3.new(0, -90, 45)
  426. Part26.Position = Vector3.new(-136.628052, 8.52118874, -2.2249155)
  427. Part26.Rotation = Vector3.new(0, -89.9700012, 0)
  428. Part26.Color = Color3.new(0.105882, 0.164706, 0.207843)
  429. Part26.Size = Vector3.new(1, 5, 1)
  430. Part26.Anchored = true
  431. Part26.BottomSurface = Enum.SurfaceType.Smooth
  432. Part26.BrickColor = BrickColor.new("Black")
  433. Part26.TopSurface = Enum.SurfaceType.Smooth
  434. Part26.brickColor = BrickColor.new("Black")
  435. Part26.FormFactor = Enum.FormFactor.Symmetric
  436. Part26.formFactor = Enum.FormFactor.Symmetric
  437. CylinderMesh27.Parent = Part26
  438. Part28.Parent = Model0
  439. Part28.CFrame = CFrame.new(-142.507324, 8.61213493, 5.1893301, 0, 1, 0, 1, 0, 0, 0, 0, -1)
  440. Part28.Orientation = Vector3.new(0, 180, 90)
  441. Part28.Position = Vector3.new(-142.507324, 8.61213493, 5.1893301)
  442. Part28.Rotation = Vector3.new(-180, 0, -90)
  443. Part28.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  444. Part28.Size = Vector3.new(3, 2, 2)
  445. Part28.Anchored = true
  446. Part28.BottomSurface = Enum.SurfaceType.Smooth
  447. Part28.BrickColor = BrickColor.new("Burnt Sienna")
  448. Part28.Material = Enum.Material.CorrodedMetal
  449. Part28.TopSurface = Enum.SurfaceType.Smooth
  450. Part28.brickColor = BrickColor.new("Burnt Sienna")
  451. Part28.FormFactor = Enum.FormFactor.Symmetric
  452. Part28.formFactor = Enum.FormFactor.Symmetric
  453. Part29.Parent = Model0
  454. Part29.CFrame = CFrame.new(-143.507324, 9.41219521, 12.6893301, -1, 0, 0, 0, 0, -1, 0, -1, 0)
  455. Part29.Orientation = Vector3.new(90, 180, 0)
  456. Part29.Position = Vector3.new(-143.507324, 9.41219521, 12.6893301)
  457. Part29.Rotation = Vector3.new(90, 0, -180)
  458. Part29.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  459. Part29.Size = Vector3.new(0.780000031, 2.92999983, 0.830000043)
  460. Part29.Anchored = true
  461. Part29.BottomSurface = Enum.SurfaceType.Smooth
  462. Part29.BrickColor = BrickColor.new("Really black")
  463. Part29.TopSurface = Enum.SurfaceType.Smooth
  464. Part29.brickColor = BrickColor.new("Really black")
  465. Part29.FormFactor = Enum.FormFactor.Custom
  466. Part29.formFactor = Enum.FormFactor.Custom
  467. CylinderMesh30.Parent = Part29
  468. CylinderMesh30.Scale = Vector3.new(0.970000267, 1, 1)
  469. WedgePart31.Parent = Model0
  470. WedgePart31.CFrame = CFrame.new(-125.90332, 10.555872, 17.142395, -1.00000751, -1.63912773e-07, 5.96046448e-08, 8.94069672e-08, 0.739944518, 0.67267555, -1.18032133e-07, 0.672674716, -0.739945889)
  471. WedgePart31.Orientation = Vector3.new(-42.2700005, 180, 0)
  472. WedgePart31.Position = Vector3.new(-125.90332, 10.555872, 17.142395)
  473. WedgePart31.Rotation = Vector3.new(-137.729996, 0, 180)
  474. WedgePart31.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  475. WedgePart31.Size = Vector3.new(1, 1.39999998, 3.79999995)
  476. WedgePart31.Anchored = true
  477. WedgePart31.BottomSurface = Enum.SurfaceType.Smooth
  478. WedgePart31.BrickColor = BrickColor.new("Really black")
  479. WedgePart31.Material = Enum.Material.CorrodedMetal
  480. WedgePart31.brickColor = BrickColor.new("Really black")
  481. WedgePart31.FormFactor = Enum.FormFactor.Symmetric
  482. WedgePart31.formFactor = Enum.FormFactor.Symmetric
  483. Part32.Parent = Model0
  484. Part32.CFrame = CFrame.new(-141.507324, 9.41219521, 15.3893728, -1, 0, 0, 0, 0, -1, 0, -1, 0)
  485. Part32.Orientation = Vector3.new(90, 180, 0)
  486. Part32.Position = Vector3.new(-141.507324, 9.41219521, 15.3893728)
  487. Part32.Rotation = Vector3.new(90, 0, -180)
  488. Part32.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  489. Part32.Size = Vector3.new(0.780000031, 1.92999983, 0.830000043)
  490. Part32.Anchored = true
  491. Part32.BottomSurface = Enum.SurfaceType.Smooth
  492. Part32.BrickColor = BrickColor.new("Really black")
  493. Part32.TopSurface = Enum.SurfaceType.Smooth
  494. Part32.brickColor = BrickColor.new("Really black")
  495. Part32.FormFactor = Enum.FormFactor.Custom
  496. Part32.formFactor = Enum.FormFactor.Custom
  497. CylinderMesh33.Parent = Part32
  498. CylinderMesh33.Scale = Vector3.new(0.970000267, 1, 1)
  499. Part34.Parent = Model0
  500. Part34.CFrame = CFrame.new(-143.507324, 9.41219521, 15.4893789, -1, 0, 0, 0, 0, -1, 0, -1, 0)
  501. Part34.Orientation = Vector3.new(90, 180, 0)
  502. Part34.Position = Vector3.new(-143.507324, 9.41219521, 15.4893789)
  503. Part34.Rotation = Vector3.new(90, 0, -180)
  504. Part34.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  505. Part34.Size = Vector3.new(0.780000031, 2.12999988, 0.830000043)
  506. Part34.Anchored = true
  507. Part34.BottomSurface = Enum.SurfaceType.Smooth
  508. Part34.BrickColor = BrickColor.new("Really black")
  509. Part34.TopSurface = Enum.SurfaceType.Smooth
  510. Part34.brickColor = BrickColor.new("Really black")
  511. Part34.FormFactor = Enum.FormFactor.Custom
  512. Part34.formFactor = Enum.FormFactor.Custom
  513. CylinderMesh35.Parent = Part34
  514. CylinderMesh35.Scale = Vector3.new(0.970000267, 1, 1)
  515. Part36.Parent = Model0
  516. Part36.CFrame = CFrame.new(-143.507324, 6.91226768, 12.6893301, -1, 0, 0, 0, 0, -1, 0, -1, 0)
  517. Part36.Orientation = Vector3.new(90, 180, 0)
  518. Part36.Position = Vector3.new(-143.507324, 6.91226768, 12.6893301)
  519. Part36.Rotation = Vector3.new(90, 0, -180)
  520. Part36.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  521. Part36.Size = Vector3.new(0.780000031, 2.92999983, 0.830000043)
  522. Part36.Anchored = true
  523. Part36.BottomSurface = Enum.SurfaceType.Smooth
  524. Part36.BrickColor = BrickColor.new("Really black")
  525. Part36.TopSurface = Enum.SurfaceType.Smooth
  526. Part36.brickColor = BrickColor.new("Really black")
  527. Part36.FormFactor = Enum.FormFactor.Custom
  528. Part36.formFactor = Enum.FormFactor.Custom
  529. CylinderMesh37.Parent = Part36
  530. CylinderMesh37.Scale = Vector3.new(0.970000267, 1, 1)
  531. Tool38.Name = "Turret"
  532. Tool38.Parent = Model0
  533. Tool38.TextureId = "http://www.roblox.com/asset/?id=72012902"
  534. Tool38.Grip = CFrame.new(0.0500000007, -0.5, -0.25, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  535. Tool38.GripForward = Vector3.new(-0, 1, -0)
  536. Tool38.GripPos = Vector3.new(0.0500000007, -0.5, -0.25)
  537. Tool38.GripUp = Vector3.new(0, 0, 1)
  538. Tool38.ToolTip = "Pistol"
  539. Part39.Name = "Handle"
  540. Part39.Parent = Tool38
  541. Part39.CFrame = CFrame.new(-125.728149, 8.1570797, 14.6893301, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  542. Part39.Orientation = Vector3.new(0, 180, 0)
  543. Part39.Position = Vector3.new(-125.728149, 8.1570797, 14.6893301)
  544. Part39.Rotation = Vector3.new(-180, 0, -180)
  545. Part39.Color = Color3.new(0.105882, 0.164706, 0.207843)
  546. Part39.Size = Vector3.new(2, 2, 1)
  547. Part39.Anchored = true
  548. Part39.BottomSurface = Enum.SurfaceType.Weld
  549. Part39.BrickColor = BrickColor.new("Black")
  550. Part39.FrontSurface = Enum.SurfaceType.Weld
  551. Part39.Material = Enum.Material.CorrodedMetal
  552. Part39.RightSurface = Enum.SurfaceType.Weld
  553. Part39.brickColor = BrickColor.new("Black")
  554. Part39.FormFactor = Enum.FormFactor.Symmetric
  555. Part39.formFactor = Enum.FormFactor.Symmetric
  556. Fire40.Parent = Part39
  557. Fire40.Color = Color3.new(1, 0, 0)
  558. Fire40.Size = 7
  559. Fire40.Heat = 0
  560. Fire40.SecondaryColor = Color3.new(1, 0, 0)
  561. Fire40.size = 7
  562. Script41.Name = "Ghost Sound"
  563. Script41.Parent = Part39
  564. table.insert(cors,sandbox(Script41,function()
  565. local s = Instance.new("Sound")
  566.  
  567. s.Name = "BGMusic"
  568. s.SoundId = "http://www.roblox.com/asset/?id=77170656"
  569. s.Volume = 1
  570. s.Pitch = 1
  571. s.Looped = false
  572. s.archivable = false
  573.  
  574. s.Parent = script.Parent
  575.  
  576. wait(50.0)
  577.  
  578. s:play()
  579. end))
  580. Sound42.Name = "PewPew"
  581. Sound42.Parent = Part39
  582. Sound42.SoundId = "http://www.roblox.com/asset/?id=85848355"
  583. Sound42.Volume = 1
  584. Script43.Name = "LaserBlast"
  585. Script43.Parent = Tool38
  586. table.insert(cors,sandbox(Script43,function()
  587. -- 42672473 is sorry sound
  588. -- 42672581 is wind-knocked-out sound
  589.  
  590. ball = script.Parent
  591. damage = 7.5
  592.  
  593. HitSound = Instance.new("Sound")
  594. HitSound.Name = "HitSound"
  595. HitSound.SoundId = "http://www.roblox.com/asset/?id=85848355"
  596. HitSound.Parent = ball
  597. HitSound.Volume = 1
  598.  
  599. PersonHitSound = Instance.new("Sound")
  600. PersonHitSound.Name = "PersonHitSound"
  601. --PersonHitSound.SoundId = "http://www.roblox.com/asset/?id=85848355"
  602. PersonHitSound.SoundId = "http://www.roblox.com/asset/?id=85848355" -- grunt sound
  603. PersonHitSound.Volume = .5
  604. PersonHitSound.Pitch = 1
  605. PersonHitSound.Parent = ball
  606.  
  607. db = false
  608.  
  609. target = ball:findFirstChild("Target")
  610. if target ~= nil then
  611. if db == false then
  612. local humanoid = target.Value:findFirstChild("Humanoid")
  613.  
  614. if humanoid ~= nil then
  615. humanoid:TakeDamage(damage)
  616.  
  617. PersonHitSound:Play()
  618. end
  619.  
  620. ball.Anchored = true
  621. end
  622. end
  623.  
  624. function tagHumanoid(humanoid)
  625. -- todo: make tag expire
  626. local tag = ball:findFirstChild("creator")
  627. if tag ~= nil then
  628. local new_tag = tag:clone()
  629. new_tag.Parent = humanoid
  630. end
  631. end
  632.  
  633.  
  634. function untagHumanoid(humanoid)
  635. if humanoid ~= nil then
  636. local tag = humanoid:findFirstChild("creator")
  637. if tag ~= nil then
  638. tag.Parent = nil
  639. end
  640. end
  641. end
  642.  
  643. connection = ball.Touched:connect(onTouched)
  644.  
  645. for i = 1,5 do
  646. ball.Transparency = ball.Transparency + 0.2
  647. ball.Mesh.Scale = ball.Mesh.Scale + Vector3.new(0.5,0.5,0.5)
  648. wait(0.1)
  649. end
  650.  
  651. --ball.SparkSound.Looped = false
  652. --ball.SparkSound:Stop()
  653. ball.Parent = nil
  654. end))
  655. Script43.Disabled = true
  656. Script44.Name = "LaserBlast2"
  657. Script44.Parent = Tool38
  658. table.insert(cors,sandbox(Script44,function()
  659. -- 42672473 is sorry sound
  660. -- 42672581 is wind-knocked-out sound
  661.  
  662. ball = script.Parent
  663. damage = 7.5
  664.  
  665. HitSound = Instance.new("Sound")
  666. HitSound.Name = "HitSound"
  667. HitSound.SoundId = "http://www.roblox.com/asset/?id=173692437"
  668. HitSound.Parent = ball
  669. HitSound.Volume = 1
  670.  
  671. PersonHitSound = Instance.new("Sound")
  672. PersonHitSound.Name = "PersonHitSound"
  673. --PersonHitSound.SoundId = "http://www.roblox.com/asset/?id=173692437"
  674. PersonHitSound.SoundId = "http://www.roblox.com/asset/?id=173692437" -- grunt sound
  675. PersonHitSound.Volume = .5
  676. PersonHitSound.Pitch = 1
  677. PersonHitSound.Parent = ball
  678.  
  679. db = false
  680.  
  681. function onTouched(hit)
  682. if db == false then
  683. local humanoid = hit.Parent:findFirstChild("Humanoid")
  684.  
  685. if humanoid ~= nil then
  686. --tagHumanoid(humanoid)
  687. humanoid:TakeDamage(damage)
  688. db = true
  689. --untagHumanoid(humanoid)
  690.  
  691. --soundSelector = math.random()*100
  692. PersonHitSound:Play()
  693. end
  694.  
  695. ball.Anchored = true
  696.  
  697. --[[
  698. local spark = Instance.new("Fire")
  699. spark.Color = Color3.new(1,1,0)
  700. spark.SecondaryColor = Color3.new(1,1,0)
  701. spark.Size = 7.5
  702. spark.Heat = 0
  703. spark.Parent = ball
  704. HitSound:Play()
  705. wait(0.05)
  706. ball.Parent = nil
  707. ]]
  708. end
  709. end
  710.  
  711. function tagHumanoid(humanoid)
  712. -- todo: make tag expire
  713. local tag = ball:findFirstChild("creator")
  714. if tag ~= nil then
  715. local new_tag = tag:clone()
  716. new_tag.Parent = humanoid
  717. end
  718. end
  719.  
  720.  
  721. function untagHumanoid(humanoid)
  722. if humanoid ~= nil then
  723. local tag = humanoid:findFirstChild("creator")
  724. if tag ~= nil then
  725. tag.Parent = nil
  726. end
  727. end
  728. end
  729.  
  730. connection = ball.Touched:connect(onTouched)
  731.  
  732. for i = 1,5 do
  733. ball.Transparency = ball.Transparency + 0.2
  734. ball.Mesh.Scale = ball.Mesh.Scale + Vector3.new(0.5,0.5,0.5)
  735. wait(0.1)
  736. end
  737.  
  738. --ball.SparkSound.Looped = false
  739. --ball.SparkSound:Stop()
  740. ball.Parent = nil
  741. end))
  742. Script44.Disabled = true
  743. SpecialMesh45.Parent = Tool38
  744. SpecialMesh45.Scale = Vector3.new(0.25, 0.25, 0.25)
  745. SpecialMesh45.MeshType = Enum.MeshType.Sphere
  746. Script46.Name = "ProjectileTimeLife"
  747. Script46.Parent = Tool38
  748. table.insert(cors,sandbox(Script46,function()
  749. script.Parent.Transparency = 0.2
  750. wait(0.025)
  751. script.Parent.Transparency = 0.4
  752. wait(0.025)
  753. script.Parent.Transparency = 0.6
  754. wait(0.025)
  755. script.Parent.Transparency = 0.8
  756. wait(0.025)
  757. script.Parent:remove()
  758. end))
  759. Script46.Disabled = true
  760. Script47.Name = "RayGun"
  761. Script47.Parent = Tool38
  762. table.insert(cors,sandbox(Script47,function()
  763. local Tool = script.Parent;
  764.  
  765. enabled = true
  766.  
  767. --local spark = Instance.new("Sparkles")
  768. --spark.Color = Color3.new(0,1,0)
  769.  
  770. function fire(v)
  771.  
  772. local vCharacter = Tool.Parent
  773. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  774.  
  775. local missile = Instance.new("Part")
  776.  
  777.  
  778. --spark:Clone().Parent = missile
  779.  
  780. local spawnPos = Tool.Parent.Target.Value.Position
  781.  
  782.  
  783. --spawnPos = spawnPos + (v * 10)
  784.  
  785.  
  786. missile.Position = spawnPos
  787. missile.Size = Vector3.new(7,7,7)
  788. --missile.Velocity = v * 100
  789. missile.BrickColor = BrickColor.new("Really red")
  790. missile.Shape = 0
  791. missile.BottomSurface = 0
  792. missile.TopSurface = 0
  793. missile.Name = "Spark"
  794. missile.Reflectance = 0
  795. missile.Elasticity = 1
  796. missile.Anchored = true
  797. missile.CanCollide = false
  798. Tool.Mesh:clone().Parent = missile
  799.  
  800.  
  801. local force = Instance.new("BodyForce")
  802. force.force = Vector3.new(0,99,0)
  803. force.Parent = missile
  804.  
  805. local creator_tag = Instance.new("ObjectValue")
  806. creator_tag.Value = vPlayer
  807. creator_tag.Name = "creator"
  808. creator_tag.Parent = missile
  809.  
  810. local new_script = script.Parent.LaserBlast:clone()
  811. new_script.Disabled = false
  812. new_script.Parent = missile
  813.  
  814. local target = Instance.new("ObjectValue")
  815. target.Name = "Target"
  816. target.Value = Tool.Parent.Target.Value.Parent
  817. target.Parent = missile
  818.  
  819.  
  820. Hit = missile.CFrame
  821. local Projectile = Instance.new("Part")
  822. Projectile.Name = "Trail"
  823. local Place0 = Tool["Handle"].CFrame
  824. Projectile.formFactor = 0
  825. Projectile.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude)
  826. Projectile.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p)
  827. Projectile.Parent = Workspace
  828. Projectile.BrickColor = missile.BrickColor
  829. Projectile.Anchored = true
  830. Projectile.CanCollide = false
  831.  
  832. local new_script2 = script.Parent.ProjectileTimeLife:clone()
  833. new_script2.Disabled = false
  834. new_script2.Parent = Projectile
  835.  
  836. me2 = Instance.new("BlockMesh")
  837. me2.Scale = Vector3.new(.5,.5,1.4)
  838. me2.Parent = Projectile
  839.  
  840. --Tool.Handle.GruntSound:Clone().Parent = missile
  841.  
  842. missile.Parent = Workspace
  843. -- wait(.15)
  844. --PewPew:Stop()
  845. end
  846.  
  847.  
  848.  
  849. function gunUp()
  850. Tool.GripPos = Vector3.new(0,-0.5,0.5)
  851. end
  852.  
  853. function gunOut()
  854. Tool.GripPos = Vector3.new(0,-0.5,0.75)
  855. end
  856.  
  857. function isTurbo(character)
  858. return character:FindFirstChild("BoltHelm") ~= nil
  859. end
  860.  
  861.  
  862. function onActivated()
  863. if not enabled then
  864. return
  865. end
  866.  
  867. enabled = false
  868.  
  869.  
  870. local character = Tool.Parent;
  871. local humanoid = character.Zombie
  872. if humanoid == nil then
  873. print("Humanoid not found")
  874. return
  875. end
  876.  
  877. local targetPos = Tool.Parent.Target.Value.Position
  878. local lookAt = (targetPos - character.Head.Position).unit
  879.  
  880. local reload = .05
  881. --if (isTurbo(character)) then
  882. -- reload = .25
  883. -- print("turbo")
  884. --end
  885.  
  886.  
  887. local PewPew = Tool.Handle:FindFirstChild("PewPew")
  888.  
  889. if (PewPew == nil) then
  890. PewPew = Instance.new("Sound")
  891. PewPew.Name = "PewPew"
  892. PewPew.SoundId = "http://www.roblox.com/asset/?id=173692437"
  893. PewPew.Parent = Tool.Handle
  894. PewPew.Volume = 1
  895. --PewPew.Pitch = 1.2
  896. end
  897.  
  898. PewPew:Play()
  899.  
  900. local spark = Instance.new("Fire")
  901. spark.Color = Color3.new(1,1,0)
  902. spark.SecondaryColor = Color3.new(1,1,0)
  903. spark.Size = 2.5
  904. spark.Heat = 0
  905. spark.Parent = Tool.Handle
  906.  
  907. --gunUp()
  908. fire(lookAt,humanoid)
  909. wait(reload)
  910. --gunOut()
  911. wait(reload)
  912.  
  913. spark:remove()
  914.  
  915. wait(50.9)
  916.  
  917. enabled = true
  918.  
  919. end
  920.  
  921. function onEquipped()
  922. --Tool.Handle.EquipSound:play()
  923. end
  924.  
  925. Tool.Activated:connect(onActivated)
  926. Tool.Equipped:connect(onEquipped)
  927.  
  928. while true do
  929. if Tool.Parent.Attack.Value == true then
  930. onActivated()
  931. end
  932. wait()
  933. end
  934.  
  935. end))
  936. Script48.Name = "Welding"
  937. Script48.Parent = Tool38
  938. table.insert(cors,sandbox(Script48,function()
  939. function Weld(x,y)
  940. local W = Instance.new("Weld")
  941. W.Part0 = x
  942. W.Part1 = y
  943. local CJ = CFrame.new(x.Position)
  944. local C0 = x.CFrame:inverse()*CJ
  945. local C1 = y.CFrame:inverse()*CJ
  946. W.C0 = C0
  947. W.C1 = C1
  948. W.Parent = x
  949. end
  950.  
  951. function Get(A)
  952. if A.className == "Part" then
  953. Weld(script.Parent.Handle, A)
  954. A.Anchored = false
  955. else
  956. local C = A:GetChildren()
  957. for i=1, #C do
  958. Get(C[i])
  959. end
  960. end
  961. end
  962.  
  963. function Finale()
  964. Get(script.Parent)
  965. end
  966.  
  967. script.Parent.Equipped:connect(Finale)
  968. script.Parent.Unequipped:connect(Finale)
  969. Finale()
  970. end))
  971. LocalScript49.Name = "Local Gui"
  972. LocalScript49.Parent = Tool38
  973. table.insert(cors,sandbox(LocalScript49,function()
  974. local Tool = script.Parent;
  975.  
  976. enabled = true
  977. function onButton1Down(mouse)
  978. if not enabled then
  979. return
  980. end
  981.  
  982. enabled = false
  983. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  984.  
  985. wait(0.2)
  986. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  987. enabled = true
  988.  
  989. end
  990.  
  991. function onEquippedLocal(mouse)
  992.  
  993. if mouse == nil then
  994. print("Mouse not found")
  995. return
  996. end
  997.  
  998. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  999. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  1000. end
  1001.  
  1002.  
  1003. Tool.Equipped:connect(onEquippedLocal)
  1004.  
  1005. end))
  1006. Part50.Parent = Model0
  1007. Part50.CFrame = CFrame.new(-141.128052, 4.00000191, 5.98931789, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1008. Part50.Orientation = Vector3.new(0, 90, 0)
  1009. Part50.Position = Vector3.new(-141.128052, 4.00000191, 5.98931789)
  1010. Part50.Rotation = Vector3.new(0, 90, 0)
  1011. Part50.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  1012. Part50.Size = Vector3.new(10, 2, 4)
  1013. Part50.Anchored = true
  1014. Part50.BottomSurface = Enum.SurfaceType.Smooth
  1015. Part50.BrickColor = BrickColor.new("Burnt Sienna")
  1016. Part50.Material = Enum.Material.CorrodedMetal
  1017. Part50.TopSurface = Enum.SurfaceType.Smooth
  1018. Part50.brickColor = BrickColor.new("Burnt Sienna")
  1019. Part50.FormFactor = Enum.FormFactor.Symmetric
  1020. Part50.formFactor = Enum.FormFactor.Symmetric
  1021. WedgePart51.Parent = Model0
  1022. WedgePart51.CFrame = CFrame.new(-125.90332, 5.55334663, 13.1893301, 0.999999583, 0, -4.47034836e-08, 4.47034836e-08, 0, 0.999999583, 0, -1, 0)
  1023. WedgePart51.Orientation = Vector3.new(-89.9499969, -90, 90)
  1024. WedgePart51.Position = Vector3.new(-125.90332, 5.55334663, 13.1893301)
  1025. WedgePart51.Rotation = Vector3.new(-90, 0, 0)
  1026. WedgePart51.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1027. WedgePart51.Size = Vector3.new(1, 2, 3)
  1028. WedgePart51.Anchored = true
  1029. WedgePart51.BottomSurface = Enum.SurfaceType.Smooth
  1030. WedgePart51.BrickColor = BrickColor.new("Really black")
  1031. WedgePart51.Material = Enum.Material.CorrodedMetal
  1032. WedgePart51.brickColor = BrickColor.new("Really black")
  1033. WedgePart51.FormFactor = Enum.FormFactor.Symmetric
  1034. WedgePart51.formFactor = Enum.FormFactor.Symmetric
  1035. Part52.Parent = Model0
  1036. Part52.CFrame = CFrame.new(-142.507324, 8.11207771, 8.1893301, 0, 1, 0, 1, 0, 0, 0, 0, -1)
  1037. Part52.Orientation = Vector3.new(0, 180, 90)
  1038. Part52.Position = Vector3.new(-142.507324, 8.11207771, 8.1893301)
  1039. Part52.Rotation = Vector3.new(-180, 0, -90)
  1040. Part52.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  1041. Part52.Size = Vector3.new(2, 2, 4)
  1042. Part52.Anchored = true
  1043. Part52.BottomSurface = Enum.SurfaceType.Smooth
  1044. Part52.BrickColor = BrickColor.new("Burnt Sienna")
  1045. Part52.Material = Enum.Material.CorrodedMetal
  1046. Part52.TopSurface = Enum.SurfaceType.Smooth
  1047. Part52.brickColor = BrickColor.new("Burnt Sienna")
  1048. Part52.FormFactor = Enum.FormFactor.Symmetric
  1049. Part52.formFactor = Enum.FormFactor.Symmetric
  1050. Part53.Parent = Model0
  1051. Part53.CFrame = CFrame.new(-142.507324, 8.11207771, 10.6893301, -1, 0, 0, 0, 0, -1, 0, -1, 0)
  1052. Part53.Orientation = Vector3.new(90, 180, 0)
  1053. Part53.Position = Vector3.new(-142.507324, 8.11207771, 10.6893301)
  1054. Part53.Rotation = Vector3.new(90, 0, -180)
  1055. Part53.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1056. Part53.Size = Vector3.new(4, 1, 4)
  1057. Part53.Anchored = true
  1058. Part53.BottomSurface = Enum.SurfaceType.Smooth
  1059. Part53.BrickColor = BrickColor.new("Black")
  1060. Part53.TopSurface = Enum.SurfaceType.Smooth
  1061. Part53.brickColor = BrickColor.new("Black")
  1062. Part53.FormFactor = Enum.FormFactor.Symmetric
  1063. Part53.formFactor = Enum.FormFactor.Symmetric
  1064. CylinderMesh54.Parent = Part53
  1065. WedgePart55.Parent = Model0
  1066. WedgePart55.CFrame = CFrame.new(-122.713867, 8.34274864, 15.1893301, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  1067. WedgePart55.Orientation = Vector3.new(0, 90, 90)
  1068. WedgePart55.Position = Vector3.new(-122.713867, 8.34274864, 15.1893301)
  1069. WedgePart55.Rotation = Vector3.new(90, 90, 0)
  1070. WedgePart55.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1071. WedgePart55.Size = Vector3.new(1, 2, 2.20000005)
  1072. WedgePart55.Anchored = true
  1073. WedgePart55.BottomSurface = Enum.SurfaceType.Smooth
  1074. WedgePart55.BrickColor = BrickColor.new("Really black")
  1075. WedgePart55.Material = Enum.Material.CorrodedMetal
  1076. WedgePart55.brickColor = BrickColor.new("Really black")
  1077. WedgePart55.FormFactor = Enum.FormFactor.Symmetric
  1078. WedgePart55.formFactor = Enum.FormFactor.Symmetric
  1079. WedgePart56.Parent = Model0
  1080. WedgePart56.CFrame = CFrame.new(-123.390015, 8.34268379, 17.142395, -6.38003286e-08, 0.739944577, 0.672675848, 1.00000787, 1.14427294e-07, -5.54906734e-08, -1.76635069e-07, 0.672674775, -0.739945829)
  1081. WedgePart56.Orientation = Vector3.new(0, 137.729996, 90)
  1082. WedgePart56.Position = Vector3.new(-123.390015, 8.34268379, 17.142395)
  1083. WedgePart56.Rotation = Vector3.new(180, 42.2700005, -90)
  1084. WedgePart56.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1085. WedgePart56.Size = Vector3.new(1, 1.39999998, 3.79999995)
  1086. WedgePart56.Anchored = true
  1087. WedgePart56.BottomSurface = Enum.SurfaceType.Smooth
  1088. WedgePart56.BrickColor = BrickColor.new("Really black")
  1089. WedgePart56.Material = Enum.Material.CorrodedMetal
  1090. WedgePart56.brickColor = BrickColor.new("Really black")
  1091. WedgePart56.FormFactor = Enum.FormFactor.Symmetric
  1092. WedgePart56.formFactor = Enum.FormFactor.Symmetric
  1093. WedgePart57.Parent = Model0
  1094. WedgePart57.CFrame = CFrame.new(-125.90332, 5.15330315, 15.1893301, 0.999999583, 0, 4.47034836e-08, 4.47034836e-08, 0, -0.999999583, 0, 1, 0)
  1095. WedgePart57.Orientation = Vector3.new(89.9499969, 90, 90)
  1096. WedgePart57.Position = Vector3.new(-125.90332, 5.15330315, 15.1893301)
  1097. WedgePart57.Rotation = Vector3.new(90, 0, 0)
  1098. WedgePart57.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1099. WedgePart57.Size = Vector3.new(1, 2, 2.20000005)
  1100. WedgePart57.Anchored = true
  1101. WedgePart57.BottomSurface = Enum.SurfaceType.Smooth
  1102. WedgePart57.BrickColor = BrickColor.new("Really black")
  1103. WedgePart57.Material = Enum.Material.CorrodedMetal
  1104. WedgePart57.brickColor = BrickColor.new("Really black")
  1105. WedgePart57.FormFactor = Enum.FormFactor.Symmetric
  1106. WedgePart57.formFactor = Enum.FormFactor.Symmetric
  1107. WedgePart58.Parent = Model0
  1108. WedgePart58.CFrame = CFrame.new(-125.90332, 5.82956123, 17.142395, 1.00000763, 1.1920929e-07, 1.49011612e-08, 5.96046448e-08, -0.739944577, -0.67267561, -1.18032133e-07, 0.672674716, -0.739945889)
  1109. WedgePart58.Orientation = Vector3.new(42.2700005, 180, 180)
  1110. WedgePart58.Position = Vector3.new(-125.90332, 5.82956123, 17.142395)
  1111. WedgePart58.Rotation = Vector3.new(137.729996, 0, 0)
  1112. WedgePart58.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1113. WedgePart58.Size = Vector3.new(1, 1.39999998, 3.79999995)
  1114. WedgePart58.Anchored = true
  1115. WedgePart58.BottomSurface = Enum.SurfaceType.Smooth
  1116. WedgePart58.BrickColor = BrickColor.new("Really black")
  1117. WedgePart58.Material = Enum.Material.CorrodedMetal
  1118. WedgePart58.brickColor = BrickColor.new("Really black")
  1119. WedgePart58.FormFactor = Enum.FormFactor.Symmetric
  1120. WedgePart58.formFactor = Enum.FormFactor.Symmetric
  1121. WedgePart59.Parent = Model0
  1122. WedgePart59.CFrame = CFrame.new(-123.113892, 8.34274864, 13.1893301, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  1123. WedgePart59.Orientation = Vector3.new(0, -90, 90)
  1124. WedgePart59.Position = Vector3.new(-123.113892, 8.34274864, 13.1893301)
  1125. WedgePart59.Rotation = Vector3.new(-90, -90, 0)
  1126. WedgePart59.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1127. WedgePart59.Size = Vector3.new(1, 2, 3)
  1128. WedgePart59.Anchored = true
  1129. WedgePart59.BottomSurface = Enum.SurfaceType.Smooth
  1130. WedgePart59.BrickColor = BrickColor.new("Really black")
  1131. WedgePart59.Material = Enum.Material.CorrodedMetal
  1132. WedgePart59.brickColor = BrickColor.new("Really black")
  1133. WedgePart59.FormFactor = Enum.FormFactor.Symmetric
  1134. WedgePart59.formFactor = Enum.FormFactor.Symmetric
  1135. WedgePart60.Parent = Model0
  1136. WedgePart60.CFrame = CFrame.new(-141.12793, 4.00000191, -1.01068211, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1137. WedgePart60.Position = Vector3.new(-141.12793, 4.00000191, -1.01068211)
  1138. WedgePart60.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  1139. WedgePart60.Size = Vector3.new(4, 2, 4)
  1140. WedgePart60.Anchored = true
  1141. WedgePart60.BottomSurface = Enum.SurfaceType.Smooth
  1142. WedgePart60.BrickColor = BrickColor.new("Burnt Sienna")
  1143. WedgePart60.Material = Enum.Material.CorrodedMetal
  1144. WedgePart60.brickColor = BrickColor.new("Burnt Sienna")
  1145. WedgePart60.FormFactor = Enum.FormFactor.Symmetric
  1146. WedgePart60.formFactor = Enum.FormFactor.Symmetric
  1147. WedgePart61.Parent = Model0
  1148. WedgePart61.CFrame = CFrame.new(-134.128174, 7.39995766, 10.1893301, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1149. WedgePart61.Orientation = Vector3.new(0, 180, 0)
  1150. WedgePart61.Position = Vector3.new(-134.128174, 7.39995766, 10.1893301)
  1151. WedgePart61.Rotation = Vector3.new(-180, 0, -180)
  1152. WedgePart61.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  1153. WedgePart61.Size = Vector3.new(10, 2, 2)
  1154. WedgePart61.Anchored = true
  1155. WedgePart61.BottomSurface = Enum.SurfaceType.Smooth
  1156. WedgePart61.BrickColor = BrickColor.new("Burnt Sienna")
  1157. WedgePart61.Material = Enum.Material.CorrodedMetal
  1158. WedgePart61.brickColor = BrickColor.new("Burnt Sienna")
  1159. WedgePart61.FormFactor = Enum.FormFactor.Symmetric
  1160. WedgePart61.formFactor = Enum.FormFactor.Symmetric
  1161. Part62.Name = "Torso"
  1162. Part62.Parent = Model0
  1163. Part62.CFrame = CFrame.new(-134.128174, 7.39995766, 5.1893301, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1164. Part62.Orientation = Vector3.new(0, 180, 0)
  1165. Part62.Position = Vector3.new(-134.128174, 7.39995766, 5.1893301)
  1166. Part62.Rotation = Vector3.new(-180, 0, -180)
  1167. Part62.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  1168. Part62.Size = Vector3.new(10, 2, 8)
  1169. Part62.Anchored = true
  1170. Part62.BottomSurface = Enum.SurfaceType.Smooth
  1171. Part62.BrickColor = BrickColor.new("Burnt Sienna")
  1172. Part62.Material = Enum.Material.CorrodedMetal
  1173. Part62.TopSurface = Enum.SurfaceType.Weld
  1174. Part62.brickColor = BrickColor.new("Burnt Sienna")
  1175. Part62.FormFactor = Enum.FormFactor.Symmetric
  1176. Part62.formFactor = Enum.FormFactor.Symmetric
  1177. CFrameValue63.Name = "qRelativeCFrameWeldValue"
  1178. CFrameValue63.Parent = Part62
  1179. CFrameValue63.Value = CFrame.new(3.88675499, -3.96889496, 2.00182533, -0.707507908, -0.706699848, 9.00280611e-07, 0.706694365, -0.707513392, 1.22883444e-06, -2.68219736e-07, 1.45493391e-06, 0.999996245)
  1180. BodyPosition64.Parent = Part62
  1181. BodyPosition64.Position = Vector3.new(0, 6, 0)
  1182. BodyPosition64.P = 30000
  1183. BodyPosition64.MaxForce = Vector3.new(0, 400000, 0)
  1184. BodyPosition64.maxForce = Vector3.new(0, 400000, 0)
  1185. BodyPosition64.position = Vector3.new(0, 6, 0)
  1186. Script65.Parent = BodyPosition64
  1187. table.insert(cors,sandbox(Script65,function()
  1188. wait(0.5)
  1189.  
  1190. script.Parent.position = script.Parent.Parent.Position
  1191. script.Parent.Parent.Anchored = false
  1192.  
  1193. end))
  1194. Script65.Disabled = true
  1195. BillboardGui66.Name = "Healthbar"
  1196. BillboardGui66.Parent = Part62
  1197. BillboardGui66.Size = UDim2.new(50, 0, 1, 0)
  1198. BillboardGui66.AlwaysOnTop = true
  1199. BillboardGui66.StudsOffset = Vector3.new(0, 20, 0)
  1200. Frame67.Parent = BillboardGui66
  1201. Frame67.Size = UDim2.new(1, 0, 1, 0)
  1202. Frame67.BackgroundColor = BrickColor.new("Really black")
  1203. Frame67.BackgroundColor3 = Color3.new(0, 0, 0)
  1204. Frame67.BorderColor = BrickColor.new("Really black")
  1205. Frame67.BorderColor3 = Color3.new(0, 0, 0)
  1206. Frame68.Name = "Full"
  1207. Frame68.Parent = Frame67
  1208. Frame68.Size = UDim2.new(1, 0, 1, 0)
  1209. Frame68.BackgroundColor = BrickColor.new("Lime green")
  1210. Frame68.BackgroundColor3 = Color3.new(0, 0.784314, 0)
  1211. Frame68.BorderColor = BrickColor.new("Really black")
  1212. Frame68.BorderColor3 = Color3.new(0, 0, 0)
  1213. Frame68.BorderSizePixel = 0
  1214. Frame69.Name = "Reflec"
  1215. Frame69.Parent = Frame68
  1216. Frame69.Size = UDim2.new(1, 0, 0.370000005, 0)
  1217. Frame69.BackgroundColor = BrickColor.new("Institutional white")
  1218. Frame69.BackgroundColor3 = Color3.new(1, 1, 1)
  1219. Frame69.BackgroundTransparency = 0.625
  1220. Frame69.BorderSizePixel = 0
  1221. Part70.Parent = Model0
  1222. Part70.CFrame = CFrame.new(-134.128174, 3.40000343, 5.1893301, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1223. Part70.Orientation = Vector3.new(0, 180, 0)
  1224. Part70.Position = Vector3.new(-134.128174, 3.40000343, 5.1893301)
  1225. Part70.Rotation = Vector3.new(-180, 0, -180)
  1226. Part70.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  1227. Part70.Size = Vector3.new(10, 2, 8)
  1228. Part70.Anchored = true
  1229. Part70.BottomSurface = Enum.SurfaceType.Smooth
  1230. Part70.BrickColor = BrickColor.new("Burnt Sienna")
  1231. Part70.Material = Enum.Material.CorrodedMetal
  1232. Part70.TopSurface = Enum.SurfaceType.Smooth
  1233. Part70.brickColor = BrickColor.new("Burnt Sienna")
  1234. Part70.FormFactor = Enum.FormFactor.Symmetric
  1235. Part70.formFactor = Enum.FormFactor.Symmetric
  1236. Part71.Parent = Model0
  1237. Part71.CFrame = CFrame.new(-134.128174, 5.39997673, 5.1893301, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1238. Part71.Orientation = Vector3.new(0, 180, 0)
  1239. Part71.Position = Vector3.new(-134.128174, 5.39997673, 5.1893301)
  1240. Part71.Rotation = Vector3.new(-180, 0, -180)
  1241. Part71.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  1242. Part71.Size = Vector3.new(10, 2, 8)
  1243. Part71.Anchored = true
  1244. Part71.BottomSurface = Enum.SurfaceType.Smooth
  1245. Part71.BrickColor = BrickColor.new("Burnt Sienna")
  1246. Part71.Material = Enum.Material.CorrodedMetal
  1247. Part71.TopSurface = Enum.SurfaceType.Smooth
  1248. Part71.brickColor = BrickColor.new("Burnt Sienna")
  1249. Part71.FormFactor = Enum.FormFactor.Symmetric
  1250. Part71.formFactor = Enum.FormFactor.Symmetric
  1251. Part72.Parent = Model0
  1252. Part72.CFrame = CFrame.new(-142.507324, 8.21107674, 14.3395987, -1, 0, 0, 0, 0, -1, 0, -1, 0)
  1253. Part72.Orientation = Vector3.new(90, 180, 0)
  1254. Part72.Position = Vector3.new(-142.507324, 8.21107674, 14.3395987)
  1255. Part72.Rotation = Vector3.new(90, 0, -180)
  1256. Part72.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1257. Part72.Size = Vector3.new(3.99800038, 0.200000003, 4.59800053)
  1258. Part72.Anchored = true
  1259. Part72.BottomSurface = Enum.SurfaceType.Smooth
  1260. Part72.BrickColor = BrickColor.new("Black")
  1261. Part72.TopSurface = Enum.SurfaceType.Smooth
  1262. Part72.brickColor = BrickColor.new("Black")
  1263. Part72.FormFactor = Enum.FormFactor.Custom
  1264. Part72.formFactor = Enum.FormFactor.Custom
  1265. CylinderMesh73.Parent = Part72
  1266. WedgePart74.Parent = Model0
  1267. WedgePart74.CFrame = CFrame.new(-128.266113, 8.14261818, 13.1893301, 0, 0, 1, -1, 0, 0, 0, -1, 0)
  1268. WedgePart74.Orientation = Vector3.new(0, 90, -90)
  1269. WedgePart74.Position = Vector3.new(-128.266113, 8.14261818, 13.1893301)
  1270. WedgePart74.Rotation = Vector3.new(-90, 90, 0)
  1271. WedgePart74.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1272. WedgePart74.Size = Vector3.new(1, 2, 3)
  1273. WedgePart74.Anchored = true
  1274. WedgePart74.BottomSurface = Enum.SurfaceType.Smooth
  1275. WedgePart74.BrickColor = BrickColor.new("Really black")
  1276. WedgePart74.Material = Enum.Material.CorrodedMetal
  1277. WedgePart74.brickColor = BrickColor.new("Really black")
  1278. WedgePart74.FormFactor = Enum.FormFactor.Symmetric
  1279. WedgePart74.formFactor = Enum.FormFactor.Symmetric
  1280. Part75.Parent = Model0
  1281. Part75.CFrame = CFrame.new(-142.807373, 8.11207771, 12.6893301, -1, 0, 0, 0, 0, -1, 0, -1, 0)
  1282. Part75.Orientation = Vector3.new(90, 180, 0)
  1283. Part75.Position = Vector3.new(-142.807373, 8.11207771, 12.6893301)
  1284. Part75.Rotation = Vector3.new(90, 0, -180)
  1285. Part75.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1286. Part75.Size = Vector3.new(1.38000011, 2.92999983, 1.43000007)
  1287. Part75.Anchored = true
  1288. Part75.BottomSurface = Enum.SurfaceType.Smooth
  1289. Part75.BrickColor = BrickColor.new("Really black")
  1290. Part75.TopSurface = Enum.SurfaceType.Smooth
  1291. Part75.brickColor = BrickColor.new("Really black")
  1292. Part75.FormFactor = Enum.FormFactor.Custom
  1293. Part75.formFactor = Enum.FormFactor.Custom
  1294. CylinderMesh76.Parent = Part75
  1295. CylinderMesh76.Scale = Vector3.new(0.970000267, 1, 1)
  1296. WedgePart77.Parent = Model0
  1297. WedgePart77.CFrame = CFrame.new(-127.98999, 8.14269066, 17.1423645, 6.38003286e-08, -0.739944577, -0.672675848, -1.00000787, -1.14427294e-07, 5.54906734e-08, -1.76635069e-07, 0.672674775, -0.739945829)
  1298. WedgePart77.Orientation = Vector3.new(0, -137.729996, -90)
  1299. WedgePart77.Position = Vector3.new(-127.98999, 8.14269066, 17.1423645)
  1300. WedgePart77.Rotation = Vector3.new(-180, -42.2700005, 90)
  1301. WedgePart77.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1302. WedgePart77.Size = Vector3.new(1, 1.39999998, 3.79999995)
  1303. WedgePart77.Anchored = true
  1304. WedgePart77.BottomSurface = Enum.SurfaceType.Smooth
  1305. WedgePart77.BrickColor = BrickColor.new("Really black")
  1306. WedgePart77.Material = Enum.Material.CorrodedMetal
  1307. WedgePart77.brickColor = BrickColor.new("Really black")
  1308. WedgePart77.FormFactor = Enum.FormFactor.Symmetric
  1309. WedgePart77.formFactor = Enum.FormFactor.Symmetric
  1310. WedgePart78.Parent = Model0
  1311. WedgePart78.CFrame = CFrame.new(-128.66626, 8.14261818, 15.1893301, 0, 0, -1, -1, 0, 0, 0, 1, 0)
  1312. WedgePart78.Orientation = Vector3.new(0, -90, -90)
  1313. WedgePart78.Position = Vector3.new(-128.66626, 8.14261818, 15.1893301)
  1314. WedgePart78.Rotation = Vector3.new(90, -90, 0)
  1315. WedgePart78.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1316. WedgePart78.Size = Vector3.new(1, 2, 2.20000005)
  1317. WedgePart78.Anchored = true
  1318. WedgePart78.BottomSurface = Enum.SurfaceType.Smooth
  1319. WedgePart78.BrickColor = BrickColor.new("Really black")
  1320. WedgePart78.Material = Enum.Material.CorrodedMetal
  1321. WedgePart78.brickColor = BrickColor.new("Really black")
  1322. WedgePart78.FormFactor = Enum.FormFactor.Symmetric
  1323. WedgePart78.formFactor = Enum.FormFactor.Symmetric
  1324. Part79.Parent = Model0
  1325. Part79.CFrame = CFrame.new(-125.728149, 8.1570797, 12.1893301, 0, 1, 0, 1, 0, 0, 0, 0, -1)
  1326. Part79.Orientation = Vector3.new(0, 180, 90)
  1327. Part79.Position = Vector3.new(-125.728149, 8.1570797, 12.1893301)
  1328. Part79.Rotation = Vector3.new(-180, 0, -90)
  1329. Part79.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1330. Part79.Size = Vector3.new(2, 2, 4)
  1331. Part79.Anchored = true
  1332. Part79.BottomSurface = Enum.SurfaceType.Smooth
  1333. Part79.BrickColor = BrickColor.new("Black")
  1334. Part79.Material = Enum.Material.CorrodedMetal
  1335. Part79.TopSurface = Enum.SurfaceType.Smooth
  1336. Part79.brickColor = BrickColor.new("Black")
  1337. Part79.FormFactor = Enum.FormFactor.Symmetric
  1338. Part79.formFactor = Enum.FormFactor.Symmetric
  1339. WedgePart80.Parent = Model0
  1340. WedgePart80.CFrame = CFrame.new(-134.128174, 3.40000343, 0.189330101, 1, 0, 0, 0, 0, 1, 0, -1, 0)
  1341. WedgePart80.Orientation = Vector3.new(-90, 0, 0)
  1342. WedgePart80.Position = Vector3.new(-134.128174, 3.40000343, 0.189330101)
  1343. WedgePart80.Rotation = Vector3.new(-90, 0, 0)
  1344. WedgePart80.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  1345. WedgePart80.Size = Vector3.new(10, 2, 2)
  1346. WedgePart80.Anchored = true
  1347. WedgePart80.BottomSurface = Enum.SurfaceType.Smooth
  1348. WedgePart80.BrickColor = BrickColor.new("Burnt Sienna")
  1349. WedgePart80.Material = Enum.Material.CorrodedMetal
  1350. WedgePart80.brickColor = BrickColor.new("Burnt Sienna")
  1351. WedgePart80.FormFactor = Enum.FormFactor.Symmetric
  1352. WedgePart80.formFactor = Enum.FormFactor.Symmetric
  1353. Part81.Parent = Model0
  1354. Part81.CFrame = CFrame.new(-141.507324, 6.91226768, 12.6893301, -1, 0, 0, 0, 0, -1, 0, -1, 0)
  1355. Part81.Orientation = Vector3.new(90, 180, 0)
  1356. Part81.Position = Vector3.new(-141.507324, 6.91226768, 12.6893301)
  1357. Part81.Rotation = Vector3.new(90, 0, -180)
  1358. Part81.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1359. Part81.Size = Vector3.new(0.780000031, 2.92999983, 0.830000043)
  1360. Part81.Anchored = true
  1361. Part81.BottomSurface = Enum.SurfaceType.Smooth
  1362. Part81.BrickColor = BrickColor.new("Really black")
  1363. Part81.TopSurface = Enum.SurfaceType.Smooth
  1364. Part81.brickColor = BrickColor.new("Really black")
  1365. Part81.FormFactor = Enum.FormFactor.Custom
  1366. Part81.formFactor = Enum.FormFactor.Custom
  1367. CylinderMesh82.Parent = Part81
  1368. CylinderMesh82.Scale = Vector3.new(0.970000267, 1, 1)
  1369. Part83.Parent = Model0
  1370. Part83.CFrame = CFrame.new(-134.128174, 5.39997673, 0.189330101, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1371. Part83.Orientation = Vector3.new(0, 180, 0)
  1372. Part83.Position = Vector3.new(-134.128174, 5.39997673, 0.189330101)
  1373. Part83.Rotation = Vector3.new(-180, 0, -180)
  1374. Part83.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  1375. Part83.Size = Vector3.new(10, 2, 2)
  1376. Part83.Anchored = true
  1377. Part83.BottomSurface = Enum.SurfaceType.Smooth
  1378. Part83.BrickColor = BrickColor.new("Burnt Sienna")
  1379. Part83.Material = Enum.Material.CorrodedMetal
  1380. Part83.TopSurface = Enum.SurfaceType.Smooth
  1381. Part83.brickColor = BrickColor.new("Burnt Sienna")
  1382. Part83.FormFactor = Enum.FormFactor.Symmetric
  1383. Part83.formFactor = Enum.FormFactor.Symmetric
  1384. Tool84.Name = "Pistol"
  1385. Tool84.Parent = Model0
  1386. Tool84.TextureId = "http://www.roblox.com/asset/?id=72012902"
  1387. Tool84.Grip = CFrame.new(0.0500000007, -0.5, -0.25, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  1388. Tool84.GripForward = Vector3.new(-0, 1, -0)
  1389. Tool84.GripPos = Vector3.new(0.0500000007, -0.5, -0.25)
  1390. Tool84.GripUp = Vector3.new(0, 0, 1)
  1391. Part85.Name = "Handle"
  1392. Part85.Parent = Tool84
  1393. Part85.CFrame = CFrame.new(-143.006348, 8.41217995, 14.9395742, -0.999994874, 5.24172401e-06, 8.33983904e-07, -4.84305929e-10, -3.75508898e-06, 0.999998569, 5.24201732e-06, 0.999999523, 3.75548211e-06)
  1394. Part85.Orientation = Vector3.new(-89.9000015, 12.5200005, -179.990005)
  1395. Part85.Position = Vector3.new(-143.006348, 8.41217995, 14.9395742)
  1396. Part85.Rotation = Vector3.new(-90, 0, -180)
  1397. Part85.Color = Color3.new(1, 1, 0.8)
  1398. Part85.Transparency = 1
  1399. Part85.Size = Vector3.new(1, 1, 1)
  1400. Part85.Anchored = true
  1401. Part85.BrickColor = BrickColor.new("Pastel yellow")
  1402. Part85.CanCollide = false
  1403. Part85.brickColor = BrickColor.new("Pastel yellow")
  1404. Part85.FormFactor = Enum.FormFactor.Symmetric
  1405. Part85.formFactor = Enum.FormFactor.Symmetric
  1406. CFrameValue86.Name = "qRelativeCFrameWeldValue"
  1407. CFrameValue86.Parent = Part85
  1408. CFrameValue86.Value = CFrame.new(3.88675499, -3.96889496, 2.00182533, -0.707507908, -0.706699848, 9.00280611e-07, 0.706694365, -0.707513392, 1.22883444e-06, -2.68219736e-07, 1.45493391e-06, 0.999996245)
  1409. LocalScript87.Name = "Local Gui"
  1410. LocalScript87.Parent = Tool84
  1411. table.insert(cors,sandbox(LocalScript87,function()
  1412. local Tool = script.Parent;
  1413.  
  1414. enabled = true
  1415. function onButton1Down(mouse)
  1416. if not enabled then
  1417. return
  1418. end
  1419.  
  1420. enabled = false
  1421. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  1422.  
  1423. wait(0.2)
  1424. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  1425. enabled = true
  1426.  
  1427. end
  1428.  
  1429. function onEquippedLocal(mouse)
  1430.  
  1431. if mouse == nil then
  1432. print("Mouse not found")
  1433. return
  1434. end
  1435.  
  1436. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  1437. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  1438. end
  1439.  
  1440.  
  1441. Tool.Equipped:connect(onEquippedLocal)
  1442.  
  1443. end))
  1444. Script88.Name = "LaserBlast"
  1445. Script88.Parent = Tool84
  1446. table.insert(cors,sandbox(Script88,function()
  1447. -- 42672473 is sorry sound
  1448. -- 42672581 is wind-knocked-out sound
  1449.  
  1450. ball = script.Parent
  1451. damage = 150
  1452.  
  1453. HitSound = Instance.new("Sound")
  1454. HitSound.Name = "HitSound"
  1455. HitSound.SoundId = "http://www.roblox.com/asset/?id=2697294"
  1456. HitSound.Parent = ball
  1457. HitSound.Volume = 1
  1458.  
  1459. PersonHitSound = Instance.new("Sound")
  1460. PersonHitSound.Name = "PersonHitSound"
  1461. --PersonHitSound.SoundId = "http://www.roblox.com/asset/?id=2697294"
  1462. PersonHitSound.SoundId = "http://www.roblox.com/asset/?id=2697294" -- grunt sound
  1463. PersonHitSound.Volume = 1.0
  1464. PersonHitSound.Pitch = 0.8
  1465. PersonHitSound.Parent = ball
  1466.  
  1467. db = false
  1468.  
  1469. target = ball:findFirstChild("Target")
  1470. if target ~= nil then
  1471. if db == false then
  1472. local humanoid = target.Value:findFirstChild("Humanoid")
  1473.  
  1474. if humanoid ~= nil then
  1475. humanoid:TakeDamage(damage)
  1476.  
  1477. PersonHitSound:Play()
  1478. end
  1479.  
  1480. ball.Anchored = true
  1481. end
  1482. end
  1483.  
  1484. function tagHumanoid(humanoid)
  1485. -- todo: make tag expire
  1486. local tag = ball:findFirstChild("creator")
  1487. if tag ~= nil then
  1488. local new_tag = tag:clone()
  1489. new_tag.Parent = humanoid
  1490. end
  1491. end
  1492.  
  1493.  
  1494. function untagHumanoid(humanoid)
  1495. if humanoid ~= nil then
  1496. local tag = humanoid:findFirstChild("creator")
  1497. if tag ~= nil then
  1498. tag.Parent = nil
  1499. end
  1500. end
  1501. end
  1502.  
  1503. --connection = ball.Touched:connect(onTouched)
  1504.  
  1505. for i = 1,5 do
  1506. ball.Transparency = ball.Transparency + 0.2
  1507. ball.Mesh.Scale = ball.Mesh.Scale + Vector3.new(0.5,0.5,0.5)
  1508. wait(0.1)
  1509. end
  1510.  
  1511. --ball.SparkSound.Looped = false
  1512. --ball.SparkSound:Stop()
  1513. ball.Parent = nil
  1514. end))
  1515. Script88.Disabled = true
  1516. SpecialMesh89.Parent = Tool84
  1517. SpecialMesh89.Scale = Vector3.new(0.25, 0.25, 0.25)
  1518. SpecialMesh89.MeshType = Enum.MeshType.Sphere
  1519. Script90.Name = "ProjectileTimeLife"
  1520. Script90.Parent = Tool84
  1521. table.insert(cors,sandbox(Script90,function()
  1522. script.Parent.Transparency = 0.2
  1523. wait(0.025)
  1524. script.Parent.Transparency = 0.4
  1525. wait(0.025)
  1526. script.Parent.Transparency = 0.6
  1527. wait(0.025)
  1528. script.Parent.Transparency = 0.8
  1529. wait(0.025)
  1530. script.Parent:remove()
  1531. end))
  1532. Script90.Disabled = true
  1533. Script91.Name = "RayGun"
  1534. Script91.Parent = Tool84
  1535. table.insert(cors,sandbox(Script91,function()
  1536. local Tool = script.Parent;
  1537.  
  1538. function wait(TimeToWait)
  1539. if TimeToWait ~= nil then
  1540. local TotalTime = 0
  1541. TotalTime = TotalTime + game:GetService("RunService").Heartbeat:wait()
  1542. while TotalTime < TimeToWait do
  1543. TotalTime = TotalTime + game:GetService("RunService").Heartbeat:wait()
  1544. end
  1545. else
  1546. game:GetService("RunService").Heartbeat:wait()
  1547. end
  1548. end
  1549.  
  1550. enabled = true
  1551.  
  1552. --local spark = Instance.new("Sparkles")
  1553. --spark.Color = Color3.new(0,1,0)
  1554.  
  1555. function fire(v)
  1556.  
  1557. local vCharacter = Tool.Parent
  1558. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  1559.  
  1560. local missile = Instance.new("Part")
  1561.  
  1562.  
  1563. --spark:Clone().Parent = missile
  1564.  
  1565. local spawnPos = Tool.Parent.Target.Value.Position
  1566.  
  1567.  
  1568. --spawnPos = spawnPos + (v * 10)
  1569.  
  1570.  
  1571. missile.Position = spawnPos
  1572. missile.Size = Vector3.new(.2,.2,.2)
  1573. --missile.Velocity = v * 100
  1574. missile.BrickColor = BrickColor.new("Bright yellow")
  1575. missile.Shape = 0
  1576. missile.BottomSurface = 0
  1577. missile.TopSurface = 0
  1578. missile.Name = "Spark"
  1579. missile.Reflectance = 0
  1580. missile.Elasticity = 1
  1581. missile.Anchored = true
  1582. missile.CanCollide = false
  1583. Tool.Mesh:clone().Parent = missile
  1584.  
  1585.  
  1586. local force = Instance.new("BodyForce")
  1587. force.force = Vector3.new(0,99,0)
  1588. force.Parent = missile
  1589.  
  1590. local creator_tag = Instance.new("ObjectValue")
  1591. creator_tag.Value = vPlayer
  1592. creator_tag.Name = "creator"
  1593. creator_tag.Parent = missile
  1594.  
  1595. local new_script = script.Parent.LaserBlast:clone()
  1596. new_script.Disabled = false
  1597. new_script.Parent = missile
  1598.  
  1599. local target = Instance.new("ObjectValue")
  1600. target.Name = "Target"
  1601. target.Value = Tool.Parent.Target.Value.Parent
  1602. target.Parent = missile
  1603.  
  1604.  
  1605. Hit = missile.CFrame
  1606. local Projectile = Instance.new("Part")
  1607. Projectile.Name = "Trail"
  1608. local Place0 = Tool["Handle"].CFrame
  1609. Projectile.formFactor = 0
  1610. Projectile.Size = Vector3.new(3,3,(Place0.p - Hit.p).magnitude)
  1611. Projectile.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p)
  1612. Projectile.Parent = Workspace
  1613. Projectile.BrickColor = missile.BrickColor
  1614. Projectile.Anchored = true
  1615. Projectile.CanCollide = false
  1616.  
  1617. local new_script2 = script.Parent.ProjectileTimeLife:clone()
  1618. new_script2.Disabled = false
  1619. new_script2.Parent = Projectile
  1620.  
  1621. me2 = Instance.new("BlockMesh")
  1622. me2.Scale = Vector3.new(0.25,0.25,1)
  1623. me2.Parent = Projectile
  1624.  
  1625. --Tool.Handle.GruntSound:Clone().Parent = missile
  1626.  
  1627. missile.Parent = Workspace
  1628. -- wait(.15)
  1629. --PewPew:Stop()
  1630. end
  1631.  
  1632.  
  1633.  
  1634. function gunUp()
  1635. Tool.GripPos = Vector3.new(0,-0.5,0.5)
  1636. end
  1637.  
  1638. function gunOut()
  1639. Tool.GripPos = Vector3.new(0,-0.5,0.75)
  1640. end
  1641.  
  1642. function isTurbo(character)
  1643. return character:FindFirstChild("BoltHelm") ~= nil
  1644. end
  1645.  
  1646.  
  1647. function onActivated()
  1648. if not enabled then
  1649. return
  1650. end
  1651.  
  1652. enabled = false
  1653.  
  1654.  
  1655. local character = Tool.Parent;
  1656. local humanoid = character.Zombie
  1657. if humanoid == nil then
  1658. print("Zombie not found")
  1659. return
  1660. end
  1661.  
  1662. local targetPos = Tool.Parent.Target.Value.Position
  1663. local lookAt = (targetPos - character.Head.Position).unit
  1664.  
  1665. local reload = .0
  1666. --if (isTurbo(character)) then
  1667. -- reload = .0
  1668. -- print("turbo")
  1669. --end
  1670.  
  1671.  
  1672. local PewPew = Tool.Handle:FindFirstChild("PewPew")
  1673.  
  1674. if (PewPew == nil) then
  1675. PewPew = Instance.new("Sound")
  1676. PewPew.Name = "PewPew"
  1677. PewPew.SoundId = "http://www.roblox.com/asset/?id=2697294"
  1678. PewPew.Parent = Tool.Handle
  1679. PewPew.Volume = 1
  1680. --PewPew.Pitch = 0.8
  1681. end
  1682.  
  1683. --PewPew:Play()
  1684. for i =1,3 do
  1685.  
  1686. local spark = Instance.new("Fire")
  1687. spark.Color = Color3.new(0,0,1)
  1688. spark.SecondaryColor = Color3.new(0,0,1)
  1689. spark.Size = 7.9
  1690. spark.Heat = 0
  1691. spark.Parent = Tool.Handle
  1692.  
  1693. --gunUp()
  1694. fire(lookAt,humanoid)
  1695. PewPew:Play()
  1696. wait(0.0)
  1697.  
  1698. spark:remove()
  1699. end
  1700. --wait(reload)
  1701. --gunOut()
  1702. --wait(reload)
  1703.  
  1704. wait(0)
  1705.  
  1706. enabled = true
  1707.  
  1708. end
  1709.  
  1710. function onEquipped()
  1711. --Tool.Handle.EquipSound:play()
  1712. end
  1713.  
  1714. Tool.Activated:connect(onActivated)
  1715. Tool.Equipped:connect(onEquipped)
  1716.  
  1717. while true do
  1718. if Tool.Parent.Attack.Value == true then
  1719. onActivated()
  1720. end
  1721. wait()
  1722. end
  1723.  
  1724. end))
  1725. Script92.Name = "Welding"
  1726. Script92.Parent = Tool84
  1727. table.insert(cors,sandbox(Script92,function()
  1728. function Weld(x,y)
  1729. local W = Instance.new("Weld")
  1730. W.Part0 = x
  1731. W.Part1 = y
  1732. local CJ = CFrame.new(x.Position)
  1733. local C0 = x.CFrame:inverse()*CJ
  1734. local C1 = y.CFrame:inverse()*CJ
  1735. W.C0 = C0
  1736. W.C1 = C1
  1737. W.Parent = x
  1738. end
  1739.  
  1740. function Get(A)
  1741. if A.className == "Part" then
  1742. Weld(script.Parent.Handle, A)
  1743. A.Anchored = false
  1744. else
  1745. local C = A:GetChildren()
  1746. for i=1, #C do
  1747. Get(C[i])
  1748. end
  1749. end
  1750. end
  1751.  
  1752. function Finale()
  1753. Get(script.Parent)
  1754. end
  1755.  
  1756. script.Parent.Equipped:connect(Finale)
  1757. script.Parent.Unequipped:connect(Finale)
  1758. Finale()
  1759. end))
  1760. Script93.Name = "LaserBlast2"
  1761. Script93.Parent = Tool84
  1762. table.insert(cors,sandbox(Script93,function()
  1763. -- 42672473 is sorry sound
  1764. -- 42672581 is wind-knocked-out sound
  1765.  
  1766. ball = script.Parent
  1767. damage = 150
  1768.  
  1769. HitSound = Instance.new("Sound")
  1770. HitSound.Name = "HitSound"
  1771. HitSound.SoundId = "http://www.roblox.com/asset/?id=2697294"
  1772. HitSound.Parent = ball
  1773. HitSound.Volume = 1
  1774.  
  1775. PersonHitSound = Instance.new("Sound")
  1776. PersonHitSound.Name = "PersonHitSound"
  1777. --PersonHitSound.SoundId = "http://www.roblox.com/asset/?id=2697294"
  1778. PersonHitSound.SoundId = "http://www.roblox.com/asset/?id=2697294" -- grunt sound
  1779. PersonHitSound.Volume = 1.0
  1780. PersonHitSound.Pitch = 0.8
  1781. PersonHitSound.Parent = ball
  1782.  
  1783. db = false
  1784.  
  1785. function onTouched(hit)
  1786. if db == false then
  1787. local humanoid = hit.Parent:findFirstChild("Humanoid")
  1788.  
  1789. if humanoid ~= nil then
  1790. --tagHumanoid(humanoid)
  1791. humanoid:TakeDamage(damage)
  1792. db = true
  1793. --untagHumanoid(humanoid)
  1794.  
  1795. --soundSelector = math.random()*100
  1796. PersonHitSound:Play()
  1797. end
  1798.  
  1799. ball.Anchored = true
  1800.  
  1801. --[[
  1802. local spark = Instance.new("Fire")
  1803. spark.Color = Color3.new(1,1,0)
  1804. spark.SecondaryColor = Color3.new(1,1,0)
  1805. spark.Size = 7.5
  1806. spark.Heat = 0
  1807. spark.Parent = ball
  1808. HitSound:Play()
  1809. wait(0.05)
  1810. ball.Parent = nil
  1811. ]]
  1812. end
  1813. end
  1814.  
  1815. function tagHumanoid(humanoid)
  1816. -- todo: make tag expire
  1817. local tag = ball:findFirstChild("creator")
  1818. if tag ~= nil then
  1819. local new_tag = tag:clone()
  1820. new_tag.Parent = humanoid
  1821. end
  1822. end
  1823.  
  1824.  
  1825. function untagHumanoid(humanoid)
  1826. if humanoid ~= nil then
  1827. local tag = humanoid:findFirstChild("creator")
  1828. if tag ~= nil then
  1829. tag.Parent = nil
  1830. end
  1831. end
  1832. end
  1833.  
  1834. --connection = ball.Touched:connect(onTouched)
  1835.  
  1836. for i = 1,5 do
  1837. ball.Transparency = ball.Transparency + 0.2
  1838. ball.Mesh.Scale = ball.Mesh.Scale + Vector3.new(0.5,0.5,0.5)
  1839. wait(0.1)
  1840. end
  1841.  
  1842. --ball.SparkSound.Looped = false
  1843. --ball.SparkSound:Stop()
  1844. ball.Parent = nil
  1845. end))
  1846. Script93.Disabled = true
  1847. Part94.Parent = Model0
  1848. Part94.CFrame = CFrame.new(-141.507324, 6.91226768, 15.4893789, -1, 0, 0, 0, 0, -1, 0, -1, 0)
  1849. Part94.Orientation = Vector3.new(90, 180, 0)
  1850. Part94.Position = Vector3.new(-141.507324, 6.91226768, 15.4893789)
  1851. Part94.Rotation = Vector3.new(90, 0, -180)
  1852. Part94.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1853. Part94.Size = Vector3.new(0.780000031, 2.12999988, 0.830000043)
  1854. Part94.Anchored = true
  1855. Part94.BottomSurface = Enum.SurfaceType.Smooth
  1856. Part94.BrickColor = BrickColor.new("Really black")
  1857. Part94.TopSurface = Enum.SurfaceType.Smooth
  1858. Part94.brickColor = BrickColor.new("Really black")
  1859. Part94.FormFactor = Enum.FormFactor.Custom
  1860. Part94.formFactor = Enum.FormFactor.Custom
  1861. CylinderMesh95.Parent = Part94
  1862. CylinderMesh95.Scale = Vector3.new(0.970000267, 1, 1)
  1863. Part96.Parent = Model0
  1864. Part96.CFrame = CFrame.new(-143.507324, 6.91226768, 15.4893789, -1, 0, 0, 0, 0, -1, 0, -1, 0)
  1865. Part96.Orientation = Vector3.new(90, 180, 0)
  1866. Part96.Position = Vector3.new(-143.507324, 6.91226768, 15.4893789)
  1867. Part96.Rotation = Vector3.new(90, 0, -180)
  1868. Part96.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1869. Part96.Size = Vector3.new(0.780000031, 2.12999988, 0.830000043)
  1870. Part96.Anchored = true
  1871. Part96.BottomSurface = Enum.SurfaceType.Smooth
  1872. Part96.BrickColor = BrickColor.new("Really black")
  1873. Part96.TopSurface = Enum.SurfaceType.Smooth
  1874. Part96.brickColor = BrickColor.new("Really black")
  1875. Part96.FormFactor = Enum.FormFactor.Custom
  1876. Part96.formFactor = Enum.FormFactor.Custom
  1877. CylinderMesh97.Parent = Part96
  1878. CylinderMesh97.Scale = Vector3.new(0.970000267, 1, 1)
  1879. WedgePart98.Parent = Model0
  1880. WedgePart98.CFrame = CFrame.new(-127.12793, 1.50001335, -1.01068211, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  1881. WedgePart98.Orientation = Vector3.new(0, 0, 180)
  1882. WedgePart98.Position = Vector3.new(-127.12793, 1.50001335, -1.01068211)
  1883. WedgePart98.Rotation = Vector3.new(0, 0, -180)
  1884. WedgePart98.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1885. WedgePart98.Size = Vector3.new(4, 3, 4)
  1886. WedgePart98.Anchored = true
  1887. WedgePart98.BottomSurface = Enum.SurfaceType.Smooth
  1888. WedgePart98.BrickColor = BrickColor.new("Black")
  1889. WedgePart98.brickColor = BrickColor.new("Black")
  1890. WedgePart98.FormFactor = Enum.FormFactor.Symmetric
  1891. WedgePart98.formFactor = Enum.FormFactor.Symmetric
  1892. Part99.Parent = Model0
  1893. Part99.CFrame = CFrame.new(-134.128174, 5.39997673, 10.1893301, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1894. Part99.Orientation = Vector3.new(0, 180, 0)
  1895. Part99.Position = Vector3.new(-134.128174, 5.39997673, 10.1893301)
  1896. Part99.Rotation = Vector3.new(-180, 0, -180)
  1897. Part99.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  1898. Part99.Size = Vector3.new(10, 2, 2)
  1899. Part99.Anchored = true
  1900. Part99.BottomSurface = Enum.SurfaceType.Smooth
  1901. Part99.BrickColor = BrickColor.new("Burnt Sienna")
  1902. Part99.Material = Enum.Material.CorrodedMetal
  1903. Part99.TopSurface = Enum.SurfaceType.Smooth
  1904. Part99.brickColor = BrickColor.new("Burnt Sienna")
  1905. Part99.FormFactor = Enum.FormFactor.Symmetric
  1906. Part99.formFactor = Enum.FormFactor.Symmetric
  1907. Part100.Parent = Model0
  1908. Part100.CFrame = CFrame.new(-127.128174, 4.00000191, 5.98931789, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1909. Part100.Orientation = Vector3.new(0, 90, 0)
  1910. Part100.Position = Vector3.new(-127.128174, 4.00000191, 5.98931789)
  1911. Part100.Rotation = Vector3.new(0, 90, 0)
  1912. Part100.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  1913. Part100.Size = Vector3.new(10, 2, 4)
  1914. Part100.Anchored = true
  1915. Part100.BottomSurface = Enum.SurfaceType.Smooth
  1916. Part100.BrickColor = BrickColor.new("Burnt Sienna")
  1917. Part100.Material = Enum.Material.CorrodedMetal
  1918. Part100.TopSurface = Enum.SurfaceType.Smooth
  1919. Part100.brickColor = BrickColor.new("Burnt Sienna")
  1920. Part100.FormFactor = Enum.FormFactor.Symmetric
  1921. Part100.formFactor = Enum.FormFactor.Symmetric
  1922. WedgePart101.Parent = Model0
  1923. WedgePart101.CFrame = CFrame.new(-127.12793, 4.00000191, -1.01068211, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1924. WedgePart101.Position = Vector3.new(-127.12793, 4.00000191, -1.01068211)
  1925. WedgePart101.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  1926. WedgePart101.Size = Vector3.new(4, 2, 4)
  1927. WedgePart101.Anchored = true
  1928. WedgePart101.BottomSurface = Enum.SurfaceType.Smooth
  1929. WedgePart101.BrickColor = BrickColor.new("Burnt Sienna")
  1930. WedgePart101.Material = Enum.Material.CorrodedMetal
  1931. WedgePart101.brickColor = BrickColor.new("Burnt Sienna")
  1932. WedgePart101.FormFactor = Enum.FormFactor.Symmetric
  1933. WedgePart101.formFactor = Enum.FormFactor.Symmetric
  1934. WedgePart102.Parent = Model0
  1935. WedgePart102.CFrame = CFrame.new(-141.12793, 1.50001335, -1.01068211, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  1936. WedgePart102.Orientation = Vector3.new(0, 0, 180)
  1937. WedgePart102.Position = Vector3.new(-141.12793, 1.50001335, -1.01068211)
  1938. WedgePart102.Rotation = Vector3.new(0, 0, -180)
  1939. WedgePart102.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1940. WedgePart102.Size = Vector3.new(4, 3, 4)
  1941. WedgePart102.Anchored = true
  1942. WedgePart102.BottomSurface = Enum.SurfaceType.Smooth
  1943. WedgePart102.BrickColor = BrickColor.new("Black")
  1944. WedgePart102.brickColor = BrickColor.new("Black")
  1945. WedgePart102.FormFactor = Enum.FormFactor.Symmetric
  1946. WedgePart102.formFactor = Enum.FormFactor.Symmetric
  1947. Part103.Parent = Model0
  1948. Part103.CFrame = CFrame.new(-141.128052, 1.50001335, 6.98931789, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1949. Part103.Orientation = Vector3.new(0, 90, 0)
  1950. Part103.Position = Vector3.new(-141.128052, 1.50001335, 6.98931789)
  1951. Part103.Rotation = Vector3.new(0, 90, 0)
  1952. Part103.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1953. Part103.Size = Vector3.new(12, 3, 4)
  1954. Part103.Anchored = true
  1955. Part103.BottomSurface = Enum.SurfaceType.Smooth
  1956. Part103.BrickColor = BrickColor.new("Black")
  1957. Part103.TopSurface = Enum.SurfaceType.Smooth
  1958. Part103.brickColor = BrickColor.new("Black")
  1959. Part103.FormFactor = Enum.FormFactor.Symmetric
  1960. Part103.formFactor = Enum.FormFactor.Symmetric
  1961. WedgePart104.Parent = Model0
  1962. WedgePart104.CFrame = CFrame.new(-141.12793, 1.50001335, 14.9893179, 1, 0, 1.77635684e-15, 0, -1, 2.98023224e-08, 8.8817842e-16, -2.98023224e-08, -1)
  1963. WedgePart104.Orientation = Vector3.new(0, 180, 180)
  1964. WedgePart104.Position = Vector3.new(-141.12793, 1.50001335, 14.9893179)
  1965. WedgePart104.Rotation = Vector3.new(-180, 0, 0)
  1966. WedgePart104.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1967. WedgePart104.Size = Vector3.new(4, 3, 4)
  1968. WedgePart104.Anchored = true
  1969. WedgePart104.BottomSurface = Enum.SurfaceType.Smooth
  1970. WedgePart104.BrickColor = BrickColor.new("Black")
  1971. WedgePart104.brickColor = BrickColor.new("Black")
  1972. WedgePart104.FormFactor = Enum.FormFactor.Symmetric
  1973. WedgePart104.formFactor = Enum.FormFactor.Symmetric
  1974. WedgePart105.Parent = Model0
  1975. WedgePart105.CFrame = CFrame.new(-134.128296, 3.40000343, 10.1893301, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  1976. WedgePart105.Orientation = Vector3.new(-90, -180, 0)
  1977. WedgePart105.Position = Vector3.new(-134.128296, 3.40000343, 10.1893301)
  1978. WedgePart105.Rotation = Vector3.new(-90, 0, -180)
  1979. WedgePart105.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  1980. WedgePart105.Size = Vector3.new(10, 2, 2)
  1981. WedgePart105.Anchored = true
  1982. WedgePart105.BottomSurface = Enum.SurfaceType.Smooth
  1983. WedgePart105.BrickColor = BrickColor.new("Burnt Sienna")
  1984. WedgePart105.Material = Enum.Material.CorrodedMetal
  1985. WedgePart105.brickColor = BrickColor.new("Burnt Sienna")
  1986. WedgePart105.FormFactor = Enum.FormFactor.Symmetric
  1987. WedgePart105.formFactor = Enum.FormFactor.Symmetric
  1988. WedgePart106.Parent = Model0
  1989. WedgePart106.CFrame = CFrame.new(-141.12793, 4.00000191, 13.9893179, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1990. WedgePart106.Orientation = Vector3.new(0, 180, 0)
  1991. WedgePart106.Position = Vector3.new(-141.12793, 4.00000191, 13.9893179)
  1992. WedgePart106.Rotation = Vector3.new(-180, 0, -180)
  1993. WedgePart106.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  1994. WedgePart106.Size = Vector3.new(4, 2, 6)
  1995. WedgePart106.Anchored = true
  1996. WedgePart106.BottomSurface = Enum.SurfaceType.Smooth
  1997. WedgePart106.BrickColor = BrickColor.new("Burnt Sienna")
  1998. WedgePart106.Material = Enum.Material.CorrodedMetal
  1999. WedgePart106.brickColor = BrickColor.new("Burnt Sienna")
  2000. WedgePart106.FormFactor = Enum.FormFactor.Symmetric
  2001. WedgePart106.formFactor = Enum.FormFactor.Symmetric
  2002. Part107.Parent = Model0
  2003. Part107.CFrame = CFrame.new(-127.128174, 1.50001335, 6.98931789, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2004. Part107.Orientation = Vector3.new(0, 90, 0)
  2005. Part107.Position = Vector3.new(-127.128174, 1.50001335, 6.98931789)
  2006. Part107.Rotation = Vector3.new(0, 90, 0)
  2007. Part107.Color = Color3.new(0.105882, 0.164706, 0.207843)
  2008. Part107.Size = Vector3.new(12, 3, 4)
  2009. Part107.Anchored = true
  2010. Part107.BottomSurface = Enum.SurfaceType.Smooth
  2011. Part107.BrickColor = BrickColor.new("Black")
  2012. Part107.TopSurface = Enum.SurfaceType.Smooth
  2013. Part107.brickColor = BrickColor.new("Black")
  2014. Part107.FormFactor = Enum.FormFactor.Symmetric
  2015. Part107.formFactor = Enum.FormFactor.Symmetric
  2016. WedgePart108.Parent = Model0
  2017. WedgePart108.CFrame = CFrame.new(-127.12793, 4.00000191, 13.9893179, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2018. WedgePart108.Orientation = Vector3.new(0, 180, 0)
  2019. WedgePart108.Position = Vector3.new(-127.12793, 4.00000191, 13.9893179)
  2020. WedgePart108.Rotation = Vector3.new(-180, 0, -180)
  2021. WedgePart108.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  2022. WedgePart108.Size = Vector3.new(4, 2, 6)
  2023. WedgePart108.Anchored = true
  2024. WedgePart108.BottomSurface = Enum.SurfaceType.Smooth
  2025. WedgePart108.BrickColor = BrickColor.new("Burnt Sienna")
  2026. WedgePart108.Material = Enum.Material.CorrodedMetal
  2027. WedgePart108.brickColor = BrickColor.new("Burnt Sienna")
  2028. WedgePart108.FormFactor = Enum.FormFactor.Symmetric
  2029. WedgePart108.formFactor = Enum.FormFactor.Symmetric
  2030. WedgePart109.Parent = Model0
  2031. WedgePart109.CFrame = CFrame.new(-127.12793, 1.50001335, 14.9893179, 1, 0, 1.77635684e-15, 0, -1, 2.98023224e-08, 8.8817842e-16, -2.98023224e-08, -1)
  2032. WedgePart109.Orientation = Vector3.new(0, 180, 180)
  2033. WedgePart109.Position = Vector3.new(-127.12793, 1.50001335, 14.9893179)
  2034. WedgePart109.Rotation = Vector3.new(-180, 0, 0)
  2035. WedgePart109.Color = Color3.new(0.105882, 0.164706, 0.207843)
  2036. WedgePart109.Size = Vector3.new(4, 3, 4)
  2037. WedgePart109.Anchored = true
  2038. WedgePart109.BottomSurface = Enum.SurfaceType.Smooth
  2039. WedgePart109.BrickColor = BrickColor.new("Black")
  2040. WedgePart109.brickColor = BrickColor.new("Black")
  2041. WedgePart109.FormFactor = Enum.FormFactor.Symmetric
  2042. WedgePart109.formFactor = Enum.FormFactor.Symmetric
  2043. BoolValue110.Name = "Attack"
  2044. BoolValue110.Parent = Model0
  2045. BoolValue111.Name = "Attack"
  2046. BoolValue111.Parent = Model0
  2047. Script112.Name = "ChaseScript"
  2048. Script112.Parent = Model0
  2049. table.insert(cors,sandbox(Script112,function()
  2050. wait(1)
  2051. zombieParent = false
  2052.  
  2053. while zombieParent == false do
  2054.  
  2055. wait()
  2056. if script.Parent.Name == "Mecha Tanker DX-5" then
  2057. zombieParent = true
  2058. end
  2059.  
  2060. end
  2061.  
  2062. local larm = script.Parent:FindFirstChild("Left Arm")
  2063. local rarm = script.Parent:FindFirstChild("Right Arm")
  2064. local waitTimer = 0
  2065.  
  2066. function findNearestTorso(pos)
  2067. local list = game.Workspace:children()
  2068. local torso = nil
  2069. local dist = 10000
  2070. local temp = nil
  2071. local human = nil
  2072. local temp2 = nil
  2073. for x = 1, #list do
  2074. temp2 = list[x]
  2075. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  2076. temp = temp2:findFirstChild("Torso")
  2077. human = temp2:findFirstChild("Zombie")
  2078. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  2079. if (temp.Position - pos).magnitude < dist then
  2080. torso = temp
  2081. script.Parent.Target.Value = temp
  2082. dist = (temp.Position - pos).magnitude
  2083.  
  2084. if human.Health >= 1 then
  2085. script.Parent.Range.Value = true
  2086. else
  2087. script.Parent.Range.Value = false
  2088. end
  2089. end
  2090. end
  2091. if dist < 75 then
  2092. script.Parent.Attack.Value = true
  2093. script.Parent.Zombie.WalkSpeed = 0.05
  2094. else
  2095. script.Parent.Attack.Value = false
  2096. script.Parent.Zombie.WalkSpeed = 16
  2097. end
  2098. end
  2099. end
  2100. return torso
  2101. end
  2102.  
  2103. function Sit()
  2104. if script.Parent.Zombie.Sit == true then
  2105. script.Parent.Zombie.Jump = true
  2106. print("Anti Seat Putter!!!")
  2107. end
  2108. end
  2109.  
  2110. script.Parent.Zombie.Changed:connect(Sit)
  2111.  
  2112. while true do
  2113. wait()
  2114. local target = findNearestTorso(script.Parent.Torso.Position)
  2115. if target ~= nil then
  2116. rx = 0
  2117. ry = 0
  2118. rz = 0
  2119. script.Parent.Zombie:MoveTo(target.Position+Vector3.new(rx,ry,rz), target)
  2120. else
  2121. script.Parent.Range.Value = false
  2122. script.Parent.Attack.Value = false
  2123. end
  2124. end
  2125.  
  2126. end))
  2127. Script113.Name = "ChaseScript"
  2128. Script113.Parent = Model0
  2129. table.insert(cors,sandbox(Script113,function()
  2130. wait(1)
  2131. zombieParent = false
  2132.  
  2133. while zombieParent == false do
  2134.  
  2135. wait()
  2136. if script.Parent.Name == "Mecha Tanker DX-5" or script.Parent.Name == "Giant Noob" then
  2137. zombieParent = true
  2138. end
  2139.  
  2140. end
  2141.  
  2142. local larm = script.Parent:FindFirstChild("Left Arm")
  2143. local rarm = script.Parent:FindFirstChild("Right Arm")
  2144. local waitTimer = 0
  2145.  
  2146. function findNearestTorso(pos)
  2147. local list = game.Workspace:children()
  2148. local torso = nil
  2149. local dist = 1000000
  2150. local temp = nil
  2151. local human = nil
  2152. local temp2 = nil
  2153. for x = 1, #list do
  2154. temp2 = list[x]
  2155. if (temp2.className == "Model") and (temp2 ~= script.Parent) and (temp2.Name ~= "Noob") then
  2156. temp = temp2:findFirstChild("Torso")
  2157. human = temp2:findFirstChild("Humanoid")
  2158. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) and (human.Parent.Name ~= script.Parent.Owner.Value) and (human.Parent.Name ~= "Giant Noob") then
  2159. if (temp.Position - pos).magnitude < dist then
  2160. torso = temp
  2161. script.Parent.Target.Value = temp
  2162. dist = (temp.Position - pos).magnitude
  2163.  
  2164. if human.Health >= 1 then
  2165. script.Parent.Range.Value = true
  2166. else
  2167. script.Parent.Range.Value = false
  2168. end
  2169. end
  2170. end
  2171. if dist < 200 then
  2172. script.Parent.Attack.Value = true
  2173. script.Parent.Zombie.WalkSpeed = 10
  2174. elseif dist > 200 then
  2175. script.Parent.Attack.Value = false
  2176. script.Parent.Zombie.WalkSpeed = 10
  2177. elseif dist > 5 and dist < 50 then
  2178. script.Parent.Attack.Value = false
  2179. script.Parent.Zombie.WalkSpeed = 10
  2180. end
  2181. end
  2182. end
  2183. return torso
  2184. end
  2185.  
  2186. db = false
  2187. function Hit(hit)
  2188. if db == false then
  2189. kk = script.Parent:FindFirstChild("ClassicPartiron")
  2190. if script.Parent.Name == "Noob" then
  2191. if hit.Parent == nil then return end
  2192. local human = hit.Parent:FindFirstChild("Humanoid")
  2193. if human ~= nil and human.Parent.Name ~= script.Parent.Owner.Value and waitTimer == 0 and human.Parent.Name ~= "Noob" and human.Parent.Name ~= "Giant Noob" then
  2194. human:TakeDamage(50)
  2195. db = true
  2196. wait(0.5)
  2197. db = false
  2198. end
  2199. elseif script.Parent.Name == "Giant Noob" then
  2200. if hit.Parent == nil then return end
  2201. local human = hit.Parent:FindFirstChild("Humanoid")
  2202. if human ~= nil and human.Parent.Name ~= script.Parent.Owner.Value and waitTimer == 0 and human.Parent.Name ~= "Noob" and human.Parent.Name ~= "Giant Noob" then
  2203. human:TakeDamage(100)
  2204. db = true
  2205. wait(0.25)
  2206. db = false
  2207. end
  2208. elseif kk ~= nil and script.Parent.Name == "Noob" then
  2209. if hit.Parent == nil then return end
  2210. local human = hit.Parent:FindFirstChild("Humanoid")
  2211. if human ~= nil and human.Parent.Name ~= script.Parent.Owner.Value and waitTimer == 0 and human.Parent.Name ~= "Noob" and human.Parent.Name ~= "Giant Noob" then
  2212. human:TakeDamage(300)
  2213. db = true
  2214. wait(1)
  2215. db = false
  2216. end
  2217. end
  2218. end
  2219. end
  2220.  
  2221. function Sit()
  2222. if script.Parent.Zombie.Sit == true then
  2223. wait(1)
  2224. script.Parent.Zombie.Jump = true
  2225. print("Anti Seat Putter!!!")
  2226. end
  2227. end
  2228.  
  2229. script.Parent.Zombie.Changed:connect(Sit)
  2230.  
  2231. for i,p in pairs(script.Parent:GetChildren()) do
  2232. if p:IsA("Part") then
  2233. p.Touched:connect(Hit)
  2234. end
  2235. end
  2236.  
  2237. while true do
  2238. wait()
  2239. local target = findNearestTorso(script.Parent.Torso.Position)
  2240. if target ~= nil then
  2241. rx = 0
  2242. ry = 0
  2243. rz = 0
  2244. script.Parent.Zombie:MoveTo(target.Position+Vector3.new(rx,ry,rz), target)
  2245. else
  2246. script.Parent.Range.Value = false
  2247. end
  2248. if waitTimer > 0 then
  2249. waitTimer = waitTimer - 1
  2250. end
  2251. jumper = math.random(1,2)
  2252. if jumper == 2 and script.Parent.Torso.Position.Y <= 1 then
  2253. script.Parent.Zombie.Jump = true
  2254. end
  2255. end
  2256.  
  2257. end))
  2258. Script114.Name = "Die"
  2259. Script114.Parent = Model0
  2260. table.insert(cors,sandbox(Script114,function()
  2261. human = script.Parent.Zombie
  2262. tool = script.Parent.Turret
  2263.  
  2264. function Die()
  2265. game.Workspace["Noob Core"].Defence.Turret1.Value = false
  2266. if tool ~= nil then tool:remove() end
  2267. wait(4.5)
  2268. parts = script.Parent:children()
  2269. for i = 1,5 do
  2270. for i = 1,#parts do
  2271. if parts[i].className == "Part" or parts[i].className == "WedgePart" or parts[i].className == "CornerWedgePart" then
  2272. parts[i].Transparency = 1
  2273. end
  2274. end
  2275. wait(0.05)
  2276. for i = 1,#parts do
  2277. if parts[i].className == "Part" or parts[i].className == "WedgePart" or parts[i].className == "CornerWedgePart" then
  2278. parts[i].Transparency = 0
  2279. end
  2280. end
  2281. wait(0.05)
  2282. end
  2283. script.Parent:remove()
  2284. end
  2285.  
  2286. human.Died:connect(Die)
  2287. end))
  2288. Script115.Name = "Die"
  2289. Script115.Parent = Model0
  2290. table.insert(cors,sandbox(Script115,function()
  2291. human = script.Parent.Zombie
  2292. tool = script.Parent.Pistol
  2293.  
  2294. function Die()
  2295. if tool ~= nil then tool:remove() end
  2296. wait(4.5)
  2297. parts = script.Parent:children()
  2298. for i = 1,5 do
  2299. for i = 1,#parts do
  2300. if parts[i].className == "Part" and parts[i].Name ~= "Part" then
  2301. parts[i].Transparency = 1
  2302. end
  2303. end
  2304. wait(0.05)
  2305. for i = 1,#parts do
  2306. if parts[i].className == "Part" and parts[i].Name ~= "Part" then
  2307. parts[i].Transparency = 0
  2308. end
  2309. end
  2310. wait(0.05)
  2311. end
  2312. script.Parent:remove()
  2313. end
  2314.  
  2315. human.Died:connect(Die)
  2316. end))
  2317. Script116.Name = "FF"
  2318. Script116.Parent = Model0
  2319. table.insert(cors,sandbox(Script116,function()
  2320. ff = Instance.new("ForceField")
  2321. ff.Parent = script.Parent
  2322. wait(5)
  2323. ff:remove()
  2324. end))
  2325. Script116.Disabled = true
  2326. Script117.Name = "FF"
  2327. Script117.Parent = Model0
  2328. table.insert(cors,sandbox(Script117,function()
  2329. ff = Instance.new("ForceField")
  2330. ff.Parent = script.Parent
  2331. wait(5)
  2332. ff:remove()
  2333. end))
  2334. Script117.Disabled = true
  2335. Script118.Name = "Weld"
  2336. Script118.Parent = Model0
  2337. table.insert(cors,sandbox(Script118,function()
  2338. function weld()
  2339. local parts,last = {}
  2340. local function scan(parent)
  2341. for _,v in pairs(parent:GetChildren()) do
  2342. if (v:IsA("BasePart")) then
  2343. if (last) then
  2344. local w = Instance.new("Weld")
  2345. w.Name = ("%s_Weld"):format(v.Name)
  2346. w.Part0,w.Part1 = last,v
  2347. w.C0 = last.CFrame:inverse()
  2348. w.C1 = v.CFrame:inverse()
  2349. w.Parent = last
  2350. end
  2351. last = v
  2352. table.insert(parts,v)
  2353. end
  2354. scan(v)
  2355. end
  2356. end
  2357. scan(script.Parent)
  2358. for _,v in pairs(parts) do
  2359. v.Anchored = false
  2360. end
  2361. end
  2362.  
  2363. weld()
  2364. script:Remove()
  2365. end))
  2366. Humanoid119.Name = "Zombie"
  2367. Humanoid119.Parent = Model0
  2368. Humanoid119.Health = 1750
  2369. Humanoid119.MaxHealth = 1750
  2370. Humanoid119.NameOcclusion = Enum.NameOcclusion.NoOcclusion
  2371. Humanoid119.Torso = Part62
  2372. Humanoid119.WalkSpeed = 10
  2373. Humanoid119.maxHealth = 1750
  2374. StringValue120.Name = "Owner"
  2375. StringValue120.Parent = Model0
  2376. StringValue120.Value = "SuperEvilAzmil"
  2377. BoolValue121.Name = "Range"
  2378. BoolValue121.Parent = Model0
  2379. Script122.Name = "Sound"
  2380. Script122.Parent = Model0
  2381. table.insert(cors,sandbox(Script122,function()
  2382. -- util
  2383.  
  2384. function waitForChild(parent, childName)
  2385. local child = parent:findFirstChild(childName)
  2386. if child then return child end
  2387. while true do
  2388. child = parent.ChildAdded:wait()
  2389. if child.Name==childName then return child end
  2390. end
  2391. end
  2392.  
  2393. function newSound(id)
  2394. local sound = Instance.new("Sound")
  2395. sound.SoundId = id
  2396. sound.archivable = false
  2397. sound.Parent = script.Parent.Head
  2398. return sound
  2399. end
  2400.  
  2401. -- declarations
  2402.  
  2403. local sDied = newSound("http://www.roblox.com/asset/?id=165772825")
  2404. local sFallingDown = newSound("rbxasset://sounds/splat.wav")
  2405. local sFreeFalling = newSound("rbxasset://sounds/swoosh.wav")
  2406. local sGettingUp = newSound("rbxasset://sounds/hit.wav")
  2407. local sJumping = newSound("rbxasset://sounds/button.wav")
  2408. local sRunning = newSound("http://www.roblox.com/asset/?id=82229584")
  2409. sRunning.Looped = true
  2410.  
  2411. local Figure = script.Parent
  2412. local Head = waitForChild(Figure, "Head")
  2413. local Humanoid = waitForChild(Figure, "Zombie")
  2414.  
  2415. -- functions
  2416.  
  2417. function onDied()
  2418. sDied:Play()
  2419. end
  2420.  
  2421. function onState(state, sound)
  2422. if state then
  2423. sound:Play()
  2424. else
  2425. sound:Pause()
  2426. end
  2427. end
  2428.  
  2429. function onRunning(speed)
  2430. if speed>0 then
  2431. sRunning:Play()
  2432. else
  2433. sRunning:Pause()
  2434. end
  2435. end
  2436.  
  2437. -- connect up
  2438.  
  2439. Humanoid.Died:connect(onDied)
  2440. Humanoid.Running:connect(onRunning)
  2441. Humanoid.Jumping:connect(function(state) onState(state, sJumping) end)
  2442. Humanoid.GettingUp:connect(function(state) onState(state, sGettingUp) end)
  2443. Humanoid.FreeFalling:connect(function(state) onState(state, sFreeFalling) end)
  2444. Humanoid.FallingDown:connect(function(state) onState(state, sFallingDown) end)
  2445.  
  2446. end))
  2447. BoolValue123.Name = "Range"
  2448. BoolValue123.Parent = Model0
  2449. ObjectValue124.Name = "Target"
  2450. ObjectValue124.Parent = Model0
  2451. ObjectValue125.Name = "Target"
  2452. ObjectValue125.Parent = Model0
  2453. Script126.Name = "HealthBarGUIScript"
  2454. Script126.Parent = Model0
  2455. table.insert(cors,sandbox(Script126,function()
  2456. Humanoid = script.Parent.Zombie
  2457.  
  2458. function GainCharge(Humanoid)
  2459. Humanoid.Parent.Torso.Healthbar.Frame.Full.Size = UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,1,0)
  2460. if Humanoid.Health >= Humanoid.MaxHealth/2 then
  2461. Humanoid.Parent.Torso.Healthbar.Frame.Full.BackgroundColor3 = Color3.new(0,200/255,0)
  2462. elseif Humanoid.Health >= Humanoid.MaxHealth/4 and Humanoid.Health <= Humanoid.MaxHealth/2 then
  2463. Humanoid.Parent.Torso.Healthbar.Frame.Full.BackgroundColor3 = Color3.new(200/255,200/255,0)
  2464. elseif Humanoid.Health <= Humanoid.MaxHealth/4 then
  2465. Humanoid.Parent.Torso.Healthbar.Frame.Full.BackgroundColor3 = Color3.new(200/255,0,0)
  2466. end
  2467. end
  2468.  
  2469. Humanoid.HealthChanged:connect(function() GainCharge(Humanoid) end)
  2470. end))
  2471. for i,v in pairs(mas:GetChildren()) do
  2472. v.Parent = workspace
  2473. pcall(function() v:MakeJoints() end)
  2474. end
  2475. mas:Destroy()
  2476. for i,v in pairs(cors) do
  2477. spawn(function()
  2478. pcall(v)
  2479. end)
  2480. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement