Advertisement
princeofheaven

Fire

Jun 4th, 2015
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.31 KB | None | 0 0
  1. local Player = game.Players.LocalPlayer
  2. local Char = Player.Character
  3.  
  4. pcall(function() Char.Mech:remove() end)
  5.  
  6. local warehouse = Instance.new("Model", Char)
  7. warehouse.Name = "Mech"
  8.  
  9. --torso
  10.  
  11. local torso = Instance.new("Part")
  12. torso.Parent = warehouse
  13. torso.Anchored = false
  14. torso:BreakJoints()
  15. torso.CanCollide = true
  16. torso.BrickColor = BrickColor.new("Really black")
  17. torso.Size = Vector3.new(10, 15, 3)
  18. torso.CFrame = CFrame.new(0, 25, 0)
  19. local torsom = Instance.new("CylinderMesh")
  20. torsom.Parent = torso
  21. torsom.Scale = Vector3.new(1, 1, 1)
  22. gyro = Instance.new("BodyGyro")
  23. gyro.Parent = torso
  24. gyro.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  25. positio = Instance.new("BodyPosition")
  26. positio.maxForce = Vector3.new(0, math.huge, 0)
  27. positio.Parent = torso
  28. positio.position = Vector3.new(55, 500, 0)
  29.  
  30. local torso2 = Instance.new("Part")
  31. torso2.Parent = warehouse
  32. torso2.Anchored = false
  33. torso2:BreakJoints()
  34. torso2.CanCollide = false
  35. torso2.BrickColor = BrickColor.new("Mid stone grey")
  36. torso2.Size = Vector3.new(12, 1, 1)
  37. torso2.CFrame = CFrame.new(0, 25, 0)
  38. local torso2m = Instance.new("BlockMesh")
  39. torso2m.Parent = torso2
  40. torso2m.Bevel = 0.1
  41. torso2m.Scale = Vector3.new(1, 1, 1)
  42. local torso2w = Instance.new("Weld")
  43. torso2w.Parent = torso
  44. torso2w.Part0 = torso2
  45. torso2w.Part1 = torso
  46. torso2w.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  47. local torso3 = Instance.new("Part")
  48. torso3.Parent = warehouse
  49. torso3.Anchored = false
  50. torso3.CanCollide = false
  51. torso3:BreakJoints()
  52. torso3.BrickColor = BrickColor.new("Mid stone grey")
  53. torso3.Size = Vector3.new(10, 1, 1)
  54. torso3.CFrame = CFrame.new(0, 25, 0)
  55. local torso3m = Instance.new("BlockMesh")
  56. torso3m.Parent = torso3
  57. torso3m.Bevel = 0.1
  58. torso3m.Scale = Vector3.new(1, 1, 1)
  59. local torso3w = Instance.new("Weld")
  60. torso3w.Parent = torso
  61. torso3w.Part0 = torso3
  62. torso3w.Part1 = torso
  63. torso3w.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(0, 0, 0)
  64. local torso4 = Instance.new("Part")
  65. torso4.Parent = warehouse
  66. torso4.Anchored = false
  67. torso4.CanCollide = false
  68. torso4:BreakJoints()
  69. torso4.BrickColor = BrickColor.new("Mid stone grey")
  70. torso4.Size = Vector3.new(10, 1, 1)
  71. torso4.CFrame = CFrame.new(0, 25, 0)
  72. local torso4m = Instance.new("BlockMesh")
  73. torso4m.Parent = torso4
  74. torso4m.Bevel = 0.1
  75. torso4m.Scale = Vector3.new(1, 1, 1)
  76. local torso4w = Instance.new("Weld")
  77. torso4w.Parent = torso
  78. torso4w.Part0 = torso4
  79. torso4w.Part1 = torso
  80. torso4w.C0 = CFrame.new(0, -1.5, 0) * CFrame.Angles(0, 0, 0)
  81. local torso5 = Instance.new("Part")
  82. torso5.Parent = warehouse
  83. torso5.Anchored = false
  84. torso5.CanCollide = false
  85. torso5:BreakJoints()
  86. torso5.BrickColor = BrickColor.new("Mid stone grey")
  87. torso5.Size = Vector3.new(8, 1, 1)
  88. torso5.CFrame = CFrame.new(0, 25, 0)
  89. local torso5m = Instance.new("BlockMesh")
  90. torso5m.Parent = torso5
  91. torso5m.Bevel = 0.1
  92. torso5m.Scale = Vector3.new(1, 1, 1)
  93. local torso5w = Instance.new("Weld")
  94. torso5w.Parent = torso
  95. torso5w.Part0 = torso5
  96. torso5w.Part1 = torso
  97. torso5w.C0 = CFrame.new(0, -3, 0) * CFrame.Angles(0, 0, 0)
  98. local torso6 = Instance.new("Part")
  99. torso6.Parent = warehouse
  100. torso6.Anchored = false
  101. torso6.CanCollide = false
  102. torso6:BreakJoints()
  103. torso6.BrickColor = BrickColor.new("Mid stone grey")
  104. torso6.Size = Vector3.new(8, 1, 1)
  105. torso6.CFrame = CFrame.new(0, 25, 0)
  106. local torso6m = Instance.new("BlockMesh")
  107. torso6m.Parent = torso6
  108. torso6m.Bevel = 0.1
  109. torso6m.Scale = Vector3.new(1, 1, 1)
  110. local torso6w = Instance.new("Weld")
  111. torso6w.Parent = torso
  112. torso6w.Part0 = torso6
  113. torso6w.Part1 = torso
  114. torso6w.C0 = CFrame.new(0, 3, 0) * CFrame.Angles(0, 0, 0)
  115. --head--
  116. local headw = Instance.new("Weld")
  117. headw.Parent = torso
  118. headw.Part0 = Char.Head
  119. headw.Part1 = torso
  120. headw.C0 = CFrame.new(0, -9, 0) * CFrame.Angles(0, 0, 0)
  121. for _,v in pairs(Char:GetChildren()) do
  122. if v.className == "Part" then
  123. v.Transparency = 1
  124. end
  125. end
  126. Char.Head.Transparency = 0
  127. Char.Head.Mesh.Scale = Vector3.new(5, 5, 3)
  128.  
  129. if script.Parent.className ~= "HopperBin" then
  130. local h = Instance.new("HopperBin", Player.Backpack)
  131. h.Name = "Lazers"
  132. script.Parent = h
  133. end
  134.  
  135. local bin = script.Parent
  136.  
  137. a=false
  138. cam=nil
  139.  
  140. function onSelected(mouse)
  141. mouse.Button1Down:connect(function()
  142. local pos1 = Char.Head.Position
  143. local pos2 = mouse.hit.p
  144. local shot = Instance.new("Part")
  145. shot.Parent = workspace
  146. shot.Anchored = true
  147. shot.formFactor = "Custom"
  148. shot.BrickColor = BrickColor.new("White")
  149. shot.Size = Vector3.new(1, 1, 1)
  150. shot.CanCollide = false
  151. shot.CFrame = CFrame.new((pos1 + pos2) / 2, pos2)
  152. local mesh = Instance.new("BlockMesh")
  153. mesh.Parent = shot
  154. mesh.Bevel = 0.1
  155. mesh.Scale = Vector3.new(3, 3, (pos1 - pos2).magnitude)
  156. for _, v in pairs(game.Players:GetChildren()) do
  157. if v.Name == mouse.Target.Parent.Name then
  158. v.Character:BreakJoints()
  159. end
  160. end
  161. wait(0.5)
  162. shot:remove()
  163. end)
  164. mouse.KeyDown:connect(function(key)
  165. if key == "q" then
  166. local pos1 = Char.Head.Position
  167. local pos2 = mouse.hit.p
  168. local shot = Instance.new("Part")
  169. shot.Parent = workspace
  170. shot.Anchored = true
  171. shot.formFactor = "Custom"
  172. shot.BrickColor = BrickColor.new("Bright yellow")
  173. shot.Size = Vector3.new(1, 1, 1)
  174. shot.CanCollide = false
  175. shot.CFrame = CFrame.new((pos1 + pos2) / 2, pos2)
  176. local mesh = Instance.new("BlockMesh")
  177. mesh.Parent = shot
  178. mesh.Bevel = 0.1
  179. mesh.Scale = Vector3.new(3, 3, (pos1 - pos2).magnitude)
  180. local ex = Instance.new("Explosion", workspace)
  181. ex.Position = pos2
  182. for _, v in pairs(game.Players:GetChildren()) do
  183. if v.Name == mouse.Target.Parent.Name then
  184. v.Character:BreakJoints()
  185. end
  186. end
  187. wait(0.5)
  188. shot:remove()
  189. end
  190. if key == "e" then
  191. local pos1 = Char.Head.Position
  192. local pos2 = mouse.hit.p
  193. local shot = Instance.new("Part")
  194. shot.Parent = workspace
  195. shot.Anchored = true
  196. shot.formFactor = "Custom"
  197. shot.BrickColor = BrickColor.new("Bright green")
  198. shot.Size = Vector3.new(1, 1, 1)
  199. shot.CanCollide = false
  200. shot.CFrame = CFrame.new((pos1 + pos2) / 2, pos2)
  201. local mesh = Instance.new("BlockMesh")
  202. mesh.Parent = shot
  203. mesh.Bevel = 0.1
  204. mesh.Scale = Vector3.new(3, 3, (pos1 - pos2).magnitude)
  205. local ex = Instance.new("Explosion", workspace)
  206. ex.Position = pos2
  207. for _, v in pairs(game.Players:GetChildren()) do
  208. if v.Name == mouse.Target.Parent.Name then
  209. v.Character:BreakJoints()
  210. end
  211. end
  212. wait()
  213. local ex = Instance.new("Explosion", workspace)
  214. ex.Position = pos2
  215. for _, v in pairs(game.Players:GetChildren()) do
  216. if v.Name == mouse.Target.Parent.Name then
  217. v.Character:BreakJoints()
  218. end
  219. end
  220. wait()
  221. local ex = Instance.new("Explosion", workspace)
  222. ex.Position = pos2
  223. for _, v in pairs(game.Players:GetChildren()) do
  224. if v.Name == mouse.Target.Parent.Name then
  225. v.Character:BreakJoints()
  226. end
  227. end
  228. wait()
  229. local ex = Instance.new("Explosion", workspace)
  230. ex.Position = pos2
  231. for _, v in pairs(game.Players:GetChildren()) do
  232. if v.Name == mouse.Target.Parent.Name then
  233. v.Character:BreakJoints()
  234. end
  235. end
  236. wait()
  237. local ex = Instance.new("Explosion", workspace)
  238. ex.Position = pos2
  239. for _, v in pairs(game.Players:GetChildren()) do
  240. if v.Name == mouse.Target.Parent.Name then
  241. v.Character:BreakJoints()
  242. end
  243. end
  244. wait()
  245. local ex = Instance.new("Explosion", workspace)
  246. ex.Position = pos2
  247. for _, v in pairs(game.Players:GetChildren()) do
  248. if v.Name == mouse.Target.Parent.Name then
  249. v.Character:BreakJoints()
  250. end
  251. end
  252. wait()
  253. local ex = Instance.new("Explosion", workspace)
  254. ex.Position = pos2
  255. for _, v in pairs(game.Players:GetChildren()) do
  256. if v.Name == mouse.Target.Parent.Name then
  257. v.Character:BreakJoints()
  258. end
  259. end
  260. wait()
  261. local ex = Instance.new("Explosion", workspace)
  262. ex.Position = pos2
  263. for _, v in pairs(game.Players:GetChildren()) do
  264. if v.Name == mouse.Target.Parent.Name then
  265. v.Character:BreakJoints()
  266. end
  267. end
  268. wait()
  269. local ex = Instance.new("Explosion", workspace)
  270. ex.Position = pos2
  271. for _, v in pairs(game.Players:GetChildren()) do
  272. if v.Name == mouse.Target.Parent.Name then
  273. v.Character:BreakJoints()
  274. end
  275. end
  276. wait()
  277. local ex = Instance.new("Explosion", workspace)
  278. ex.Position = pos2
  279. for _, v in pairs(game.Players:GetChildren()) do
  280. if v.Name == mouse.Target.Parent.Name then
  281. v.Character:BreakJoints()
  282. end
  283. end
  284. wait()
  285. local ex = Instance.new("Explosion", workspace)
  286. ex.Position = pos2
  287. for _, v in pairs(game.Players:GetChildren()) do
  288. if v.Name == mouse.Target.Parent.Name then
  289. v.Character:BreakJoints()
  290. end
  291. end
  292. wait(0.5)
  293. shot:remove()
  294. end
  295. if key == "x" then
  296. positio.position = positio.position - Vector3.new(0, 10, 0)
  297. end
  298. if key == "c" then
  299. positio.position = positio.position + Vector3.new(0, 10, 0)
  300. end
  301. if key == "z" then
  302. if not a then
  303. local part = Instance.new("Part",workspace)
  304. cam=game.Workspace.CurrentCamera:clone()
  305. cam.Parent=game.Workspace
  306. game.Workspace.CurrentCamera.CameraSubject = mouse.Target
  307. game.Workspace.CurrentCamera.CameraType=4
  308. a=true
  309. else
  310. game.Workspace.CurrentCamera.CameraSubject=game.Players.LocalPlayer.Character
  311. game.Workspace.CurrentCamera:Remove()
  312. game.Workspace.CurrentCamera=cam
  313. a=false
  314. end
  315. end
  316. end)
  317. end
  318.  
  319. function onDesel(mouse)
  320. end
  321.  
  322. bin.Selected:connect(onSelected)
  323. bin.Deselected:connect(onDesel)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement