Advertisement
firebudgy

Untitled

May 26th, 2018
440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.78 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. Weld2 = Instance.new("Weld")
  22. Weld3 = Instance.new("Weld")
  23. Weld4 = Instance.new("Weld")
  24. Weld5 = Instance.new("Weld")
  25. Weld6 = Instance.new("Weld")
  26. Weld7 = Instance.new("Weld")
  27. Weld8 = Instance.new("Weld")
  28. Weld9 = Instance.new("Weld")
  29. Weld10 = Instance.new("Weld")
  30. Weld11 = Instance.new("Weld")
  31. Weld12 = Instance.new("Weld")
  32. Part13 = Instance.new("Part")
  33. SpecialMesh14 = Instance.new("SpecialMesh")
  34. Part15 = Instance.new("Part")
  35. SpecialMesh16 = Instance.new("SpecialMesh")
  36. Part17 = Instance.new("Part")
  37. SpecialMesh18 = Instance.new("SpecialMesh")
  38. Part19 = Instance.new("Part")
  39. SpecialMesh20 = Instance.new("SpecialMesh")
  40. Part21 = Instance.new("Part")
  41. SpecialMesh22 = Instance.new("SpecialMesh")
  42. Part23 = Instance.new("Part")
  43. SpecialMesh24 = Instance.new("SpecialMesh")
  44. Part25 = Instance.new("Part")
  45. SpecialMesh26 = Instance.new("SpecialMesh")
  46. Part27 = Instance.new("Part")
  47. SpecialMesh28 = Instance.new("SpecialMesh")
  48. Part29 = Instance.new("Part")
  49. SpecialMesh30 = Instance.new("SpecialMesh")
  50. Part31 = Instance.new("Part")
  51. SpecialMesh32 = Instance.new("SpecialMesh")
  52. Part33 = Instance.new("Part")
  53. SpecialMesh34 = Instance.new("SpecialMesh")
  54. Script35 = Instance.new("Script")
  55. LocalScript36 = Instance.new("LocalScript")
  56. Script37 = Instance.new("Script")
  57. Tool0.Name = "Medigun"
  58. Tool0.Parent = mas
  59. Tool0.GripPos = Vector3.new(0, -0.5, -0.5)
  60. Part1.Name = "Handle"
  61. Part1.Parent = Tool0
  62. Part1.BrickColor = BrickColor.new("Bright red")
  63. Part1.Rotation = Vector3.new(0.049999997, 0, 0)
  64. Part1.FormFactor = Enum.FormFactor.Symmetric
  65. Part1.Size = Vector3.new(1, 1, 1)
  66. Part1.CFrame = CFrame.new(-19, 2.00478721, 3.00000024, 1, 0, 0, 0, 0.999999702, -0.000796274282, 0, 0.000796274282, 0.999999702)
  67. Part1.BottomSurface = Enum.SurfaceType.Smooth
  68. Part1.TopSurface = Enum.SurfaceType.Smooth
  69. Part1.Color = Color3.new(0.768628, 0.156863, 0.109804)
  70. Part1.Position = Vector3.new(-19, 2.00478721, 3.00000024)
  71. Part1.Orientation = Vector3.new(0.049999997, 0, 0)
  72. Part1.Color = Color3.new(0.768628, 0.156863, 0.109804)
  73. Weld2.Parent = Part1
  74. Weld2.C0 = CFrame.new(0, 0, 0, 0.000796274282, -0.999999702, 0, 0.999999702, 0.000796274282, 0, 0, 0, 1)
  75. Weld2.Part0 = Part1
  76. Weld2.Part1 = Part13
  77. Weld3.Parent = Part1
  78. Weld3.C0 = CFrame.new(0, 0, 0, 0.000796274282, -0.999999702, 0, 0.999999702, 0.000796274282, 0, 0, 0, 1)
  79. Weld3.Part0 = Part1
  80. Weld3.Part1 = Part15
  81. Weld4.Parent = Part1
  82. Weld4.C0 = CFrame.new(0.75, 0.5, 0.5, 1, 0, 0, 0, 0.696706712, -0.717356086, 0, 0.717356086, 0.696706712)
  83. Weld4.Part0 = Part1
  84. Weld4.Part1 = Part17
  85. Weld5.Parent = Part1
  86. Weld5.C0 = CFrame.new(-0.75, 0.5, 0.5, 1, 0, 0, 0, 0.696706712, -0.717356086, 0, 0.717356086, 0.696706712)
  87. Weld5.Part0 = Part1
  88. Weld5.Part1 = Part19
  89. Weld6.Parent = Part1
  90. Weld6.C0 = CFrame.new(0, 0.949999988, 0.949999988, 0.000796274282, -0.999999702, 0, 0.999999702, 0.000796274282, 0, 0, 0, 1)
  91. Weld6.Part0 = Part1
  92. Weld6.Part1 = Part21
  93. Weld7.Parent = Part1
  94. Weld7.C0 = CFrame.new(0, 0, -0.600000024, 1, 0, 0, 0, 0.000796274282, -0.999999702, 0, 0.999999702, 0.000796274282)
  95. Weld7.Part0 = Part1
  96. Weld7.Part1 = Part23
  97. Weld8.Parent = Part1
  98. Weld8.C0 = CFrame.new(0, 0, -2, 1, 0, 0, 0, 0.000796274282, -0.999999702, 0, 0.999999702, 0.000796274282)
  99. Weld8.Part0 = Part1
  100. Weld8.Part1 = Part27
  101. Weld9.Parent = Part1
  102. Weld9.C0 = CFrame.new(0, -0.75, -0.449999988, 1, 0, 0, 0, 0.921060979, 0.389418334, 0, -0.389418334, 0.921060979)
  103. Weld9.Part0 = Part1
  104. Weld9.Part1 = Part29
  105. Weld10.Parent = Part1
  106. Weld10.C0 = CFrame.new(0, -1.35000002, -0.300000012, 1, 0, 0, 0, 0.921060979, 0.389418334, 0, -0.389418334, 0.921060979)
  107. Weld10.Part0 = Part1
  108. Weld10.Part1 = Part31
  109. Weld11.Parent = Part1
  110. Weld11.C0 = CFrame.new(0, 0, 0.5, 1, 0, 0, 0, 0.000796274282, -0.999999702, 0, 0.999999702, 0.000796274282)
  111. Weld11.Part0 = Part1
  112. Weld11.Part1 = Part33
  113. Weld12.Parent = Part1
  114. Weld12.C0 = CFrame.new(0, 0, -1.5, 1, 0, 0, 0, 0.000796274282, -0.999999702, 0, 0.999999702, 0.000796274282)
  115. Weld12.Part0 = Part1
  116. Weld12.Part1 = Part25
  117. Part13.Name = "H1"
  118. Part13.Parent = Tool0
  119. Part13.BrickColor = BrickColor.new("Dark stone grey")
  120. Part13.Rotation = Vector3.new(0.049999997, 0, 89.9499969)
  121. Part13.CanCollide = false
  122. Part13.FormFactor = Enum.FormFactor.Symmetric
  123. Part13.Size = Vector3.new(1, 1, 1)
  124. Part13.CFrame = CFrame.new(-19, 2.00478721, 3.00000024, 0.000796274282, -0.999999702, 0, 0.999999404, 0.000796274049, -0.000796274282, 0.000796274049, 6.34052753e-07, 0.999999702)
  125. Part13.BottomSurface = Enum.SurfaceType.Smooth
  126. Part13.TopSurface = Enum.SurfaceType.Smooth
  127. Part13.Color = Color3.new(0.388235, 0.372549, 0.384314)
  128. Part13.Position = Vector3.new(-19, 2.00478721, 3.00000024)
  129. Part13.Orientation = Vector3.new(0.049999997, 0, 89.9499969)
  130. Part13.Color = Color3.new(0.388235, 0.372549, 0.384314)
  131. SpecialMesh14.Parent = Part13
  132. SpecialMesh14.Scale = Vector3.new(0.75, 1.25, 0.75)
  133. SpecialMesh14.Scale = Vector3.new(0.75, 1.25, 0.75)
  134. Part15.Name = "H2"
  135. Part15.Parent = Tool0
  136. Part15.BrickColor = BrickColor.new("Dark stone grey")
  137. Part15.Rotation = Vector3.new(0.049999997, 0, 89.9499969)
  138. Part15.CanCollide = false
  139. Part15.FormFactor = Enum.FormFactor.Symmetric
  140. Part15.Size = Vector3.new(1, 1, 1)
  141. Part15.CFrame = CFrame.new(-19, 2.00478721, 3.00000024, 0.000796274282, -0.999999702, 0, 0.999999404, 0.000796274049, -0.000796274282, 0.000796274049, 6.34052753e-07, 0.999999702)
  142. Part15.BottomSurface = Enum.SurfaceType.Smooth
  143. Part15.TopSurface = Enum.SurfaceType.Smooth
  144. Part15.Color = Color3.new(0.388235, 0.372549, 0.384314)
  145. Part15.Position = Vector3.new(-19, 2.00478721, 3.00000024)
  146. Part15.Orientation = Vector3.new(0.049999997, 0, 89.9499969)
  147. Part15.Color = Color3.new(0.388235, 0.372549, 0.384314)
  148. SpecialMesh16.Parent = Part15
  149. SpecialMesh16.Scale = Vector3.new(0.349999994, 1.75, 0.349999994)
  150. SpecialMesh16.Scale = Vector3.new(0.349999994, 1.75, 0.349999994)
  151. Part17.Name = "H3"
  152. Part17.Parent = Tool0
  153. Part17.BrickColor = BrickColor.new("Dark stone grey")
  154. Part17.Rotation = Vector3.new(45.8799973, 0, 0)
  155. Part17.CanCollide = false
  156. Part17.FormFactor = Enum.FormFactor.Symmetric
  157. Part17.Size = Vector3.new(1, 1, 1)
  158. Part17.CFrame = CFrame.new(-18.25, 2.50438881, 3.50039816, 1, 0, 0, 0, 0.696135342, -0.717910588, 0, 0.717910588, 0.696135342)
  159. Part17.BottomSurface = Enum.SurfaceType.Smooth
  160. Part17.TopSurface = Enum.SurfaceType.Smooth
  161. Part17.Color = Color3.new(0.388235, 0.372549, 0.384314)
  162. Part17.Position = Vector3.new(-18.25, 2.50438881, 3.50039816)
  163. Part17.Orientation = Vector3.new(45.8799973, 0, 0)
  164. Part17.Color = Color3.new(0.388235, 0.372549, 0.384314)
  165. SpecialMesh18.Parent = Part17
  166. SpecialMesh18.Scale = Vector3.new(0.25, 1.5, 0.25)
  167. SpecialMesh18.Scale = Vector3.new(0.25, 1.5, 0.25)
  168. Part19.Name = "H4"
  169. Part19.Parent = Tool0
  170. Part19.BrickColor = BrickColor.new("Dark stone grey")
  171. Part19.Rotation = Vector3.new(45.8799973, 0, 0)
  172. Part19.CanCollide = false
  173. Part19.FormFactor = Enum.FormFactor.Symmetric
  174. Part19.Size = Vector3.new(1, 1, 1)
  175. Part19.CFrame = CFrame.new(-19.75, 2.50438881, 3.50039816, 1, 0, 0, 0, 0.696135342, -0.717910588, 0, 0.717910588, 0.696135342)
  176. Part19.BottomSurface = Enum.SurfaceType.Smooth
  177. Part19.TopSurface = Enum.SurfaceType.Smooth
  178. Part19.Color = Color3.new(0.388235, 0.372549, 0.384314)
  179. Part19.Position = Vector3.new(-19.75, 2.50438881, 3.50039816)
  180. Part19.Orientation = Vector3.new(45.8799973, 0, 0)
  181. Part19.Color = Color3.new(0.388235, 0.372549, 0.384314)
  182. SpecialMesh20.Parent = Part19
  183. SpecialMesh20.Scale = Vector3.new(0.25, 1.5, 0.25)
  184. SpecialMesh20.Scale = Vector3.new(0.25, 1.5, 0.25)
  185. Part21.Name = "H5"
  186. Part21.Parent = Tool0
  187. Part21.BrickColor = BrickColor.new("Dark stone grey")
  188. Part21.Rotation = Vector3.new(0.049999997, 0, 89.9499969)
  189. Part21.CanCollide = false
  190. Part21.FormFactor = Enum.FormFactor.Symmetric
  191. Part21.Size = Vector3.new(1, 1, 1)
  192. Part21.CFrame = CFrame.new(-19, 2.95403051, 3.95075631, 0.000796274282, -0.999999702, 0, 0.999999404, 0.000796274049, -0.000796274282, 0.000796274049, 6.34052753e-07, 0.999999702)
  193. Part21.BottomSurface = Enum.SurfaceType.Smooth
  194. Part21.TopSurface = Enum.SurfaceType.Smooth
  195. Part21.Color = Color3.new(0.388235, 0.372549, 0.384314)
  196. Part21.Position = Vector3.new(-19, 2.95403051, 3.95075631)
  197. Part21.Orientation = Vector3.new(0.049999997, 0, 89.9499969)
  198. Part21.Color = Color3.new(0.388235, 0.372549, 0.384314)
  199. SpecialMesh22.Parent = Part21
  200. SpecialMesh22.Scale = Vector3.new(0.25, 1.5, 0.25)
  201. SpecialMesh22.Scale = Vector3.new(0.25, 1.5, 0.25)
  202. Part23.Name = "H6"
  203. Part23.Parent = Tool0
  204. Part23.BrickColor = BrickColor.new("Dark stone grey")
  205. Part23.Rotation = Vector3.new(90, 0, 0)
  206. Part23.CanCollide = false
  207. Part23.FormFactor = Enum.FormFactor.Symmetric
  208. Part23.Size = Vector3.new(1, 1, 1)
  209. Part23.CFrame = CFrame.new(-19, 2.005265, 2.40000033, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  210. Part23.BottomSurface = Enum.SurfaceType.Smooth
  211. Part23.TopSurface = Enum.SurfaceType.Smooth
  212. Part23.Color = Color3.new(0.388235, 0.372549, 0.384314)
  213. Part23.Position = Vector3.new(-19, 2.005265, 2.40000033)
  214. Part23.Orientation = Vector3.new(90, 0, 0)
  215. Part23.Color = Color3.new(0.388235, 0.372549, 0.384314)
  216. SpecialMesh24.Parent = Part23
  217. SpecialMesh24.Scale = Vector3.new(1.25, 0.75, 1.25)
  218. SpecialMesh24.Scale = Vector3.new(1.25, 0.75, 1.25)
  219. Part25.Name = "H7"
  220. Part25.Parent = Tool0
  221. Part25.BrickColor = BrickColor.new("Dark stone grey")
  222. Part25.Rotation = Vector3.new(90, 0, 0)
  223. Part25.CanCollide = false
  224. Part25.FormFactor = Enum.FormFactor.Symmetric
  225. Part25.Size = Vector3.new(1, 1, 1)
  226. Part25.CFrame = CFrame.new(-19, 2.00598168, 1.50000072, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  227. Part25.BottomSurface = Enum.SurfaceType.Smooth
  228. Part25.TopSurface = Enum.SurfaceType.Smooth
  229. Part25.Color = Color3.new(0.388235, 0.372549, 0.384314)
  230. Part25.Position = Vector3.new(-19, 2.00598168, 1.50000072)
  231. Part25.Orientation = Vector3.new(90, 0, 0)
  232. Part25.Color = Color3.new(0.388235, 0.372549, 0.384314)
  233. SpecialMesh26.Parent = Part25
  234. SpecialMesh26.Scale = Vector3.new(0.850000024, 1.5, 0.850000024)
  235. SpecialMesh26.Scale = Vector3.new(0.850000024, 1.5, 0.850000024)
  236. Part27.Name = "H8"
  237. Part27.Parent = Tool0
  238. Part27.BrickColor = BrickColor.new("Dark stone grey")
  239. Part27.Rotation = Vector3.new(90, 0, 0)
  240. Part27.CanCollide = false
  241. Part27.FormFactor = Enum.FormFactor.Symmetric
  242. Part27.Size = Vector3.new(1, 1, 1)
  243. Part27.CFrame = CFrame.new(-19, 2.00637984, 1.00000083, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  244. Part27.BottomSurface = Enum.SurfaceType.Smooth
  245. Part27.TopSurface = Enum.SurfaceType.Smooth
  246. Part27.Color = Color3.new(0.388235, 0.372549, 0.384314)
  247. Part27.Position = Vector3.new(-19, 2.00637984, 1.00000083)
  248. Part27.Orientation = Vector3.new(90, 0, 0)
  249. Part27.Color = Color3.new(0.388235, 0.372549, 0.384314)
  250. SpecialMesh28.Parent = Part27
  251. SpecialMesh28.Scale = Vector3.new(1.14999998, 0.649999976, 1.14999998)
  252. SpecialMesh28.Scale = Vector3.new(1.14999998, 0.649999976, 1.14999998)
  253. Part29.Name = "H9"
  254. Part29.Parent = Tool0
  255. Part29.BrickColor = BrickColor.new("Dark stone grey")
  256. Part29.Rotation = Vector3.new(-22.8699989, 0, 0)
  257. Part29.CanCollide = false
  258. Part29.FormFactor = Enum.FormFactor.Symmetric
  259. Part29.Size = Vector3.new(1, 1, 1)
  260. Part29.CFrame = CFrame.new(-19, 1.25514579, 2.54940319, 1, 0, 0, 0, 0.921370745, 0.388684809, 0, -0.388684809, 0.921370745)
  261. Part29.BottomSurface = Enum.SurfaceType.Smooth
  262. Part29.TopSurface = Enum.SurfaceType.Smooth
  263. Part29.Color = Color3.new(0.388235, 0.372549, 0.384314)
  264. Part29.Position = Vector3.new(-19, 1.25514579, 2.54940319)
  265. Part29.Orientation = Vector3.new(-22.8699989, 0, 0)
  266. Part29.Color = Color3.new(0.388235, 0.372549, 0.384314)
  267. SpecialMesh30.Parent = Part29
  268. SpecialMesh30.Scale = Vector3.new(0.349999994, 1, 0.5)
  269. SpecialMesh30.MeshType = Enum.MeshType.Brick
  270. SpecialMesh30.Scale = Vector3.new(0.349999994, 1, 0.5)
  271. Part31.Name = "H10"
  272. Part31.Parent = Tool0
  273. Part31.BrickColor = BrickColor.new("Dark stone grey")
  274. Part31.Rotation = Vector3.new(-22.8699989, 0, 0)
  275. Part31.CanCollide = false
  276. Part31.FormFactor = Enum.FormFactor.Symmetric
  277. Part31.Size = Vector3.new(1, 1, 1)
  278. Part31.CFrame = CFrame.new(-19, 0.655026436, 2.69892526, 1, 0, 0, 0, 0.921370745, 0.388684809, 0, -0.388684809, 0.921370745)
  279. Part31.BottomSurface = Enum.SurfaceType.Smooth
  280. Part31.TopSurface = Enum.SurfaceType.Smooth
  281. Part31.Color = Color3.new(0.388235, 0.372549, 0.384314)
  282. Part31.Position = Vector3.new(-19, 0.655026436, 2.69892526)
  283. Part31.Orientation = Vector3.new(-22.8699989, 0, 0)
  284. Part31.Color = Color3.new(0.388235, 0.372549, 0.384314)
  285. SpecialMesh32.Parent = Part31
  286. SpecialMesh32.Scale = Vector3.new(0.349999994, 0.25, 0.75)
  287. SpecialMesh32.MeshType = Enum.MeshType.Brick
  288. SpecialMesh32.Scale = Vector3.new(0.349999994, 0.25, 0.75)
  289. Part33.Name = "H11"
  290. Part33.Parent = Tool0
  291. Part33.BrickColor = BrickColor.new("Dark stone grey")
  292. Part33.Rotation = Vector3.new(90, 0, 0)
  293. Part33.CanCollide = false
  294. Part33.FormFactor = Enum.FormFactor.Symmetric
  295. Part33.Size = Vector3.new(1, 1, 1)
  296. Part33.CFrame = CFrame.new(-19, 2.00438905, 3.5, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  297. Part33.BottomSurface = Enum.SurfaceType.Smooth
  298. Part33.TopSurface = Enum.SurfaceType.Smooth
  299. Part33.Color = Color3.new(0.388235, 0.372549, 0.384314)
  300. Part33.Position = Vector3.new(-19, 2.00438905, 3.5)
  301. Part33.Orientation = Vector3.new(90, 0, 0)
  302. Part33.Color = Color3.new(0.388235, 0.372549, 0.384314)
  303. SpecialMesh34.Parent = Part33
  304. SpecialMesh34.Scale = Vector3.new(0.860000014, 1.5, 0.860000014)
  305. SpecialMesh34.Scale = Vector3.new(0.860000014, 1.5, 0.860000014)
  306. Script35.Name = "WeldScript"
  307. Script35.Parent = Tool0
  308. table.insert(cors,sandbox(Script35,function()
  309. print("TOOL EVENT: " .. script.Parent.Parent.Parent.Name:upper() .. "'s " .. script.Parent.Name:upper() .. " Loaded")
  310. local hand = script.Parent.Handle
  311. local h1 = script.Parent.H1
  312. local h2 = script.Parent.H2
  313. local h3 = script.Parent.H3
  314. local h4 = script.Parent.H4
  315. local h5 = script.Parent.H5
  316. local h6 = script.Parent.H6
  317. local h7 = script.Parent.H7
  318. local h8 = script.Parent.H8
  319. local h9 = script.Parent.H9
  320. local h10 = script.Parent.H10
  321. local h11 = script.Parent.H11
  322. local medipack = Instance.new("Part")
  323. medipack.formFactor = 0
  324. medipack.TopSurface = 0
  325. medipack.BottomSurface = 0
  326. medipack.Size = Vector3.new(2,2,1)
  327. medipack.BrickColor = BrickColor.new(1)
  328. medipack.Name = "Medipack"
  329. medipack.Locked = true
  330. local decal = Instance.new("Decal")
  331. decal.Face = "Back"
  332. decal.Texture = "http://www.roblox.com/asset/?id=5235213"
  333. decal.Parent = medipack
  334. local parts = {}
  335. local c = script.Parent:GetChildren()
  336.  
  337. local equipped = false
  338.  
  339. for i = 1, #c do
  340. if c[i].className == "Part" then
  341. table.insert(parts, c[i])
  342. end
  343. end
  344.  
  345. function onWeld()
  346. local c = hand:GetChildren()
  347.  
  348. for i = 1, #c do
  349. if c[i].className == "Weld" then
  350. c[i]:Remove()
  351. end
  352. end
  353.  
  354. for i = 1, #parts do
  355. parts[i].Parent = script.Parent
  356. end
  357.  
  358. local w = Instance.new("Weld")
  359. w.Parent = hand
  360. w.Part0 = hand
  361. w.Part1 = h1
  362. w.C0 = CFrame.fromEulerAnglesXYZ(0,0,1.57)
  363. local w = Instance.new("Weld")
  364. w.Parent = hand
  365. w.Part0 = hand
  366. w.Part1 = h2
  367. w.C0 = CFrame.fromEulerAnglesXYZ(0,0,1.57)
  368. local w = Instance.new("Weld")
  369. w.Parent = hand
  370. w.Part0 = hand
  371. w.Part1 = h3
  372. w.C0 = CFrame.new(0.75,0.5,0.5) * CFrame.fromEulerAnglesXYZ(0.8,0,0)
  373. local w = Instance.new("Weld")
  374. w.Parent = hand
  375. w.Part0 = hand
  376. w.Part1 = h4
  377. w.C0 = CFrame.new(-0.75,0.5,0.5) * CFrame.fromEulerAnglesXYZ(0.8,0,0)
  378. local w = Instance.new("Weld")
  379. w.Parent = hand
  380. w.Part0 = hand
  381. w.Part1 = h5
  382. w.C0 = CFrame.new(0,0.95,0.95) * CFrame.fromEulerAnglesXYZ(0,0,1.57)
  383. local w = Instance.new("Weld")
  384. w.Parent = hand
  385. w.Part0 = hand
  386. w.Part1 = h6
  387. w.C0 = CFrame.new(0,0,-0.6) * CFrame.fromEulerAnglesXYZ(1.57,0,0)
  388. local w = Instance.new("Weld")
  389. w.Parent = hand
  390. w.Part0 = hand
  391. w.Part1 = h7
  392. w.C0 = CFrame.new(0,0,-1.5) * CFrame.fromEulerAnglesXYZ(1.57,0,0)
  393. local w = Instance.new("Weld")
  394. w.Parent = hand
  395. w.Part0 = hand
  396. w.Part1 = h8
  397. w.C0 = CFrame.new(0,0,-2) * CFrame.fromEulerAnglesXYZ(1.57,0,0)
  398. local w = Instance.new("Weld")
  399. w.Parent = hand
  400. w.Part0 = hand
  401. w.Part1 = h9
  402. w.C0 = CFrame.new(0,-0.75,-0.45) * CFrame.fromEulerAnglesXYZ(-0.4,0,0)
  403. local w = Instance.new("Weld")
  404. w.Parent = hand
  405. w.Part0 = hand
  406. w.Part1 = h10
  407. w.C0 = CFrame.new(0,-1.35,-0.3) * CFrame.fromEulerAnglesXYZ(-0.4,0,0)
  408. local w = Instance.new("Weld")
  409. w.Parent = hand
  410. w.Part0 = hand
  411. w.Part1 = h11
  412. w.C0 = CFrame.new(0,0,0.5) * CFrame.fromEulerAnglesXYZ(1.57,0,0)
  413. end
  414.  
  415. function onEquip()
  416. equipped = true
  417. medipack.Parent = script.Parent
  418. local w = Instance.new("Weld")
  419. w.Parent = script.Parent.Parent.Torso
  420. w.Part0 = w.Parent
  421. w.Part1 = medipack
  422. w.C0 = CFrame.new(0,0,1)
  423. end
  424.  
  425. function onUnequip()
  426. equipped = false
  427. medipack.Parent = nil
  428. end
  429.  
  430. script.Parent.Equipped:connect(onWeld)
  431. script.Parent.Unequipped:connect(onWeld)
  432. script.Parent.Equipped:connect(onEquip)
  433. script.Parent.Unequipped:connect(onUnequip)
  434.  
  435. end))
  436. LocalScript36.Name = "LocalHeal"
  437. LocalScript36.Parent = Tool0
  438. table.insert(cors,sandbox(LocalScript36,function()
  439. local beam = Instance.new("Part")
  440. beam.formFactor = 0
  441. beam.Transparency = 0.3
  442. beam.CanCollide = false
  443. beam.Anchored = true
  444. beam.Locked = true
  445. beam.Name = "Beam"
  446. beam.Size = Vector3.new(1,1,1)
  447. local m = Instance.new("SpecialMesh")
  448. m.Parent = beam
  449. local h = Instance.new("Hint")
  450.  
  451. --
  452.  
  453. local uber = 0
  454. local ubercharging = false
  455. local healing = ""
  456. local healingnow = false
  457. local equipped = false
  458. local abletouber = true
  459.  
  460. function healPlayer(human)
  461. local player = game.Players:GetPlayerFromCharacter(human)
  462. if player ~= nil and player.Neutral == false and player.TeamColor ~= game.Players:GetPlayerFromCharacter(script.Parent.Parent).TeamColor then
  463. spark()
  464. end
  465.  
  466. healing = human
  467. healingnow = true
  468. print("TOOL EVENT: " .. script.Parent.Parent.Name:upper() .. " is HEALING " .. human.Name:upper())
  469. beam.Parent = script.Parent
  470. beam.BrickColor = game.Players:GetPlayerFromCharacter(script.Parent.Parent).TeamColor
  471. while healingnow == true do
  472. if (healing.Torso.Position - script.Parent.H8.Position).magnitude <= 25 then
  473. beam.CFrame = CFrame.new((human.Torso.Position + script.Parent.H8.Position) / 2, human.Torso.Position) * CFrame.fromEulerAnglesXYZ(1.57,0,0)
  474. m.Scale = (m.Scale - Vector3.new(0,m.Scale.y,0)) + Vector3.new(0,1,0)
  475. m.Scale = m.Scale + Vector3.new(0,(human.Torso.Position - script.Parent.H8.Position).magnitude - 1,0)
  476. human.Humanoid.Health = human.Humanoid.Health + 0.5
  477. if uber < 1000 and abletouber == true then
  478. uber = uber + 1
  479. end
  480. h.Text = "Ubercharge: ("
  481. for i = 1, math.floor(uber / 100) do
  482. h.Text = h.Text .. "|"
  483. end
  484. for i = 1, 10 - math.floor(uber / 100) do
  485. h.Text = h.Text .. "."
  486. end
  487. h.Text = h.Text .. ")"
  488. else
  489. healingnow = false
  490. healing = ""
  491. ubercharging = false
  492. beam.Parent = nil
  493. spark()
  494. break
  495. end
  496. wait(0.01)
  497. end
  498. end
  499.  
  500. function spark()
  501. print("TOOL EVENT: " .. script.Parent.Parent.Name:upper() .. " has SPARKED with " .. script.Parent.Name:upper())
  502. local s = Instance.new("Sparkles")
  503. s.Color = Color3.new(1,0,0)
  504. s.Parent = script.Parent.Handle
  505. wait(0.1)
  506. s:Remove()
  507. end
  508.  
  509. function onButton1Down(mouse)
  510. if mouse.Target == nil then
  511. return
  512. end
  513.  
  514. if mouse.Target.Parent == nil then
  515. return
  516. end
  517.  
  518. if mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  519. healPlayer(mouse.Target.Parent)
  520. else
  521. spark()
  522. end
  523. end
  524.  
  525. function onButton1Up()
  526. healingnow = false
  527. healing = ""
  528. ubercharging = false
  529. m.Scale = (m.Scale - Vector3.new(0,m.Scale.y,0)) + Vector3.new(0,1,0)
  530. beam.Parent = nil
  531. end
  532.  
  533. function onKeyDown(key)
  534. key:lower()
  535. if key == "u" then
  536. if uber == 1000 then
  537. abletouber = false
  538. local things = {}
  539. uber = 0
  540. print("TOOL EVENT: " .. script.Parent.Parent.Name:upper() .. " is UBERCHARGING")
  541. h.Text = "Ubercharge: ("
  542. for i = 1, math.floor(uber / 100) do
  543. h.Text = h.Text .. "|"
  544. end
  545. for i = 1, 10 - math.floor(uber / 100) do
  546. h.Text = h.Text .. "."
  547. end
  548. h.Text = h.Text .. ")"
  549. local c = script.Parent.Parent:GetChildren()
  550. for i = 1, #c do
  551. if c[i].className == "Part" then
  552. c[i].Reflectance = c[i].Reflectance + 0.5
  553. table.insert(things, c[i])
  554. end
  555. end
  556. local ff = Instance.new("ForceField")
  557. table.insert(things, ff)
  558. ff.Parent = script.Parent.Parent
  559. if healing ~= "" then
  560. local b = healing:GetChildren()
  561. for i = 1, #b do
  562. if b[i].className == "Part" then
  563. b[i].Reflectance = b[i].Reflectance + 0.5
  564. table.insert(things, b[i])
  565. end
  566. end
  567. local sf = Instance.new("ForceField")
  568. sf.Parent = healing
  569. table.insert(things, sf)
  570. end
  571. wait(10)
  572. local c = things
  573. for i = 1, #c do
  574. if c[i].className == "Part" then
  575. c[i].Reflectance = c[i].Reflectance - 0.5
  576. elseif c[i].className == "ForceField" then
  577. c[i]:Remove()
  578. end
  579. end
  580. abletouber = true
  581. end
  582. end
  583. end
  584.  
  585. function onEquip(mouse)
  586. h.Parent = game.Players:GetPlayerFromCharacter(script.Parent.Parent)
  587. h.Text = "Ubercharge: ("
  588. for i = 1, math.floor(uber / 100) do
  589. h.Text = h.Text .. "|"
  590. end
  591. for i = 1, 10 - math.floor(uber / 100) do
  592. h.Text = h.Text .. "."
  593. end
  594. h.Text = h.Text .. ")"
  595. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  596. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  597. mouse.Button1Up:connect(onButton1Up)
  598. mouse.KeyDown:connect(onKeyDown)
  599. end
  600.  
  601. function onUnequip()
  602. h.Parent = nil
  603. healing = ""
  604. healingnow = false
  605. ubercharging = false
  606. beam.Parent = nil
  607. m.Scale = (m.Scale - Vector3.new(0,m.Scale.y,0)) + Vector3.new(0,1,0)
  608. end
  609.  
  610. script.Parent.Equipped:connect(onEquip)
  611. script.Parent.Unequipped:connect(onUnequip)
  612.  
  613. while true do
  614. for i = 1, 5 do
  615. m.Scale = m.Scale + Vector3.new(0.1,0,0.1)
  616. wait(0.1)
  617. end
  618. for i = 1, 5 do
  619. m.Scale = m.Scale - Vector3.new(0.1,0,0.1)
  620. wait(0.1)
  621. end
  622. end
  623.  
  624. end))
  625. Script37.Name = "PUT THIS IN THE WEAPON"
  626. Script37.Parent = Tool0
  627. table.insert(cors,sandbox(Script37,function()
  628. local debounce = false
  629.  
  630. function getPlayer(humanoid)
  631. local players = game.Players:children()
  632. for i = 1, #players do
  633. if players[i].Character.Humanoid == humanoid then return players[i] end
  634. end
  635. return nil
  636. end
  637.  
  638. function onTouch(part)
  639.  
  640. local human = part.Parent:findFirstChild("Humanoid")
  641. if (human ~= nil) and debounce == false then
  642.  
  643. debounce = true
  644.  
  645. local player = getPlayer(human)
  646.  
  647. if (player == nil) then return end
  648.  
  649. script.Parent:clone().Parent = player.Backpack
  650.  
  651. wait(2)
  652. debounce = false
  653. end
  654. end
  655.  
  656.  
  657. script.Parent.Parent.Touched:connect(onTouch)
  658.  
  659. end))
  660. for i,v in pairs(mas:GetChildren()) do
  661. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  662. pcall(function() v:MakeJoints() end)
  663. end
  664. mas:Destroy()
  665. for i,v in pairs(cors) do
  666. spawn(function()
  667. pcall(v)
  668. end)
  669. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement