Advertisement
firebudgy

Untitled

May 27th, 2018
412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.85 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Tool0 = Instance.new("Tool")
  20. Part1 = Instance.new("Part")
  21. BlockMesh2 = Instance.new("BlockMesh")
  22. Sound3 = Instance.new("Sound")
  23. Part4 = Instance.new("Part")
  24. BlockMesh5 = Instance.new("BlockMesh")
  25. Weld6 = Instance.new("Weld")
  26. Weld7 = Instance.new("Weld")
  27. Part8 = Instance.new("Part")
  28. BlockMesh9 = Instance.new("BlockMesh")
  29. Weld10 = Instance.new("Weld")
  30. Weld11 = Instance.new("Weld")
  31. Part12 = Instance.new("Part")
  32. BlockMesh13 = Instance.new("BlockMesh")
  33. Weld14 = Instance.new("Weld")
  34. Weld15 = Instance.new("Weld")
  35. Part16 = Instance.new("Part")
  36. BlockMesh17 = Instance.new("BlockMesh")
  37. Weld18 = Instance.new("Weld")
  38. Weld19 = Instance.new("Weld")
  39. Part20 = Instance.new("Part")
  40. BlockMesh21 = Instance.new("BlockMesh")
  41. Weld22 = Instance.new("Weld")
  42. Weld23 = Instance.new("Weld")
  43. Part24 = Instance.new("Part")
  44. BlockMesh25 = Instance.new("BlockMesh")
  45. Weld26 = Instance.new("Weld")
  46. Weld27 = Instance.new("Weld")
  47. BoolValue28 = Instance.new("BoolValue")
  48. Script29 = Instance.new("Script")
  49. Script30 = Instance.new("Script")
  50. Script31 = Instance.new("Script")
  51. LocalScript32 = Instance.new("LocalScript")
  52. LocalScript33 = Instance.new("LocalScript")
  53. Tool0.Name = "Stone Ray"
  54. Tool0.Parent = mas
  55. Tool0.TextureId = "http://www.roblox.com/asset/?id=0"
  56. Part1.Name = "Handle"
  57. Part1.Parent = Tool0
  58. Part1.Material = Enum.Material.Slate
  59. Part1.BrickColor = BrickColor.new("Really black")
  60. Part1.Rotation = Vector3.new(0, 90, 0)
  61. Part1.CanCollide = false
  62. Part1.Locked = true
  63. Part1.Size = Vector3.new(1, 1.20000005, 4)
  64. Part1.CFrame = CFrame.new(-24, 0.600012004, 20.5, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  65. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  66. Part1.Position = Vector3.new(-24, 0.600012004, 20.5)
  67. Part1.Orientation = Vector3.new(0, 90, 0)
  68. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  69. BlockMesh2.Parent = Part1
  70. BlockMesh2.Offset = Vector3.new(0.100000001, 0, 0.75)
  71. BlockMesh2.Scale = Vector3.new(0.75, 0.5, 0.5)
  72. BlockMesh2.Scale = Vector3.new(0.75, 0.5, 0.5)
  73. Sound3.Name = "Fail"
  74. Sound3.Parent = Part1
  75. Sound3.Volume = 1
  76. Part4.Name = "Part1"
  77. Part4.Parent = Tool0
  78. Part4.Material = Enum.Material.Slate
  79. Part4.BrickColor = BrickColor.new("Lime green")
  80. Part4.Transparency = 0.5
  81. Part4.Rotation = Vector3.new(0, 90, 0)
  82. Part4.CanCollide = false
  83. Part4.Locked = true
  84. Part4.Size = Vector3.new(1, 1.20000005, 4)
  85. Part4.CFrame = CFrame.new(-24, 0.600012004, 20.5, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  86. Part4.Color = Color3.new(0, 1, 0)
  87. Part4.Position = Vector3.new(-24, 0.600012004, 20.5)
  88. Part4.Orientation = Vector3.new(0, 90, 0)
  89. Part4.Color = Color3.new(0, 1, 0)
  90. BlockMesh5.Parent = Part4
  91. BlockMesh5.Offset = Vector3.new(0, 0, -0.800000012)
  92. BlockMesh5.Scale = Vector3.new(0.400000006, 0.400000006, 0.400000006)
  93. BlockMesh5.Scale = Vector3.new(0.400000006, 0.400000006, 0.400000006)
  94. Weld6.Parent = Part4
  95. Weld6.C0 = CFrame.new(9.19787837e-08, -2.11812328e-08, 1.80867659e-08, -0.221313104, -3.93885757e-21, -0.975202799, -0.950035214, 0.225719139, 0.215601549, 0.220121935, 0.974192441, -0.0499546044)
  96. Weld6.C1 = CFrame.new(9.19787837e-08, -2.11812328e-08, 1.80867659e-08, -0.221313104, -3.93885757e-21, -0.975202799, -0.950035214, 0.225719139, 0.215601549, 0.220121935, 0.974192441, -0.0499546044)
  97. Weld7.Parent = Part4
  98. Weld7.C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  99. Weld7.C1 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  100. Part8.Name = "Part2"
  101. Part8.Parent = Tool0
  102. Part8.Material = Enum.Material.Slate
  103. Part8.BrickColor = BrickColor.new("Really black")
  104. Part8.Transparency = 0.20000000298023
  105. Part8.Rotation = Vector3.new(0, 90, 0)
  106. Part8.CanCollide = false
  107. Part8.Locked = true
  108. Part8.Size = Vector3.new(1, 1.20000005, 4)
  109. Part8.CFrame = CFrame.new(-24, 0.600012004, 20.5, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  110. Part8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  111. Part8.Position = Vector3.new(-24, 0.600012004, 20.5)
  112. Part8.Orientation = Vector3.new(0, 90, 0)
  113. Part8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  114. BlockMesh9.Parent = Part8
  115. BlockMesh9.Offset = Vector3.new(0, 0, -0.800000012)
  116. BlockMesh9.Scale = Vector3.new(0.200000003, 0.200000003, 0.400000006)
  117. BlockMesh9.Scale = Vector3.new(0.200000003, 0.200000003, 0.400000006)
  118. Weld10.Parent = Part8
  119. Weld10.C0 = CFrame.new(9.19787837e-08, -2.11812328e-08, 1.80867659e-08, -0.221313104, -3.93885757e-21, -0.975202799, -0.950035214, 0.225719139, 0.215601549, 0.220121935, 0.974192441, -0.0499546044)
  120. Weld10.C1 = CFrame.new(9.19787837e-08, -2.11812328e-08, 1.80867659e-08, -0.221313104, -3.93885757e-21, -0.975202799, -0.950035214, 0.225719139, 0.215601549, 0.220121935, 0.974192441, -0.0499546044)
  121. Weld11.Parent = Part8
  122. Weld11.C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  123. Weld11.C1 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  124. Part12.Name = "Part3"
  125. Part12.Parent = Tool0
  126. Part12.Material = Enum.Material.Slate
  127. Part12.BrickColor = BrickColor.new("Black")
  128. Part12.Rotation = Vector3.new(0, 90, 0)
  129. Part12.CanCollide = false
  130. Part12.Locked = true
  131. Part12.Size = Vector3.new(1, 1.20000005, 4)
  132. Part12.CFrame = CFrame.new(-24, 0.600012004, 20.5, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  133. Part12.Color = Color3.new(0.105882, 0.164706, 0.207843)
  134. Part12.Position = Vector3.new(-24, 0.600012004, 20.5)
  135. Part12.Orientation = Vector3.new(0, 90, 0)
  136. Part12.Color = Color3.new(0.105882, 0.164706, 0.207843)
  137. BlockMesh13.Parent = Part12
  138. BlockMesh13.Offset = Vector3.new(0, 0, -1.60000002)
  139. BlockMesh13.Scale = Vector3.new(0.439999998, 0.439999998, 0.0399999991)
  140. BlockMesh13.Scale = Vector3.new(0.439999998, 0.439999998, 0.0399999991)
  141. Weld14.Parent = Part12
  142. Weld14.C0 = CFrame.new(9.19787837e-08, -2.11812328e-08, 1.80867659e-08, -0.221313104, -3.93885757e-21, -0.975202799, -0.950035214, 0.225719139, 0.215601549, 0.220121935, 0.974192441, -0.0499546044)
  143. Weld14.C1 = CFrame.new(9.19787837e-08, -2.11812328e-08, 1.80867659e-08, -0.221313104, -3.93885757e-21, -0.975202799, -0.950035214, 0.225719139, 0.215601549, 0.220121935, 0.974192441, -0.0499546044)
  144. Weld15.Parent = Part12
  145. Weld15.C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  146. Weld15.C1 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  147. Part16.Name = "Part4"
  148. Part16.Parent = Tool0
  149. Part16.Material = Enum.Material.Slate
  150. Part16.BrickColor = BrickColor.new("Black")
  151. Part16.Rotation = Vector3.new(0, 90, 0)
  152. Part16.CanCollide = false
  153. Part16.Locked = true
  154. Part16.Size = Vector3.new(1, 1.20000005, 4)
  155. Part16.CFrame = CFrame.new(-24, 0.600012004, 20.5, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  156. Part16.Color = Color3.new(0.105882, 0.164706, 0.207843)
  157. Part16.Position = Vector3.new(-24, 0.600012004, 20.5)
  158. Part16.Orientation = Vector3.new(0, 90, 0)
  159. Part16.Color = Color3.new(0.105882, 0.164706, 0.207843)
  160. BlockMesh17.Parent = Part16
  161. BlockMesh17.Offset = Vector3.new(0.400000006, 0, -0.800000012)
  162. BlockMesh17.Scale = Vector3.new(0.0399999991, 0.0399999991, 0.400000006)
  163. BlockMesh17.Scale = Vector3.new(0.0399999991, 0.0399999991, 0.400000006)
  164. Weld18.Parent = Part16
  165. Weld18.C0 = CFrame.new(9.19787837e-08, -2.11812328e-08, 1.80867659e-08, -0.221313104, -3.93885757e-21, -0.975202799, -0.950035214, 0.225719139, 0.215601549, 0.220121935, 0.974192441, -0.0499546044)
  166. Weld18.C1 = CFrame.new(9.19787837e-08, -2.11812328e-08, 1.80867659e-08, -0.221313104, -3.93885757e-21, -0.975202799, -0.950035214, 0.225719139, 0.215601549, 0.220121935, 0.974192441, -0.0499546044)
  167. Weld19.Parent = Part16
  168. Weld19.C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  169. Weld19.C1 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  170. Part20.Name = "Part5"
  171. Part20.Parent = Tool0
  172. Part20.Material = Enum.Material.Slate
  173. Part20.BrickColor = BrickColor.new("Black")
  174. Part20.Rotation = Vector3.new(0, 90, 0)
  175. Part20.CanCollide = false
  176. Part20.Locked = true
  177. Part20.Size = Vector3.new(1, 1.20000005, 4)
  178. Part20.CFrame = CFrame.new(-24, 0.600012004, 20.5, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  179. Part20.Color = Color3.new(0.105882, 0.164706, 0.207843)
  180. Part20.Position = Vector3.new(-24, 0.600012004, 20.5)
  181. Part20.Orientation = Vector3.new(0, 90, 0)
  182. Part20.Color = Color3.new(0.105882, 0.164706, 0.207843)
  183. BlockMesh21.Parent = Part20
  184. BlockMesh21.Offset = Vector3.new(0.200000003, 0, -1.60000002)
  185. BlockMesh21.Scale = Vector3.new(0.400000006, 0.0399999991, 0.0199999996)
  186. BlockMesh21.Scale = Vector3.new(0.400000006, 0.0399999991, 0.0199999996)
  187. Weld22.Parent = Part20
  188. Weld22.C0 = CFrame.new(9.19787837e-08, -2.11812328e-08, 1.80867659e-08, -0.221313104, -3.93885757e-21, -0.975202799, -0.950035214, 0.225719139, 0.215601549, 0.220121935, 0.974192441, -0.0499546044)
  189. Weld22.C1 = CFrame.new(9.19787837e-08, -2.11812328e-08, 1.80867659e-08, -0.221313104, -3.93885757e-21, -0.975202799, -0.950035214, 0.225719139, 0.215601549, 0.220121935, 0.974192441, -0.0499546044)
  190. Weld23.Parent = Part20
  191. Weld23.C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  192. Weld23.C1 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  193. Part24.Name = "Part6"
  194. Part24.Parent = Tool0
  195. Part24.Material = Enum.Material.Slate
  196. Part24.BrickColor = BrickColor.new("Black")
  197. Part24.Rotation = Vector3.new(0, 90, 0)
  198. Part24.CanCollide = false
  199. Part24.Locked = true
  200. Part24.Size = Vector3.new(1, 1.20000005, 4)
  201. Part24.CFrame = CFrame.new(-24, 0.600012004, 20.5, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  202. Part24.Color = Color3.new(0.105882, 0.164706, 0.207843)
  203. Part24.Position = Vector3.new(-24, 0.600012004, 20.5)
  204. Part24.Orientation = Vector3.new(0, 90, 0)
  205. Part24.Color = Color3.new(0.105882, 0.164706, 0.207843)
  206. BlockMesh25.Parent = Part24
  207. BlockMesh25.Offset = Vector3.new(0, 0, -2)
  208. BlockMesh25.Scale = Vector3.new(0.0799999982, 0.0799999982, 0.200000003)
  209. BlockMesh25.Scale = Vector3.new(0.0799999982, 0.0799999982, 0.200000003)
  210. Weld26.Parent = Part24
  211. Weld26.C0 = CFrame.new(9.19787837e-08, -2.11812328e-08, 1.80867659e-08, -0.221313104, -3.93885757e-21, -0.975202799, -0.950035214, 0.225719139, 0.215601549, 0.220121935, 0.974192441, -0.0499546044)
  212. Weld26.C1 = CFrame.new(9.19787837e-08, -2.11812328e-08, 1.80867659e-08, -0.221313104, -3.93885757e-21, -0.975202799, -0.950035214, 0.225719139, 0.215601549, 0.220121935, 0.974192441, -0.0499546044)
  213. Weld27.Parent = Part24
  214. Weld27.C0 = CFrame.new(0, 0, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  215. Weld27.C1 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  216. BoolValue28.Name = "Fire"
  217. BoolValue28.Parent = Tool0
  218. Script29.Name = "WeldScript"
  219. Script29.Parent = Tool0
  220. table.insert(cors,sandbox(Script29,function()
  221. t = script.Parent
  222.  
  223. function stick(x, y)
  224. weld = Instance.new("Weld")
  225. weld.Part0 = x
  226. weld.Part1 = y
  227. local HitPos = x.Position
  228. local CJ = CFrame.new(HitPos)
  229. local C0 = x.CFrame:inverse() *CJ
  230. local C1 = y.CFrame:inverse() * CJ
  231. weld.C0 = C0
  232. weld.C1 = C1
  233. weld.Parent = x
  234. end
  235.  
  236. function Weldnow()
  237. c = t:children()
  238. for n = 1, #c do
  239. if (c[n].className == "Part") then
  240. if (c[n].Name ~= "Handle") then
  241. c[n].CFrame = t.Handle.CFrame
  242. stick(c[n], t.Handle)
  243. end
  244. end
  245. end
  246. end
  247.  
  248. script.Parent.Equipped:connect(Weldnow)
  249. script.Parent.Unequipped:connect(Weldnow)
  250. Weldnow()
  251. end))
  252. Script30.Name = "LaserFireAnimation"
  253. Script30.Parent = Tool0
  254. table.insert(cors,sandbox(Script30,function()
  255. laser = script.Parent
  256. while true do
  257. if (script.Parent.Fire.Value) then
  258. for a = 1, 2 do
  259. laser.Part1.Mesh.Offset = laser.Part1.Mesh.Offset + Vector3.new(0,0,0.2)
  260. laser.Part2.Mesh.Offset = laser.Part2.Mesh.Offset + Vector3.new(0,0,0.2)
  261. laser.Part3.Mesh.Offset = laser.Part3.Mesh.Offset + Vector3.new(0,0,0.2)
  262. laser.Part4.Mesh.Offset = laser.Part4.Mesh.Offset + Vector3.new(0,0,0.2)
  263. laser.Part5.Mesh.Offset = laser.Part5.Mesh.Offset + Vector3.new(0,0,0.2)
  264. laser.Part6.Mesh.Offset = laser.Part6.Mesh.Offset + Vector3.new(0,0,0.2)
  265. wait()
  266. end
  267. for a = 1, 2 do
  268. laser.Part1.Mesh.Offset = laser.Part1.Mesh.Offset - Vector3.new(0,0,0.2)
  269. laser.Part2.Mesh.Offset = laser.Part2.Mesh.Offset - Vector3.new(0,0,0.2)
  270. laser.Part3.Mesh.Offset = laser.Part3.Mesh.Offset - Vector3.new(0,0,0.2)
  271. laser.Part4.Mesh.Offset = laser.Part4.Mesh.Offset - Vector3.new(0,0,0.2)
  272. laser.Part5.Mesh.Offset = laser.Part5.Mesh.Offset - Vector3.new(0,0,0.2)
  273. laser.Part6.Mesh.Offset = laser.Part6.Mesh.Offset - Vector3.new(0,0,0.2)
  274. wait()
  275. end
  276. script.Parent.Fire.Value = false
  277. end
  278. wait()
  279. end
  280.  
  281. end))
  282. Script31.Name = "BrickCleanUp"
  283. Script31.Parent = Tool0
  284. Script31.Disabled = true
  285. table.insert(cors,sandbox(Script31,function()
  286. wait(90)
  287. script.Parent:Remove()
  288. end))
  289. LocalScript32.Name = "Credit"
  290. LocalScript32.Parent = Tool0
  291. table.insert(cors,sandbox(LocalScript32,function()
  292. Tool = script.Parent
  293. function equip()
  294. print("Equipped")
  295. if game.Players.LocalPlayer ~= nil then
  296. player = game.Players.LocalPlayer
  297. if (player.PlayerGui:FindFirstChild(script.SBCredit.Name) == nil) then
  298. script.SBCredit:clone().Parent = player.PlayerGui
  299. end
  300. end
  301. end
  302.  
  303. function unequip()
  304. print("Unequipped")
  305. if game.Players.LocalPlayer ~= nil then
  306. print("localplayer found")
  307. if (player.PlayerGui:FindFirstChild(script.SBCredit.Name) ~= nil) then
  308. player.PlayerGui:FindFirstChild(script.SBCredit.Name):Remove()
  309. end
  310. end
  311. end
  312.  
  313. script.Parent.Equipped:connect(equip)
  314. script.Parent.Unequipped:connect(unequip)
  315. end))
  316. LocalScript33.Name = "Local Gui"
  317. LocalScript33.Parent = Tool0
  318. table.insert(cors,sandbox(LocalScript33,function()
  319. local Tool = script.Parent;
  320. debris = game:GetService("Debris")
  321.  
  322. function stick(x, y)
  323. weld = Instance.new("Weld")
  324. weld.Part0 = x
  325. weld.Part1 = y
  326. local HitPos = x.Position
  327. local CJ = CFrame.new(HitPos)
  328. local C0 = x.CFrame:inverse() *CJ
  329. local C1 = y.CFrame:inverse() * CJ
  330. weld.C0 = C0
  331. weld.C1 = C1
  332. weld.Parent = x
  333. end
  334.  
  335. enabled = true
  336.  
  337. function onButton1Down(mouse)
  338. if (not enabled) then return end
  339. enabled = false
  340. script.Parent.Fire.Value = true
  341. targ = mouse.Target
  342. if (targ == nil) then
  343. script.Parent.Handle.Fail:play()
  344. enabled = true
  345. return
  346. end
  347. hum = targ.Parent:findFirstChild("Humanoid") or targ.Parent:findFirstChild("Zombie") or targ.Parent:findFirstChild("Alien")
  348. if (hum ~= nil) then
  349. script.Parent.Handle.Fail:play()
  350. m = Instance.new("Model")
  351. m.Name = targ.Parent.Name
  352. m.Parent = Workspace
  353. h = Instance.new("Humanoid")
  354. h.MaxHealth = 0
  355. h.Health = 0
  356. h.Name = "STONE"
  357. h.Parent = m
  358. c = Instance.new("ObjectValue")
  359. c.Name = "creator"
  360. c.Value = game.Players:findFirstChild(script.Parent.Parent.Name)
  361. c.Parent = hum
  362. k = hum.Parent:GetChildren()
  363. for i =1,#k do
  364. if (k[i].className == "Part") and (k[i].Name ~= "Head") then
  365. k[i].Anchored = true
  366. k[i].BrickColor = BrickColor.new("Really black")
  367. k[i].Material = Enum.Material.Concrete
  368. k[i].TopSurface = 0
  369. k[i].BottomSurface = 0
  370. k[i].Parent = m
  371. end end
  372.  
  373. t = hum.Parent:GetChildren()
  374. for l = 1,#t do
  375. if (t[l].className == "Tool") then
  376. j = t[l]:GetChildren()
  377. for y = 1,#j do
  378. if (j[y].className == "Part") then
  379. j[y].Anchored = true
  380. j[y].BrickColor = BrickColor.new("Really black")
  381. j[y].Material = Enum.Material.Concrete
  382. j[y].TopSurface = 0
  383. j[y].BottomSurface = 0
  384. j[y].Parent = m
  385. end end end end
  386.  
  387. q = hum.Parent:GetChildren()
  388. for w = 1,#q do
  389. if (q[w].className == "Hat") then
  390. e = q[w]:GetChildren()
  391. for a = 1,#e do
  392. if (e[a].className == "Part") then
  393. e[a].Anchored = true
  394. e[a].BrickColor = BrickColor.new("Really black")
  395. e[a].Material = Enum.Material.Concrete
  396. e[a].TopSurface = 0
  397. e[a].BottomSurface = 0
  398. e[a].Parent = m
  399. e[a].CFrame = CFrame.new(hum.Parent.Head.Position) + Vector3.new(0, 0.75, 0)
  400. end end end end
  401.  
  402. z = hum.Parent:GetChildren()
  403. for b = 1,#z do
  404. if (z[b].Name == "Head") then
  405. z[b].Anchored = true
  406. z[b].BrickColor = BrickColor.new("Really black")
  407. z[b].Material = Enum.Material.Concrete
  408. z[b].TopSurface = 0
  409. z[b].BottomSurface = 0
  410. z[b].Parent = m
  411. end end
  412. brick = script.Parent.BrickCleanUp:clone()
  413. brick.Disabled = false
  414. brick.Parent = m
  415. debris:AddItem(m, 90)
  416. end
  417. if (hum == nil) then
  418. script.Parent.Handle.Fail:play()
  419. end
  420. Hit = mouse.hit
  421. local P = Instance.new("Part")
  422. P.Name = "BulletTrail"
  423. local Place0 = script.Parent.Parent["Right Arm"].CFrame
  424. P.formFactor = 0
  425. P.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude)
  426. P.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p)
  427. P.Parent = script.Parent.Parent
  428. P.BrickColor = script.Parent.Part1.BrickColor
  429. P.Anchored = true
  430. P.CanCollide = false
  431. m = Instance.new("BlockMesh")
  432. m.Scale = Vector3.new(0.1,0.1,1)
  433. m.Parent = P
  434. for count = 1, 5 do
  435. P.Transparency = count/5
  436. wait()
  437. end
  438. P:remove()
  439. enabled = true
  440. end
  441.  
  442.  
  443.  
  444. function onEquippedLocal(mouse)
  445.  
  446.  
  447.  
  448. if mouse == nil then
  449.  
  450. print("Mouse not found")
  451.  
  452. return
  453.  
  454. end
  455.  
  456.  
  457.  
  458. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  459.  
  460. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  461. end
  462.  
  463.  
  464.  
  465.  
  466.  
  467. Tool.Equipped:connect(onEquippedLocal)
  468.  
  469. end))
  470. for i,v in pairs(mas:GetChildren()) do
  471. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  472. pcall(function() v:MakeJoints() end)
  473. end
  474. mas:Destroy()
  475. for i,v in pairs(cors) do
  476. spawn(function()
  477. pcall(v)
  478. end)
  479. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement