Advertisement
OOOFHi43ism

bean

Apr 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.61 KB | None | 0 0
  1. --Converted with ttyyuu12345's model to script plugin v4
  2. function sandbox(var,func)
  3. local env = getfenv(func)
  4. local newenv = setmetatable({},{
  5. __index = function(self,k)
  6. if k=="script" then
  7. return var
  8. else
  9. return env[k]
  10. end
  11. end,
  12. })
  13. setfenv(func,newenv)
  14. return func
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. Tool0 = Instance.new("Tool")
  19. Part1 = Instance.new("Part")
  20. SpecialMesh2 = Instance.new("SpecialMesh")
  21. Sound3 = Instance.new("Sound")
  22. Sound4 = Instance.new("Sound")
  23. Animation5 = Instance.new("Animation")
  24. LocalScript6 = Instance.new("LocalScript")
  25. Animation7 = Instance.new("Animation")
  26. Script8 = Instance.new("Script")
  27. Tool0.Name = "MonsterPotion"
  28. Tool0.Parent = mas
  29. Tool0.TextureId = "http://www.roblox.com/asset?id=179511610"
  30. Tool0.GripPos = Vector3.new(0, 0.215000004, 0)
  31. Tool0.ToolTip = "Transform into a scary monster!"
  32. Part1.Name = "Handle"
  33. Part1.Parent = Tool0
  34. Part1.Rotation = Vector3.new(-176.679993, -71.5, -176.849991)
  35. Part1.Locked = true
  36. Part1.FormFactor = Enum.FormFactor.Custom
  37. Part1.Size = Vector3.new(1.25, 1.75, 1.25)
  38. Part1.CFrame = CFrame.new(109.798279, 7.22406769, 27.3479919, -0.316764146, 0.0174341127, -0.948344052, -1.568209e-14, 0.999831021, 0.0183806363, 0.94850421, 0.00582232699, -0.316710651)
  39. Part1.BottomSurface = Enum.SurfaceType.Smooth
  40. Part1.TopSurface = Enum.SurfaceType.Smooth
  41. Part1.Position = Vector3.new(109.798279, 7.22406769, 27.3479919)
  42. Part1.Orientation = Vector3.new(-1.04999995, -108.470001, 0)
  43. SpecialMesh2.Parent = Part1
  44. SpecialMesh2.MeshId = "http://www.roblox.com/asset?id=179511543"
  45. SpecialMesh2.TextureId = "http://www.roblox.com/asset?id=179511579"
  46. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  47. Sound3.Name = "Gulp"
  48. Sound3.Parent = Part1
  49. Sound3.SoundId = "http://www.roblox.com/asset?id=163204602"
  50. Sound4.Name = "Sizzle"
  51. Sound4.Parent = Part1
  52. Sound4.SoundId = "http://www.roblox.com/asset?id=172708705"
  53. Animation5.Name = "Drink"
  54. Animation5.Parent = Tool0
  55. Animation5.AnimationId = "http://www.roblox.com/asset?id=180324301"
  56. LocalScript6.Parent = Tool0
  57. table.insert(cors,sandbox(LocalScript6,function()
  58. --Rescripted by Luckymaxer
  59.  
  60. Tool = script.Parent
  61. Handle = Tool:WaitForChild("Handle")
  62.  
  63. Players = game:GetService("Players")
  64.  
  65. Animations = {}
  66.  
  67. ServerControl = Tool:WaitForChild("ServerControl")
  68. ClientControl = Tool:WaitForChild("ClientControl")
  69.  
  70. ClientControl.OnClientInvoke = (function(Mode, Value)
  71. if Mode == "PlayAnimation" and Humanoid then
  72. for i, v in pairs(Animations) do
  73. if v.Animation == Value.Animation then
  74. v.AnimationTrack:Stop()
  75. table.remove(Animations, i)
  76. end
  77. end
  78. local AnimationTrack = Humanoid:LoadAnimation(Value.Animation)
  79. table.insert(Animations, {Animation = Value.Animation, AnimationTrack = AnimationTrack})
  80. AnimationTrack:Play(Value.FadeTime, Value.Weight, Value.Speed)
  81. elseif Mode == "StopAnimation" and Value then
  82. for i, v in pairs(Animations) do
  83. if v.Animation == Value then
  84. v.AnimationTrack:Stop()
  85. table.remove(Animations, i)
  86. end
  87. end
  88. elseif Mode == "PlaySound" and Value then
  89. Value:Play()
  90. elseif Mode == "StopSound" and Value then
  91. Value:Stop()
  92. end
  93. end)
  94.  
  95. function InvokeServer(Mode, Value)
  96. pcall(function()
  97. local ServerReturn = ServerControl:InvokeServer(Mode, Value)
  98. return ServerReturn
  99. end)
  100. end
  101.  
  102. function CheckIfAlive()
  103. return (Player and Player.Parent and Humanoid and Humanoid.Parent and Humanoid.Health > 0)
  104. end
  105.  
  106. function Equipped(Mouse)
  107. Character = Tool.Parent
  108. Player = Players:GetPlayerFromCharacter(Character)
  109. Humanoid = Character:FindFirstChild("Humanoid")
  110. if not CheckIfAlive() then
  111. return
  112. end
  113. Mouse.KeyDown:connect(function(Key)
  114. InvokeServer("KeyPress", {Key = Key, Down = true})
  115. end)
  116. Mouse.KeyUp:connect(function(Key)
  117. InvokeServer("KeyPress", {Key = Key, Down = false})
  118. end)
  119. end
  120.  
  121. function Unequipped()
  122. for i, v in pairs(Animations) do
  123. if v and v.AnimationTrack then
  124. v.AnimationTrack:Stop()
  125. end
  126. end
  127. Animations = {}
  128. end
  129.  
  130. Tool.Equipped:connect(Equipped)
  131. Tool.Unequipped:connect(Unequipped)
  132. end))
  133. Animation7.Name = "Morph"
  134. Animation7.Parent = Tool0
  135. Animation7.AnimationId = "http://www.roblox.com/asset?id=180391962"
  136. Script8.Parent = Tool0
  137. table.insert(cors,sandbox(Script8,function()
  138. --Made by Luckymaxer
  139.  
  140. Tool = script.Parent
  141. Handle = Tool:WaitForChild("Handle")
  142.  
  143. Players = game:GetService("Players")
  144. Debris = game:GetService("Debris")
  145. InsertService = game:GetService("InsertService")
  146.  
  147. Animations = {
  148. Drink = Tool:WaitForChild("Drink"),
  149. Morph = Tool:WaitForChild("Morph")
  150. }
  151.  
  152. Sounds = {
  153. Gulp = Handle:WaitForChild("Gulp"),
  154. Sizzle = Handle:WaitForChild("Sizzle")
  155. }
  156.  
  157. Monsters = require(180464321)
  158.  
  159. ServerControl = (Tool:FindFirstChild("ServerControl") or Instance.new("RemoteFunction"))
  160. ServerControl.Name = "ServerControl"
  161. ServerControl.Parent = Tool
  162.  
  163. ClientControl = (Tool:FindFirstChild("ClientControl") or Instance.new("RemoteFunction"))
  164. ClientControl.Name = "ClientControl"
  165. ClientControl.Parent = Tool
  166.  
  167. Duration = 30
  168.  
  169. Speed = 100
  170.  
  171. Equipped = false
  172.  
  173. Tool.Enabled = true
  174.  
  175. ServerControl.OnServerInvoke = (function(player, Mode, Value)
  176. if player == Player then
  177. end
  178. end)
  179.  
  180. function InvokeClient(Mode, Value)
  181. local ReturnValue = nil
  182. pcall(function()
  183. ReturnValue = ClientControl:InvokeClient(Player, Mode, Value)
  184. end)
  185. return ReturnValue
  186. end
  187.  
  188. function InsertAsset(AssetId)
  189. local AssetModel = InsertService:LoadAsset(AssetId)
  190. local Asset = AssetModel:GetChildren()[1]:Clone()
  191. if AssetModel and AssetModel.Parent then
  192. AssetModel:Destroy()
  193. end
  194. return Asset
  195. end
  196.  
  197. function CheckTableForString(Table, String)
  198. for i, v in pairs(Table) do
  199. if string.lower(v) == string.lower(String) then
  200. return true
  201. end
  202. end
  203. return false
  204. end
  205.  
  206. function CheckTableForClass(Object, Classes)
  207. for i, v in pairs(Classes) do
  208. if Object:IsA(v) then
  209. return true
  210. end
  211. end
  212. return false
  213. end
  214.  
  215. function GetAllAssets(Parent, Classes)
  216. local Assets = {}
  217. local function GetAssets(Parent)
  218. for i, v in pairs(Parent:GetChildren()) do
  219. if v ~= Tool then
  220. if CheckTableForClass(v, Classes) then
  221. table.insert(Assets, v)
  222. end
  223. GetAssets(v)
  224. end
  225. end
  226. end
  227. GetAssets(Parent, Classes)
  228. return Assets
  229. end
  230.  
  231. function CheckForProperty(Instance, Property)
  232. local PropertyExists = false
  233. pcall(function()
  234. local Property = Instance[Property]
  235. PropertyExists = true
  236. end)
  237. return PropertyExists
  238. end
  239.  
  240. function CreateMonster(character)
  241. local Assets = GetAllAssets(character, {"Hat", "Decal", "CharacterMesh", "Clothing", "ShirtGraphic", "BodyColors", "DataModelMesh"})
  242. local Parts = GetAllAssets(character, {"BasePart"})
  243. local CharacterAssets = {}
  244. local CharacterParts = {}
  245. local MonsterAssets = {}
  246. local NewFace = false
  247. local NewHead = false
  248. for i, v in pairs(Assets) do
  249. if v and v.Parent then
  250. table.insert(CharacterAssets, {Parent = v.Parent, Object = v:Clone()})
  251. v:Destroy()
  252. end
  253. end
  254. for i, v in pairs(Parts) do
  255. if v and v.Parent then
  256. table.insert(CharacterParts, {Part = v, BrickColor = v.BrickColor, Transparency = v.Transparency})
  257. end
  258. end
  259. for i, v in pairs(character:GetChildren()) do
  260. if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" then
  261. v.Transparency = 0
  262. end
  263. end
  264. local MonsterChosen = Monsters[math.random(1, #Monsters)]
  265. local MonsterName = MonsterChosen.Name
  266. for i, v in pairs(MonsterChosen.PackageParts) do
  267. local PackagePart = InsertAsset(v)
  268. if PackagePart:IsA("CharacterMesh") then
  269. table.insert(MonsterAssets, PackagePart)
  270. PackagePart.Parent = character
  271. end
  272. end
  273. if #MonsterChosen.Hats > 0 then
  274. local HatChosen = MonsterChosen.Hats[math.random(1, #MonsterChosen.Hats)]
  275. if (not MonsterChosen.BodyColors or #MonsterChosen.BodyColors == 0) and HatChosen.BodyColors and #HatChosen.BodyColors > 0 then
  276. local BodyColorsChosen = HatChosen.BodyColors[math.random(1, #HatChosen.BodyColors)]
  277. for i, v in pairs(BodyColorsChosen) do
  278. for ii, vv in pairs(character:GetChildren()) do
  279. if vv:IsA("BasePart") and vv.Name == v.Limb then
  280. vv.BrickColor = BrickColor.new(v.Color)
  281. end
  282. end
  283. end
  284. end
  285. if (not MonsterChosen.Clothing or #MonsterChosen.Clothing == 0) and HatChosen.Clothing and #HatChosen.Clothing > 0 then
  286. local ClothingChosen = HatChosen.Clothing[math.random(1, #HatChosen.Clothing)]
  287. for i, v in pairs(ClothingChosen) do
  288. local Clothing = InsertAsset(v)
  289. if Clothing:IsA("Clothing") then
  290. Clothing.Parent = character
  291. elseif Clothing:IsA("ShirtGraphic") then
  292. Clothing.Parent = character
  293. local torso = character:FindFirstChild("Torso")
  294. if torso then
  295. local Decal = Instance.new("Decal")
  296. Decal.Name = "roblox"
  297. Decal.Face = Enum.NormalId.Front
  298. Decal.Texture = Clothing.Graphic
  299. table.insert(MonsterAssets, Decal)
  300. Decal.Parent = torso
  301. end
  302. elseif Clothing:IsA("Decal") then
  303. Clothing.Name = "face"
  304. local head = character:FindFirstChild("Head")
  305. if head then
  306. NewFace = true
  307. table.insert(MonsterAssets, Clothing)
  308. Clothing.Parent = head
  309. end
  310. elseif Clothing:IsA("DataModelMesh") then
  311. local head = character:FindFirstChild("Head")
  312. if head then
  313. NewHead = true
  314. table.insert(MonsterAssers, Clothing)
  315. Clothing.Parent = head
  316. end
  317. end
  318. end
  319. end
  320. if (not MonsterChosen.Transparency or #MonsterChosen.Transparency == 0) and HatChosen.Transparency then
  321. for i, v in pairs(HatChosen.Transparency) do
  322. for ii, vv in pairs(character:GetChildren()) do
  323. if vv:IsA("BasePart") and vv.Name == v.Limb then
  324. vv.Transparency = v.Transparency
  325. end
  326. end
  327. end
  328. end
  329. if #HatChosen.Hats > 0 then
  330. for i, v in pairs(HatChosen.Hats) do
  331. local Hat = InsertAsset(v)
  332. local head = character:FindFirstChild("Head")
  333. local handle = Hat:FindFirstChild("Handle")
  334. if head and handle then
  335. local handle = handle:Clone()
  336. local MonsterMorphEffect = Instance.new("StringValue")
  337. MonsterMorphEffect.Name = "MonsterMorphEffect"
  338. MonsterMorphEffect.Value = MonsterName
  339. MonsterMorphEffect.Parent = handle
  340. handle.Name = Hat.Name
  341. handle.CanCollide = false
  342. local HeadWeld = Instance.new("Weld")
  343. HeadWeld.Name = "HeadWeld"
  344. HeadWeld.Part0 = head
  345. HeadWeld.Part1 = handle
  346. HeadWeld.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  347. HeadWeld.C1 = CFrame.new(
  348. Hat.AttachmentPos.X, --Pos X
  349. Hat.AttachmentPos.Y, --Pos Y
  350. Hat.AttachmentPos.Z, --Pos Z
  351. math.abs(Hat.AttachmentRight.X), --R00
  352. Hat.AttachmentUp.X, --R01
  353. math.abs(Hat.AttachmentForward.X), --R02
  354. Hat.AttachmentRight.Y, --R10
  355. Hat.AttachmentUp.Y, --R11
  356. (math.abs(Hat.AttachmentForward.Y) * -1), --R12
  357. Hat.AttachmentRight.Z, --R20
  358. Hat.AttachmentUp.Z, --R21
  359. math.abs(Hat.AttachmentForward.Z) --R22
  360. )
  361. table.insert(MonsterAssets, handle)
  362. handle.Parent = character
  363. table.insert(MonsterAssets, HeadWled)
  364. HeadWeld.Parent = head
  365. end
  366. end
  367. end
  368. end
  369. if MonsterChosen.BodyColors and #MonsterChosen.BodyColors > 0 then
  370. local BodyColorsChosen = MonsterChosen.BodyColors[math.random(1, #MonsterChosen.BodyColors)]
  371. for i, v in pairs(BodyColorsChosen) do
  372. for ii, vv in pairs(character:GetChildren()) do
  373. if vv:IsA("BasePart") and vv.Name == v.Limb then
  374. vv.BrickColor = BrickColor.new(v.Color)
  375. end
  376. end
  377. end
  378. end
  379. if MonsterChosen.Transparency and #MonsterChosen.Transparency > 0 then
  380. for i, v in pairs(MonsterChosen.Transparency) do
  381. for ii, vv in pairs(character:GetChildren()) do
  382. if vv:IsA("BasePart") and vv.Name == v.Limb then
  383. vv.Transparency = v.Transparency
  384. end
  385. end
  386. end
  387. end
  388. if MonsterChosen.Clothing and #MonsterChosen.Clothing > 0 then
  389. local ClothingChosen = MonsterChosen.Clothing[math.random(1, #MonsterChosen.Clothing)]
  390. for i, v in pairs(ClothingChosen) do
  391. local Clothing = InsertAsset(v)
  392. if Clothing:IsA("Clothing") then
  393. Clothing.Parent = character
  394. elseif Clothing:IsA("ShirtGraphic") then
  395. Clothing.Parent = character
  396. local torso = character:FindFirstChild("Torso")
  397. if torso then
  398. local Decal = Instance.new("Decal")
  399. Decal.Name = "roblox"
  400. Decal.Face = Enum.NormalId.Front
  401. Decal.Texture = Clothing.Graphic
  402. table.insert(MonsterAssets, Decal)
  403. Decal.Parent = torso
  404. end
  405. elseif Clothing:IsA("Decal") then
  406. Clothing.Name = "face"
  407. local head = character:FindFirstChild("Head")
  408. if head then
  409. NewFace = true
  410. table.insert(MonsterAssets, Clothing)
  411. Clothing.Parent = head
  412. end
  413. elseif Clothing:IsA("DataModelMesh") then
  414. local head = character:FindFirstChild("Head")
  415. if head then
  416. NewHead = true
  417. table.insert(MonsterAssets, Clothing)
  418. Clothing.Parent = head
  419. end
  420. end
  421. end
  422. end
  423. local head = character:FindFirstChild("Head")
  424. if head then
  425. if head.Transparency >= 1 then
  426. head.Transparency = 0
  427. local Mesh = Instance.new("SpecialMesh")
  428. Mesh.Scale = Vector3.new(0, 0, 0)
  429. table.insert(MonsterAssets, Mesh)
  430. Mesh.Parent = head
  431. elseif not NewHead then
  432. local TempHead = Instance.new("SpecialMesh")
  433. TempHead.MeshType = Enum.MeshType.Head
  434. TempHead.Scale = Vector3.new(1.25, 1.25, 1.25)
  435. TempHead.VertexColor = Vector3.new(1, 1, 1)
  436. table.insert(MonsterAssets, TempHead)
  437. TempHead.Parent = head
  438. end
  439. if not NewFace then
  440. local TempFace = Instance.new("Decal")
  441. TempFace.Name = "face"
  442. TempFace.Face = Enum.NormalId.Front
  443. TempFace.Texture = "rbxasset://textures/face.png" --http://www.roblox.com/asset?id=12222851
  444. table.insert(MonsterAssets, TempFace)
  445. TempFace.Parent = head
  446. end
  447. end
  448. local BodyColors = Instance.new("BodyColors")
  449. for i, v in pairs(character:GetChildren()) do
  450. if v:IsA("BasePart") then
  451. local PropertyName = (string.gsub(v.Name, " ", "") .. "Color")
  452. if CheckForProperty(BodyColors, PropertyName) then
  453. pcall(function()
  454. BodyColors[PropertyName] = v.BrickColor
  455. end)
  456. end
  457. end
  458. end
  459. BodyColors.Parent = character
  460. table.insert(MonsterAssets, BodyColors)
  461. return CharacterAssets, CharacterParts, MonsterAssets, MonsterName
  462. end
  463.  
  464. function Transform(character)
  465. Tool.Enabled = false
  466. local Limbs = {"Head", "Torso", "Left Arm", "Right Arm", "Left Leg", "Right Leg"}
  467. local MonsterMorphed = Instance.new("StringValue")
  468. MonsterMorphed.Name = "MonsterMorphed"
  469. Debris:AddItem(MonsterMorphed, (Duration + 5))
  470. MonsterMorphed.Parent = character
  471. for i, v in pairs(character:GetChildren()) do
  472. if v:IsA("BasePart") then
  473. if v:FindFirstChild("MonsterMorphEffect") then
  474. v:Destroy()
  475. elseif CheckTableForString(Limbs, v.Name) then
  476. local Fire = Instance.new("Fire")
  477. Fire.Color = Color3.new(0, 255, 0)
  478. Fire.SecondaryColor = Color3.new(0, 170, 0)
  479. Fire.Heat = 5
  480. Fire.Size = 10
  481. Fire.Enabled = true
  482. Debris:AddItem(Fire, 5)
  483. Delay(3, function()
  484. if Fire and Fire.Parent then
  485. Fire.Enabled = false
  486. end
  487. end)
  488. Fire.Parent = v
  489. end
  490. end
  491. end
  492. local CharacterAssets, CharacterParts, MonsterAssets, MonsterName = CreateMonster(character)
  493. if MonsterMorphed and MonsterMorphed.Parent then
  494. MonsterMorphed.Value = MonsterName
  495. end
  496. local FakeHat = Instance.new("Hat")
  497. FakeHat.Name = "FakeHat"
  498. FakeHat.Parent = character
  499. local FakeHatChanged = FakeHat.Changed:connect(function(Property)
  500. if Property == "Parent" then
  501. Delay(0, function()
  502. if FakeHat.Parent and FakeHat.Parent ~= character then
  503. FakeHat.Parent = character
  504. end
  505. end)
  506. end
  507. end)
  508. local HatAdded = character.ChildAdded:connect(function(Child)
  509. Delay(0, function()
  510. if Child:IsA("Hat") and Child.Parent and Child ~= FakeHat then
  511. Child.Parent = game:GetService("Workspace")
  512. end
  513. end)
  514. end)
  515. wait(Duration)
  516. for i, v in pairs({FakeHatChanged, HatAdded}) do
  517. if v then
  518. v:disconnect()
  519. end
  520. end
  521. for i, v in pairs(MonsterAssets) do
  522. if v and v.Parent then
  523. v:Destroy()
  524. end
  525. end
  526. if FakeHat and FakeHat.Parent then
  527. FakeHat:Destroy()
  528. end
  529. for i, v in pairs(CharacterAssets) do
  530. if v.Object and v.Parent then
  531. local Object = v.Object:Clone()
  532. if v.Object:IsA("BasePart") then
  533. Object.BrickColor = v.BrickColor
  534. Object.Transparency = v.Transparency
  535. end
  536. Object.Parent = v.Parent
  537. end
  538. end
  539. for i, v in pairs(CharacterParts) do
  540. if v.Part and v.Part.Parent then
  541. v.Part.BrickColor = v.BrickColor
  542. v.Part.Transparency = v.Transparency
  543. end
  544. end
  545. if MonsterMorphed and MonsterMorphed.Parent then
  546. MonsterMorphed:Destroy()
  547. end
  548. Tool.Enabled = true
  549. end
  550.  
  551. function Activated()
  552. if not Tool.Enabled or not CheckIfAlive() or Character:FindFirstChild("MonsterMorphed") or Active then
  553. return
  554. end
  555. Active = true
  556. local character = Character
  557. local humanoid = Humanoid
  558. local CurrentlyEquipped = true
  559. local UnequippedConnection = Tool.Unequipped:connect(function()
  560. CurrentlyEquipped = false
  561. end)
  562. InvokeClient("PlayAnimation", {Animation = Animations.Drink, FadeTime = 1, Weight = 1, Speed = 1})
  563. InvokeClient("PlaySound", Sounds.Gulp)
  564. wait(1.5)
  565. if CurrentlyEquipped then
  566. InvokeClient("StopSound", Sounds.Gulp)
  567. InvokeClient("PlaySound", Sounds.Sizzle)
  568. wait(1.5)
  569. if CurrentlyEquipped then
  570. if humanoid and humanoid.Parent then
  571. --humanoid.WalkSpeed = 0
  572. end
  573. InvokeClient("StopAnimation", Animations.Drink)
  574. InvokeClient("PlayAnimation", {Animation = Animations.Morph, FadeTime = 1, Weight = 1, Speed = 0.5})
  575. wait(1.5)
  576. if CurrentlyEquipped then
  577. Spawn(function()
  578. Transform(character)
  579. end)
  580. wait(3)
  581. if CurrentlyEquipped then
  582. InvokeClient("StopAnimation", Animations.Morph)
  583. end
  584. end
  585. end
  586. end
  587. if humanoid and humanoid.Parent then
  588. humanoid.WalkSpeed = 16
  589. end
  590. Active = false
  591. end
  592.  
  593. function CheckIfAlive()
  594. return (Character.Parent and Player.Parent and Humanoid.Parent and Humanoid.Health > 0)
  595. end
  596.  
  597. function Equipped(Mouse)
  598. Character = Tool.Parent
  599. Player = Players:GetPlayerFromCharacter(Character)
  600. Humanoid = Character:FindFirstChild("Humanoid")
  601. if not CheckIfAlive() then
  602. return
  603. end
  604. Equipped = true
  605. end
  606.  
  607. function Unequipped()
  608. Equipped = false
  609. Active = false
  610. for i, v in pairs(Sounds) do
  611. if v and v.Parent then
  612. InvokeClient("StopSound", v)
  613. end
  614. end
  615. end
  616.  
  617. Tool.Activated:connect(Activated)
  618. Tool.Equipped:connect(Equipped)
  619. Tool.Unequipped:connect(Unequipped)
  620. end))
  621. for i,v in pairs(mas:GetChildren()) do
  622. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  623. pcall(function() v:MakeJoints() end)
  624. end
  625. mas:Destroy()
  626. for i,v in pairs(cors) do
  627. spawn(function()
  628. pcall(v)
  629. end)
  630. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement