Advertisement
mr2meows

moster

Jul 6th, 2022 (edited)
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.94 KB | None | 0 0
  1. -- Objects To Lua Make By HairBaconGamming --
  2. local Module_Scripts = {}
  3. local MonsterMashPotion = Instance.new("Tool")
  4. local Handle = Instance.new("Part")
  5. local Mesh = Instance.new("SpecialMesh")
  6. local SongLoop = Instance.new("Sound")
  7. local PotionScript = Instance.new("LocalScript")
  8. local UnequipScript = Instance.new("Script")
  9. local DanceObject = Instance.new("ObjectValue")
  10. local monstermash = Instance.new("Animation")
  11.  
  12. -- Properties --
  13. local Tool = script.Parent;
  14. MonsterMashPotion.Grip = CFrame.new(0.100000001, 0, 0.5, 1, 0, 0, 0, 0, -1, -0, 1, 0)
  15. MonsterMashPotion.GripForward = Vector3.new(-0, 1, -0)
  16. MonsterMashPotion.GripPos = Vector3.new(0.10000000149011612, 0, 0.5)
  17. MonsterMashPotion.GripUp = Vector3.new(0, 0, 1)
  18. MonsterMashPotion.Name = [[MonsterMashPotion]]
  19. MonsterMashPotion.Parent = owner.Backpack
  20. MonsterMashPotion.TextureId = [[http://www.roblox.com/asset/?id=35955964]]
  21.  
  22. Handle.CFrame = CFrame.new(0.5, 0.600000024, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  23. Handle.Locked = true
  24. Handle.Name = [[Handle]]
  25. Handle.Parent = MonsterMashPotion
  26. Handle.Position = Vector3.new(0.5, 0.6000000238418579, 0.5)
  27. Handle.Size = Vector3.new(1, 1.2000000476837158, 3)
  28.  
  29. Mesh.MeshId = [[http://www.roblox.com/asset/?id=35955788]]
  30. Mesh.MeshType = Enum.MeshType.FileMesh
  31. Mesh.Parent = Handle
  32. Mesh.Scale = Vector3.new(3, 3, 3)
  33. Mesh.TextureId = [[http://www.roblox.com/asset/?id=35955944 ]]
  34.  
  35. SongLoop.Looped = true
  36. SongLoop.Name = [[SongLoop]]
  37. SongLoop.Parent = Handle
  38. SongLoop.SoundId = "rbxassetid://35930009"
  39.  
  40. monstermash.AnimationId = "rbxassetid://35654637"
  41. monstermash.Name = [[monstermash]]
  42. monstermash.Parent = MonsterMashPotion
  43.  
  44. function PotionScript_ScriptfakeXD()
  45.  
  46. local script = Instance.new("LocalScript",MonsterMashPotion)
  47. PotionScript = script
  48. script.Name = [[PotionScript]]
  49. local require_fake = require
  50. local require = function(Object)
  51. local functiom = Module_Scripts[Object]
  52. if functiom then
  53. return functiom()
  54. end
  55. return require_fake(Object)
  56. end
  57.  
  58. -- music used under the Creative Commons licensing (by Attribution): all credit for the sample loop used goes to Mike Koenig
  59.  
  60. local Tool = script.Parent;
  61. local dancer = nil
  62.  
  63. enabled = true
  64.  
  65.  
  66. function onActivated()
  67. if not enabled then
  68. return
  69. end
  70.  
  71. enabled = false
  72.  
  73. --[[--This call will cause a "wait" until the data comes back
  74. local root = game:GetService("InsertService"):LoadAsset(27831659)
  75.  
  76. local instances = root:GetChildren()
  77. if #instances == 0 then
  78. root:Remove()
  79. return
  80. end
  81.  
  82. local humanoid = Tool.Parent:FindFirstChild("Humanoid")
  83. local torso = Tool.Parent:FindFirstChild("Torso")
  84.  
  85. root = root:FindFirstChild("DiscoBall")
  86. root.Position = Vector3.new(torso.Position.x, torso.Position.y + 5, torso.Position.z)
  87.  
  88. local sparkles = Instance.new("Sparkles")
  89. sparkles.Parent = root
  90.  
  91. local bodyPos = Instance.new("BodyPosition")
  92. bodyPos.position = Vector3.new(torso.Position.x, torso.Position.y + 15, torso.Position.z)
  93. bodyPos.P = 10000
  94. bodyPos.D = 1000
  95. bodyPos.maxForce = Vector3.new(bodyPos.P,bodyPos.P,bodyPos.P)
  96. bodyPos.Parent = root
  97.  
  98. local rotater = Instance.new("BodyAngularVelocity")
  99. rotater.P = 100000
  100. rotater.angularvelocity = Vector3.new(0,1000,0)
  101. rotater.maxTorque = Vector3.new(rotater.P,rotater.P,rotater.P)
  102. rotater.Parent = root
  103.  
  104. root.Parent = game.Workspace
  105. ]]--
  106. local humanoid = Tool.Parent:FindFirstChild("Humanoid")
  107. local torso = Tool.Parent:FindFirstChild("Torso")
  108.  
  109.  
  110. dancer = humanoid:LoadAnimation(tool.monstermash)
  111. Tool.DanceObject.Value = dancer
  112. dancer:Play()
  113. Tool.Handle.SongLoop:Play()
  114. wait(11)
  115. Tool.Handle.SongLoop:Stop()
  116. dancer:Stop()
  117. dancer:remove()
  118. --root:remove()
  119.  
  120. enabled = true
  121.  
  122. end
  123.  
  124. function onEquipped()
  125. --Tool.Handle.EquipSound:play()
  126. end
  127.  
  128. function onUnequipped()
  129. --Tool.Handle.EquipSound:stop()
  130. if dancer ~= nil then
  131. dancer:Stop()
  132. dancer:remove()
  133. end
  134. end
  135.  
  136. Tool.Activated:connect(onActivated)
  137. Tool.Equipped:connect(onEquipped)
  138. Tool.Unequipped:connect(OnUnequipped)
  139.  
  140.  
  141. end
  142. coroutine.wrap(PotionScript_ScriptfakeXD)
  143.  
  144.  
  145. function UnequipScript_ScriptfakeXD()
  146.  
  147. local script = Instance.new("Script",MonsterMashPotion)
  148. UnequipScript = script
  149. script.Name = [[UnequipScript]]
  150. local require_fake = require
  151. local require = function(Object)
  152. local functiom = Module_Scripts[Object]
  153. if functiom then
  154. return functiom()
  155. end
  156. return require_fake(Object)
  157. end
  158.  
  159. local Tool = script.Parent
  160. local humanoid = nil
  161.  
  162. function onEquipped()
  163.  
  164. humanoid = Tool.Parent:FindFirstChild("Humanoid")
  165.  
  166. end
  167.  
  168. function onUnequipped()
  169.  
  170. if humanoid ~= nil then
  171. if Tool.DanceObject.Value ~= nil then
  172. Tool.DanceObject.Value:Stop()
  173. Tool.DanceObject.Value:remove()
  174. end
  175. end
  176.  
  177. end
  178.  
  179. Tool.Equipped:connect(onEquipped)
  180. Tool.Unequipped:connect(onUnequipped)
  181.  
  182.  
  183. end
  184. coroutine.wrap(UnequipScript_ScriptfakeXD)()
  185.  
  186.  
  187. DanceObject.Name = [[DanceObject]]
  188. DanceObject.Parent = MonsterMashPotion
  189.  
  190.  
  191. -- End --
  192. -- Thank for using --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement