Advertisement
deezfai

Untitled

Aug 2nd, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.18 KB | None | 0 0
  1.  
  2. if script == nil then return end
  3.  
  4.  
  5. Player = game.Players.LocalPlayer
  6. Name = "Artillery Beacon"
  7. selected = false
  8. Button1Down = false
  9. thrown = false
  10.  
  11.  
  12. function makeParts(format)
  13. local beacon = Instance.new("Model")
  14. beacon.Name = Name
  15. beacon.Parent = Player.Character
  16. local pm = Instance.new("Part")
  17. pm.Name = "Handle"
  18. pm.FormFactor = "Custom"
  19. pm.Size = Vector3.new(1, 1, 1)
  20. pm.BrickColor = BrickColor.new("Really black")
  21. pm.Locked = true
  22. pm.TopSurface = 0
  23. pm.BottomSurface = 0
  24. pm.Parent = beacon
  25. local m = Instance.new("SpecialMesh")
  26. m.MeshType = "Brick"
  27. m.Scale = Vector3.new(0.5, 1.25, 0.2)
  28. m.Parent = pm
  29. local w = Instance.new("Weld")
  30. w.Part0 = pm
  31. if format == "hand" then
  32. w.Part1 = Player.Character:FindFirstChild("Right Arm")
  33. w.C0 = CFrame.new(-1.2, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(90), 0, math.rad(90))
  34. w.C1 = CFrame.new()
  35. elseif format == "holster" then
  36. w.Part1 = Player.Character:FindFirstChild("Torso")
  37. w.C0 = CFrame.new(0.7, 0.25, 0.6)
  38. w.C1 = CFrame.new()
  39. beacon.Name = Name.. " (Holstered)"
  40. end
  41. w.Parent = pm
  42. local s = Instance.new("Sound")
  43. s.Name = "Explode"
  44. s.SoundId = "http://www.roblox.com/Asset/?id=2101148"
  45. s.Volume = 1
  46. s.Pitch = 1
  47. s.Looped = false
  48. s.Parent = pm
  49. local s = Instance.new("Sound")
  50. s.Name = "Beep"
  51. s.SoundId = "http://www.roblox.com/Asset/?id=15666462"
  52. s.Volume = 1
  53. s.Pitch = 0.75
  54. s.Looped = true
  55. s.Parent = pm
  56. local p = Instance.new("Part")
  57. p.Name = "Antenna"
  58. p.FormFactor = "Custom"
  59. p.Size = Vector3.new(1, 1, 1)
  60. p.BrickColor = BrickColor.new("Dark stone grey")
  61. p.Transparency = 0
  62. p.Locked = true
  63. p.TopSurface = 0
  64. p.BottomSurface = 0
  65. p.Parent = beacon
  66. local m = Instance.new("CylinderMesh")
  67. m.Scale = Vector3.new(0.1, 0.5, 0.1)
  68. m.Parent = p
  69. local w = Instance.new("Weld")
  70. w.Part0 = p
  71. w.Part1 = pm
  72. w.C0 = CFrame.new(0.1, -0.85, 0)
  73. w.C1 = CFrame.new()
  74. w.Parent = p
  75. local p = Instance.new("Part")
  76. p.Name = "Light"
  77. p.FormFactor = "Custom"
  78. p.Size = Vector3.new(1, 1, 1)
  79. p.BrickColor = BrickColor.new("Bright green")
  80. p.Transparency = 1
  81. p.Locked = true
  82. p.TopSurface = 0
  83. p.BottomSurface = 0
  84. p.Parent = beacon
  85. local m = Instance.new("SpecialMesh")
  86. m.MeshType = "Sphere"
  87. m.Scale = Vector3.new(0.1, 0.1, 0.1)
  88. m.Parent = p
  89. local w = Instance.new("Weld")
  90. w.Part0 = p
  91. w.Part1 = pm
  92. w.C0 = CFrame.new(-0.175, -0.64, 0)
  93. w.C1 = CFrame.new()
  94. w.Parent = p
  95. end
  96.  
  97.  
  98. function removeParts(format)
  99. if format == "hand" then
  100. if Player.Character:FindFirstChild(Name) ~= nil then
  101. Player.Character[Name]:Remove()
  102. end
  103. elseif format == "holster" then
  104. if Player.Character:FindFirstChild(Name.. " (Holstered)") ~= nil then
  105. Player.Character[Name.. " (Holstered)"]:Remove()
  106. end
  107. end
  108. end
  109.  
  110.  
  111. function SetAngle(Joint, Angle, Character)
  112. if Character == nil then return false end
  113. local Joints = {
  114. Character.Torso:FindFirstChild("Right Shoulder 2"),
  115. Character.Torso:FindFirstChild("Left Shoulder 2"),
  116. Character.Torso:FindFirstChild("Right Hip 2"),
  117. Character.Torso:FindFirstChild("Left Hip 2")
  118. }
  119. if Joints[Joint] == nil then return false end
  120. if Joint == 1 or Joint == 3 then
  121. Joints[Joint].DesiredAngle = Angle
  122. end
  123. if Joint == 2 or Joint == 4 then
  124. Joints[Joint].DesiredAngle = -Angle
  125. end
  126. end
  127.  
  128.  
  129. function ForceAngle(Joint, Angle, Character)
  130. if Character == nil then return false end
  131. local Joints = {
  132. Character.Torso:FindFirstChild("Right Shoulder 2"),
  133. Character.Torso:FindFirstChild("Left Shoulder 2"),
  134. Character.Torso:FindFirstChild("Right Hip 2"),
  135. Character.Torso:FindFirstChild("Left Hip 2")
  136. }
  137. if Joints[Joint] == nil then return false end
  138. if Joint == 1 or Joint == 3 then
  139. Joints[Joint].DesiredAngle = Angle
  140. Joints[Joint].CurrentAngle = Angle
  141. end
  142. if Joint == 2 or Joint == 4 then
  143. Joints[Joint].DesiredAngle = -Angle
  144. Joints[Joint].CurrentAngle = -Angle
  145. end
  146. end
  147.  
  148.  
  149. function SetSpeed(Joint, Speed, Character)
  150. if Character == nil then return false end
  151. local Joints = {
  152. Character.Torso:FindFirstChild("Right Shoulder 2"),
  153. Character.Torso:FindFirstChild("Left Shoulder 2"),
  154. Character.Torso:FindFirstChild("Right Hip 2"),
  155. Character.Torso:FindFirstChild("Left Hip 2")
  156. }
  157. if Joints[Joint] == nil then return false end
  158. Joints[Joint].MaxVelocity = Speed
  159. end
  160.  
  161.  
  162. function DisableLimb(Limb, Character)
  163. if Character == nil then return false end
  164. if Character:FindFirstChild("Torso") == nil then return false end
  165. local Joints = {
  166. Character.Torso:FindFirstChild("Right Shoulder"),
  167. Character.Torso:FindFirstChild("Left Shoulder"),
  168. Character.Torso:FindFirstChild("Right Hip"),
  169. Character.Torso:FindFirstChild("Left Hip")
  170. }
  171. local Limbs = {
  172. Character:FindFirstChild("Right Arm"),
  173. Character:FindFirstChild("Left Arm"),
  174. Character:FindFirstChild("Right Leg"),
  175. Character:FindFirstChild("Left Leg")
  176. }
  177. if Joints[Limb] == nil then return false end
  178. if Limbs[Limb] == nil then return false end
  179. local Joint = Instance.new("Motor")
  180. Joint.Parent = Character.Torso
  181. Joint.Part0 = Character.Torso
  182. Joint.Part1 = Limbs[Limb]
  183. if Limb == 1 then
  184. Joint.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  185. Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  186. Joint.Name = "Right Shoulder 2"
  187. elseif Limb == 2 then
  188. Joint.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  189. Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  190. Joint.Name = "Left Shoulder 2"
  191. elseif Limb == 3 then
  192. Joint.C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  193. Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  194. Joint.Name = "Right Hip 2"
  195. elseif Limb == 4 then
  196. Joint.C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  197. Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  198. Joint.Name = "Left Hip 2"
  199. end
  200. Joint.MaxVelocity = Joints[Limb].MaxVelocity
  201. Joint.CurrentAngle = Joints[Limb].CurrentAngle
  202. Joint.DesiredAngle = Joints[Limb].DesiredAngle
  203. Joints[Limb]:Remove()
  204. end
  205.  
  206.  
  207. function ResetLimbCFrame(Limb, Character)
  208. if Character == nil then return false end
  209. if Character.Parent == nil then return false end
  210. if Character:FindFirstChild("Torso") == nil then return false end
  211. local Joints = {
  212. Character.Torso:FindFirstChild("Right Shoulder 2"),
  213. Character.Torso:FindFirstChild("Left Shoulder 2"),
  214. Character.Torso:FindFirstChild("Right Hip 2"),
  215. Character.Torso:FindFirstChild("Left Hip 2")
  216. }
  217. local Limbs = {
  218. Character:FindFirstChild("Right Arm"),
  219. Character:FindFirstChild("Left Arm"),
  220. Character:FindFirstChild("Right Leg"),
  221. Character:FindFirstChild("Left Leg")
  222. }
  223. if Joints[Limb] == nil then return false end
  224. if Limbs[Limb] == nil then return false end
  225. if Limb == 1 then
  226. Joints[Limb].C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  227. Joints[Limb].C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  228. elseif Limb == 2 then
  229. Joints[Limb].C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  230. Joints[Limb].C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  231. elseif Limb == 3 then
  232. Joints[Limb].C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  233. Joints[Limb].C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  234. elseif Limb == 4 then
  235. Joints[Limb].C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  236. Joints[Limb].C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  237. end
  238. end
  239.  
  240.  
  241. function EnableLimb(Limb, Character)
  242. if Character == nil then return false end
  243. if Character:FindFirstChild("Torso") == nil then return false end
  244. local Joints = {
  245. Character.Torso:FindFirstChild("Right Shoulder 2"),
  246. Character.Torso:FindFirstChild("Left Shoulder 2"),
  247. Character.Torso:FindFirstChild("Right Hip 2"),
  248. Character.Torso:FindFirstChild("Left Hip 2")
  249. }
  250. local Limbs = {
  251. Character:FindFirstChild("Right Arm"),
  252. Character:FindFirstChild("Left Arm"),
  253. Character:FindFirstChild("Right Leg"),
  254. Character:FindFirstChild("Left Leg")
  255. }
  256. if Joints[Limb] == nil then return false end
  257. if Limbs[Limb] == nil then return false end
  258. if Limb == 1 then
  259. Joints[Limb].Name = "Right Shoulder"
  260. elseif Limb == 2 then
  261. Joints[Limb].Name = "Left Shoulder"
  262. elseif Limb == 3 then
  263. Joints[Limb].Name = "Right Hip"
  264. elseif Limb == 4 then
  265. Joints[Limb].Name = "Left Hip"
  266. end
  267. Animate = Character:FindFirstChild("Animate")
  268. if Animate == nil then return false end
  269. Animate = Animate:Clone()
  270. Character.Animate:Remove()
  271. Animate.Parent = Character
  272. end
  273.  
  274.  
  275. function Weld(x, y)
  276. local weld = Instance.new("Weld")
  277. weld.Part0 = x
  278. weld.Part1 = y
  279. CJ = CFrame.new(x.Position)
  280. C0 = x.CFrame:inverse() * CJ
  281. C1 = y.CFrame:inverse() * CJ
  282. weld.C0 = C0
  283. weld.C1 = C1
  284. weld.Parent = x
  285. end
  286.  
  287.  
  288. function tagHumanoid(humanoid)
  289. local tag = Instance.new("ObjectValue")
  290. tag.Name = "creator"
  291. tag.Value = Player
  292. tag.Parent = humanoid
  293. local tag = Instance.new("StringValue")
  294. tag.Name = "creatorType1"
  295. tag.Value = Name
  296. tag.Parent = humanoid
  297. local tag = Instance.new("StringValue")
  298. tag.Name = "creatorType2"
  299. tag.Value = "blown to pieces"
  300. tag.Parent = humanoid
  301. end
  302.  
  303.  
  304. function untagHumanoid(humanoid)
  305. if humanoid ~= nil then
  306. local tag = humanoid:FindFirstChild("creator")
  307. if tag ~= nil then
  308. tag:Remove()
  309. end
  310. local tag = humanoid:FindFirstChild("creatorType1")
  311. if tag ~= nil then
  312. tag:Remove()
  313. end
  314. local tag = humanoid:FindFirstChild("creatorType2")
  315. if tag ~= nil then
  316. tag:Remove()
  317. end
  318. end
  319. end
  320.  
  321.  
  322. function fire(v)
  323. if Player.Character:FindFirstChild(Name) == nil then makeParts("hand") end
  324. if Player.Character[Name]:FindFirstChild("Handle") == nil then return end
  325. if Player.Character[Name].Handle:FindFirstChild("Weld") ~= nil then Player.Character[Name].Handle.Weld:Remove() end
  326. local bodyVelocity = Instance.new("BodyVelocity")
  327. bodyVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  328. bodyVelocity.velocity = v * 75
  329. bodyVelocity.Parent = Player.Character[Name].Handle
  330. wait(0.1)
  331. bodyVelocity:Remove()
  332. end
  333.  
  334.  
  335. function onButton1Down(mouse)
  336. if selected == false then return end
  337. if Player.Character:FindFirstChild(Name) ~= nil and Button1Down ~= true and thrown ~= true then
  338. if Player.Character[Name]:FindFirstChild("Handle") == nil then return end
  339. if Player.Character[Name]:FindFirstChild("Antenna") == nil then return end
  340. if Player.Character[Name]:FindFirstChild("Light") == nil then return end
  341. Button1Down = true
  342. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  343. Player.Character[Name].Light.Transparency = 0.4
  344. coroutine.resume(coroutine.create(function(target)
  345. local pos1 = target.Position
  346. local pos2 = pos1
  347. while true do
  348. if target == nil then return end
  349. if target.Parent == nil then return end
  350. pos2 = pos1
  351. pos1 = target.Position
  352. local trail = Instance.new("Part")
  353. trail.BrickColor = target.BrickColor
  354. trail.TopSurface = 0
  355. trail.BottomSurface = 0
  356. trail.FormFactor = target.FormFactor
  357. trail.Size = Vector3.new(1, 1, 1)
  358. trail.Reflectance = 0
  359. trail.Transparency = 0.3
  360. trail.Anchored = true
  361. trail.CanCollide = false
  362. trail.CFrame = CFrame.new((pos1 + pos2) / 2, pos2)
  363. trail.Parent = Workspace
  364. local mesh = Instance.new("SpecialMesh")
  365. mesh.MeshType = "Brick"
  366. mesh.Scale = Vector3.new(0.2, 0.2, (pos2 - pos1).magnitude)
  367. mesh.Parent = trail
  368. coroutine.resume(coroutine.create(function(part) for i = 3, 10, 1 do part.Transparency = i / 10 wait(0.1) end part:Remove() end), trail)
  369. wait()
  370. end
  371. end), Player.Character[Name].Light)
  372. wait(0.5)
  373. Player.Character[Name].Handle.Beep:Play()
  374. Player.Character[Name].Light.BrickColor = BrickColor.new("Bright orange")
  375. coroutine.resume(coroutine.create(function()
  376. wait(3)
  377. if Player.Character:FindFirstChild(Name) ~= nil then
  378. if Player.Character[Name]:FindFirstChild("Light") ~= nil then Player.Character[Name].Light.BrickColor = BrickColor.new("Really red") end
  379. if Player.Character[Name]:FindFirstChild("Handle") ~= nil then Player.Character[Name].Handle.Beep.Pitch = 1.25 end
  380. local position = Player.Character[Name].Handle.Position
  381. local s = Player.Character[Name].Handle.Explode:Clone()
  382. coroutine.resume(coroutine.create(function()
  383. local weld1 = Player.Character[Name].Light:FindFirstChild("Weld")
  384. local weld2 = Player.Character[Name].Antenna:FindFirstChild("Weld")
  385. if weld1 == nil then return end
  386. if weld2 == nil then return end
  387. local weld1c = weld1:Clone()
  388. local weld2c = weld2:Clone()
  389. while true do
  390. if Player.Character ~= nil then
  391. if Player.Character:FindFirstChild(Name) ~= nil then
  392. if weld1.Parent == nil then
  393. if Player.Character[Name]:FindFirstChild("Light") ~= nil then
  394. weld1c:Clone().Parent = Player.Character[Name].Light
  395. Player.Character[Name]:MakeJoints()
  396. end
  397. end
  398. if weld2.Parent == nil then
  399. if Player.Character[Name]:FindFirstChild("Handle") ~= nil then
  400. weld2c:Clone().Parent = Player.Character[Name].Antenna
  401. Player.Character[Name]:MakeJoints()
  402. end
  403. end
  404. end
  405. end
  406. wait()
  407. end
  408. end))
  409. for i = 0, math.random(30, 50) do
  410. if Player.Character:FindFirstChild("Humanoid") ~= nil then
  411. if Player.Character.Humanoid.Health <= 0 then break end
  412. local shell = Instance.new("Part")
  413. shell.Name = "Artillery Shell"
  414. shell.Anchored = true
  415. shell.BrickColor = BrickColor.new("Medium stone grey")
  416. shell.FormFactor = "Custom"
  417. shell.Size = Vector3.new(2, 5, 2)
  418. shell.TopSurface = 0
  419. shell.BottomSurface = 0
  420. shell.Parent = Workspace
  421. coroutine.resume(coroutine.create(function(part)
  422. local offset = Vector3.new(math.random(-50, 50), math.random(-10, 10), math.random(-50, 50))
  423. for i = 1000, 0, -25 do
  424. part.CFrame = CFrame.new((position + offset) + Vector3.new(0, i, 0))
  425. wait()
  426. end
  427. local e = Instance.new("Explosion")
  428. e.Position = part.Position
  429. e.BlastPressure = 500000
  430. e.BlastRadius = 25
  431. e.Parent = Workspace
  432. e.Hit:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") ~= nil then tagHumanoid(hit.Parent.Humanoid) delay(1, function() untagHumanoid(hit.Parent.Humanoid) end) end end)
  433. local s2 = s:Clone()
  434. s2.Pitch = math.random(70, 90) / 100
  435. s2.Parent = Workspace
  436. s2:Play()
  437. part:Remove()
  438. end), shell)
  439. end
  440. wait(math.random(1, 5) / 10)
  441. end
  442. if Player.Character:FindFirstChild(Name) ~= nil then if Player.Character[Name]:FindFirstChild("Handle") ~= nil then Player.Character[Name].Handle.Beep:Stop() end end
  443. end
  444. wait(1)
  445. removeParts("hand")
  446. wait(1)
  447. if Player.Character:FindFirstChild("WeaponActivated") ~= nil then
  448. Player.Character.WeaponActivated:Remove()
  449. end
  450. thrown = false
  451. Button1Down = false
  452. selected = true
  453. onDeselected(mouse)
  454. removeParts("holster")
  455. script.Parent:Remove()
  456. end))
  457. end
  458. end
  459.  
  460.  
  461. function onButton1Up(mouse)
  462. if selected == false then return end
  463. if Button1Down == true and thrown ~= true then
  464. thrown = true
  465. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  466. SetSpeed(1, 0.75, Player.Character)
  467. SetAngle(1, 0, Player.Character)
  468. EnableLimb(1, Player.Character)
  469. fire((mouse.Hit.p - Player.Character[Name].Handle.Position).unit)
  470. end
  471. Button1Down = false
  472. end
  473.  
  474.  
  475. function onKeyDown(key, mouse)
  476. if selected == false then return end
  477. key = key:lower()
  478. if key == "q" and Button1Down == false and thrown ~= true then
  479. if mouse.Target == nil then return end
  480. if game:GetService("Players"):GetPlayerFromCharacter(mouse.Target.Parent) ~= nil then
  481. onDeselected(mouse)
  482. removeParts("holster")
  483. script.Parent.Parent = game:GetService("Players"):GetPlayerFromCharacter(mouse.Target.Parent).Backpack
  484. end
  485. end
  486. end
  487.  
  488.  
  489. function onSelected(mouse)
  490. if selected == true then return end
  491. selected = true
  492. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  493. while Player.Character:FindFirstChild("WeaponActivated") ~= nil or thrown == true do
  494. if Player.Character.WeaponActivated.Value == nil then break end
  495. if Player.Character.WeaponActivated.Value.Parent == nil then break end
  496. wait()
  497. end
  498. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  499. removeParts("holster")
  500. makeParts("hand")
  501. local weapon = Instance.new("ObjectValue")
  502. weapon.Name = "WeaponActivated"
  503. weapon.Value = script.Parent
  504. weapon.Parent = Player.Character
  505. DisableLimb(1, Player.Character)
  506. SetAngle(1, math.rad(200), Player.Character)
  507. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  508. mouse.Button1Up:connect(function() onButton1Up(mouse) end)
  509. mouse.KeyDown:connect(function(key) onKeyDown(key, mouse) end)
  510. end
  511.  
  512.  
  513. function onDeselected(mouse)
  514. if selected == false then return end
  515. selected = false
  516. while Button1Down == true or thrown == true do
  517. wait()
  518. end
  519. if Player.Character:FindFirstChild("WeaponActivated") ~= nil then
  520. if Player.Character.WeaponActivated.Value == script.Parent then
  521. Player.Character.WeaponActivated:Remove()
  522. end
  523. end
  524. while Player.Character:FindFirstChild("WeaponActivated") ~= nil do
  525. if Player.Character.WeaponActivated.Value == nil then break end
  526. if pcall(function() if Player.Character.WeaponActivated.Value.Parent == nil then return true end end) then break end
  527. wait()
  528. end
  529. removeParts("hand")
  530. makeParts("holster")
  531. SetAngle(1, 0, Player.Character)
  532. EnableLimb(1, Player.Character)
  533. end
  534.  
  535.  
  536. if script.Parent.ClassName ~= "HopperBin" then
  537. if Player == nil then print("Error: Player not found!") return end
  538. Tool = Instance.new("HopperBin")
  539. Tool.Name = Name
  540. Tool.Parent = Player.Backpack
  541. script.Name = "Main"
  542. script.Parent = Tool
  543. end wait() if script.Parent.ClassName == "HopperBin" then
  544. while script.Parent.Parent.ClassName ~= "Backpack" do
  545. wait()
  546. end
  547. Player = script.Parent.Parent.Parent
  548. makeParts("holster")
  549. script.Parent.Selected:connect(onSelected)
  550. script.Parent.Deselected:connect(onDeselected)
  551. end
  552.  
  553. --mediafire
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement