Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects To Lua Make By HairBaconGamming --
- local Module_Scripts = {}
- local MonsterMashPotion = Instance.new("Tool")
- local Handle = Instance.new("Part")
- local Mesh = Instance.new("SpecialMesh")
- local SongLoop = Instance.new("Sound")
- local PotionScript = Instance.new("LocalScript")
- local UnequipScript = Instance.new("Script")
- local DanceObject = Instance.new("ObjectValue")
- local monstermash = Instance.new("Animation")
- -- Properties --
- local Tool = script.Parent;
- MonsterMashPotion.Grip = CFrame.new(0.100000001, 0, 0.5, 1, 0, 0, 0, 0, -1, -0, 1, 0)
- MonsterMashPotion.GripForward = Vector3.new(-0, 1, -0)
- MonsterMashPotion.GripPos = Vector3.new(0.10000000149011612, 0, 0.5)
- MonsterMashPotion.GripUp = Vector3.new(0, 0, 1)
- MonsterMashPotion.Name = [[MonsterMashPotion]]
- MonsterMashPotion.Parent = owner.Backpack
- MonsterMashPotion.TextureId = [[http://www.roblox.com/asset/?id=35955964]]
- Handle.CFrame = CFrame.new(0.5, 0.600000024, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Handle.Locked = true
- Handle.Name = [[Handle]]
- Handle.Parent = MonsterMashPotion
- Handle.Position = Vector3.new(0.5, 0.6000000238418579, 0.5)
- Handle.Size = Vector3.new(1, 1.2000000476837158, 3)
- Mesh.MeshId = [[http://www.roblox.com/asset/?id=35955788]]
- Mesh.MeshType = Enum.MeshType.FileMesh
- Mesh.Parent = Handle
- Mesh.Scale = Vector3.new(3, 3, 3)
- Mesh.TextureId = [[http://www.roblox.com/asset/?id=35955944 ]]
- SongLoop.Looped = true
- SongLoop.Name = [[SongLoop]]
- SongLoop.Parent = Handle
- SongLoop.SoundId = "rbxassetid://35930009"
- monstermash.AnimationId = "rbxassetid://35654637"
- monstermash.Name = [[monstermash]]
- monstermash.Parent = MonsterMashPotion
- function PotionScript_ScriptfakeXD()
- local script = Instance.new("LocalScript",MonsterMashPotion)
- PotionScript = script
- script.Name = [[PotionScript]]
- local require_fake = require
- local require = function(Object)
- local functiom = Module_Scripts[Object]
- if functiom then
- return functiom()
- end
- return require_fake(Object)
- end
- -- music used under the Creative Commons licensing (by Attribution): all credit for the sample loop used goes to Mike Koenig
- local Tool = script.Parent;
- local dancer = nil
- enabled = true
- function onActivated()
- if not enabled then
- return
- end
- enabled = false
- --[[--This call will cause a "wait" until the data comes back
- local root = game:GetService("InsertService"):LoadAsset(27831659)
- local instances = root:GetChildren()
- if #instances == 0 then
- root:Remove()
- return
- end
- local humanoid = Tool.Parent:FindFirstChild("Humanoid")
- local torso = Tool.Parent:FindFirstChild("Torso")
- root = root:FindFirstChild("DiscoBall")
- root.Position = Vector3.new(torso.Position.x, torso.Position.y + 5, torso.Position.z)
- local sparkles = Instance.new("Sparkles")
- sparkles.Parent = root
- local bodyPos = Instance.new("BodyPosition")
- bodyPos.position = Vector3.new(torso.Position.x, torso.Position.y + 15, torso.Position.z)
- bodyPos.P = 10000
- bodyPos.D = 1000
- bodyPos.maxForce = Vector3.new(bodyPos.P,bodyPos.P,bodyPos.P)
- bodyPos.Parent = root
- local rotater = Instance.new("BodyAngularVelocity")
- rotater.P = 100000
- rotater.angularvelocity = Vector3.new(0,1000,0)
- rotater.maxTorque = Vector3.new(rotater.P,rotater.P,rotater.P)
- rotater.Parent = root
- root.Parent = game.Workspace
- ]]--
- local humanoid = Tool.Parent:FindFirstChild("Humanoid")
- local torso = Tool.Parent:FindFirstChild("Torso")
- dancer = humanoid:LoadAnimation(tool.monstermash)
- Tool.DanceObject.Value = dancer
- dancer:Play()
- Tool.Handle.SongLoop:Play()
- wait(11)
- Tool.Handle.SongLoop:Stop()
- dancer:Stop()
- dancer:remove()
- --root:remove()
- enabled = true
- end
- function onEquipped()
- --Tool.Handle.EquipSound:play()
- end
- function onUnequipped()
- --Tool.Handle.EquipSound:stop()
- if dancer ~= nil then
- dancer:Stop()
- dancer:remove()
- end
- end
- Tool.Activated:connect(onActivated)
- Tool.Equipped:connect(onEquipped)
- Tool.Unequipped:connect(OnUnequipped)
- end
- coroutine.wrap(PotionScript_ScriptfakeXD)
- function UnequipScript_ScriptfakeXD()
- local script = Instance.new("Script",MonsterMashPotion)
- UnequipScript = script
- script.Name = [[UnequipScript]]
- local require_fake = require
- local require = function(Object)
- local functiom = Module_Scripts[Object]
- if functiom then
- return functiom()
- end
- return require_fake(Object)
- end
- local Tool = script.Parent
- local humanoid = nil
- function onEquipped()
- humanoid = Tool.Parent:FindFirstChild("Humanoid")
- end
- function onUnequipped()
- if humanoid ~= nil then
- if Tool.DanceObject.Value ~= nil then
- Tool.DanceObject.Value:Stop()
- Tool.DanceObject.Value:remove()
- end
- end
- end
- Tool.Equipped:connect(onEquipped)
- Tool.Unequipped:connect(onUnequipped)
- end
- coroutine.wrap(UnequipScript_ScriptfakeXD)()
- DanceObject.Name = [[DanceObject]]
- DanceObject.Parent = MonsterMashPotion
- -- End --
- -- Thank for using --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement