Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- screengui=Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)frame=Instance.new("Frame")
- mickey_mouse=Instance.new("TextBox")textbutton=Instance.new("TextButton")
- frame.BorderColor3=Color3.new(1,1,1)frame.Size=UDim2.new(0.143,0,0.438,0)
- frame.BorderSizePixel=5;frame.BackgroundColor3=Color3.new(0,0,0)
- frame.BackgroundTransparency=0.33;frame.Position=UDim2.new(0.845,0,0.322,0)
- frame.Parent=screengui;mickey_mouse.TextWrapped=true
- mickey_mouse.Position=UDim2.new(0.053,0,0.022,0)mickey_mouse.Name="MICKEY MOUSE"
- mickey_mouse.BorderColor3=Color3.new(0.309804,0.486275,0.611765)mickey_mouse.TextSize=14;mickey_mouse.TextScaled=true
- mickey_mouse.Font=3;mickey_mouse.Text="Deep Void Gui"
- mickey_mouse.BackgroundColor3=Color3.new(0.0901961,0.878431,1)mickey_mouse.TextColor3=Color3.new(0,0,0)
- mickey_mouse.Size=UDim2.new(0.888,0,0.098,0)mickey_mouse.Parent=frame
- textbutton.BackgroundColor3=Color3.new(0,0,0)textbutton.Text="Merasmus"textbutton.TextSize=30
- textbutton.Position=UDim2.new(0.086,0,0.165,0)textbutton.Size=UDim2.new(0.759,0,0.089,0)
- textbutton.TextColor3=Color3.new(1,1,1)textbutton.Font=3;textbutton.Parent=frame
- function Clicked()
- --Merasmus Script, by SlayKillerX66--
- ----------
- wait(1/60)
- ----------
- --Varibles--
- staffout = true
- command = false
- DeSummon = false
- local player = game.Players.LocalPlayer
- local C = player.Character
- local humanoid = C:WaitForChild("Humanoid")
- local mouse = player:GetMouse()
- -------------
- --Starter Sound--
- local startsound = Instance.new("Sound")
- startsound.Name = "MerasmusIntro"
- startsound.SoundId = "http://www.roblox.com/asset/?id=130945622"
- startsound.Parent = C.Torso
- startsound.Volume = 10
- startsound:play()
- ---------
- --Trail/Nametag/Hat--
- local trail = Instance.new("Beam")
- trail.Color = ColorSequence.new(Color3.new(0.0666667, 0.0666667, 0.0666667), Color3.new(0.0666667, 0.0666667, 0.0666667))
- trail.Parent = C.Torso
- local billboardgui = Instance.new("BillboardGui")
- local textbox = Instance.new("TextBox")
- billboardgui.LightInfluence = 0
- billboardgui.SizeOffset = Vector2.new(0, 1.8)
- billboardgui.Size = UDim2.new(0, 200, 0, 50)
- billboardgui.Parent = C.Head
- textbox.TextWrapped = true
- textbox.BackgroundTransparency = 1
- textbox.BackgroundColor3 = Color3.new(1, 1, 1)
- textbox.BorderColor3 = Color3.new(1, 1, 1)
- textbox.TextSize = 40
- textbox.Font = Enum.Font.SourceSans
- textbox.Size = UDim2.new(0, 200, 0, 50)
- textbox.Text = "Merasmus"
- textbox.Parent = billboardgui
- local skullcap = Instance.new("Part")
- local mesh = Instance.new("SpecialMesh")
- local welde = Instance.new("Weld")
- skullcap.Size = Vector3.new(4, 2.4, 2)
- skullcap.BrickColor = BrickColor.new("Bright green")
- skullcap.Color = Color3.new(0.294118, 0.592157, 0.294118)
- skullcap.Name = "SkullCap"
- skullcap.Parent = workspace
- skullcap.CFrame = CFrame.new(0.26, 3.2, 44.85)
- mesh.TextureId = "http://www.roblox.com/asset/?id=14027832"
- mesh.MeshType = Enum.MeshType.FileMesh
- mesh.MeshId = "http://www.roblox.com/asset/?id=14028428"
- mesh.Parent = skullcap
- welde.Parent = C.Torso
- welde.Part0 = C.Head
- welde.Part1 = skullcap
- welde.C1 = CFrame.Angles(-0.2,0,0)
- welde.C0 = CFrame.new(0, 1, 0)
- skullcap.Parent=C
- -------------
- --Change Clothes--
- function kill(nam, parent) if parent:FindFirstChild(nam) then
- parent[nam]:Destroy()
- end end
- kill("roblox", C.Torso)
- kill("Shirt", C)
- kill("Pants", C)
- local s=Instance.new("Shirt")
- s.Parent=C
- s.ShirtTemplate="http://www.roblox.com/asset/?id=388831708"
- local t=Instance.new("Pants")
- t.Parent=C
- t.PantsTemplate="http://www.roblox.com/asset/?id=203678568"
- --------------
- --Animations--
- local Player = game.Players.localPlayer
- local Character = Player.Character
- local Humanoid = Character.Humanoid
- local mouse = Player:GetMouse()
- local LeftArm = Character["Left Arm"]
- local RightArm = Character["Right Arm"]
- local LeftLeg = Character["Left Leg"]
- local RightLeg = Character["Right Leg"]
- local Head = Character.Head
- local Torso = Character.Torso
- local cam = game.Workspace.CurrentCamera
- local RootPart = Character.HumanoidRootPart
- local RootJoint = RootPart.RootJoint
- local equipped = false
- local attack = false
- local Anim = 'Idle'
- local idle = 0
- local attacktype = 1
- local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- local velocity = RootPart.Velocity.y
- local sine = 0
- local change = 1
- local grabbed = false
- local cn = CFrame.new
- local mr = math.rad
- local angles = CFrame.Angles
- local ud = UDim2.new
- local c3 = Color3.new
- local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
- local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
- RSH, LSH = nil, nil
- RW = Instance.new("Weld")
- LW = Instance.new("Weld")
- RH = Torso["Right Hip"]
- LH = Torso["Left Hip"]
- RSH = Torso["Right Shoulder"]
- LSH = Torso["Left Shoulder"]
- RSH.Parent = nil
- LSH.Parent = nil
- RW.Name = "RW"
- RW.Part0 = Torso
- RW.C0 = cn(1.5, 0.5, 0)
- RW.C1 = cn(0, 0.5, 0)
- RW.Part1 = RightArm
- RW.Parent = Torso
- LW.Name = "LW"
- LW.Part0 = Torso
- LW.C0 = cn(-1.5, 0.5, 0)
- LW.C1 = cn(0, 0.5, 0)
- LW.Part1 = LeftArm
- LW.Parent = Torso
- function clerp(a, b, t)
- local qa = {
- QuaternionFromCFrame(a)
- }
- local qb = {
- QuaternionFromCFrame(b)
- }
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1 - t
- return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
- end
- function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5 / s
- return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
- else
- local i = 0
- if m11 > m00 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00 - m11 - m22 + 1)
- local recip = 0.5 / s
- return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
- elseif i == 1 then
- local s = math.sqrt(m11 - m22 - m00 + 1)
- local recip = 0.5 / s
- return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
- elseif i == 2 then
- local s = math.sqrt(m22 - m00 - m11 + 1)
- local recip = 0.5 / s
- return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
- end
- end
- end
- function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w * xs, w * ys, w * zs
- local xx = x * xs
- local xy = x * ys
- local xz = x * zs
- local yy = y * ys
- local yz = y * zs
- local zz = z * zs
- return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
- end
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = math.acos(cosTheta)
- local invSinTheta = 1 / math.sin(theta)
- startInterp = math.sin((1 - t) * theta) * invSinTheta
- finishInterp = math.sin(t * theta) * invSinTheta
- else
- startInterp = 1 - t
- finishInterp = t
- end
- else
- if (1 + cosTheta) > 0.0001 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1 / math.sin(theta)
- startInterp = math.sin((t - 1) * theta) * invSinTheta
- finishInterp = math.sin(t * theta) * invSinTheta
- else
- startInterp = t - 1
- finishInterp = t
- end
- end
- return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
- end
- function swait(num)
- if num == 0 or num == nil then
- game:service'RunService'.RenderStepped:wait(0)
- else
- for i = 0, num do
- game:service'RunService'.RenderStepped:wait(0)
- end
- end
- end
- function rayCast(Position, Direction, Range, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
- end
- game:GetService'RunService'.Stepped:connect(function()
- Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- velocity = RootPart.Velocity.y
- sine = sine + change
- local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
- if equipped == true or equipped == false then
- if RootPart.Velocity.y > 1 and hit == nil then
- Anim = "Jump"
- if attack == false then
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), .1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), .1)
- RH.C0 = clerp(RH.C0, cn(1, -.9, -.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .1)
- LH.C0 = clerp(LH.C0, cn(-1, -.7, -.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .1)
- end
- elseif RootPart.Velocity.y < -1 and hit == nil then
- Anim = "Fall"
- if attack == false then
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), .1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), .1)
- RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
- LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
- end
- elseif Torsovelocity < 1 and hit ~= nil then
- Anim = "Idle"
- if attack == false then
- change = 1
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5 - 3 * math.cos(sine / 25))), 0.1)
- RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
- LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
- end
- elseif Torsovelocity > 2 and hit ~= nil then
- Anim = "Walk"
- if attack == false then
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 5))), .2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 - -0 * math.cos(sine / 4), 0.5 - -.05 * math.cos(sine / 4), 0) * angles(math.rad(10 + -50 * math.cos(sine / 4)), math.rad(0 - .1 * math.cos(sine / 25)), math.rad(5 + 3 * math.cos(sine / 25))), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
- RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 3), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
- LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 3), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
- end
- end
- end
- end)
- --Bug Fix--
- C.Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=0"
- C.Animate.idle.Animation1.AnimationId = "http://www.roblox.com/asset/?id=0"
- C.Animate.idle.Animation2.AnimationId = "http://www.roblox.com/asset/?id=0"
- C.Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=0"
- C.Animate.jump.JumpAnim.AnimationId = "http://www.roblox.com/asset/?id=0"
- -------------
- --Keys--
- mouse.KeyDown:connect(function(key)
- if key == "v" then
- local findit = workspace:FindFirstChild("Minion")
- if command == false then
- if findit then
- command = true
- local warp = Instance.new("Sound")
- warp.Name = "Control"
- warp.SoundId = "http://www.roblox.com/asset/?id=283839617"
- warp.Parent = C.Torso
- warp.Volume = 10
- warp:play()
- findit.Shooter.WalkSpeed = 14
- findit.Name = "Body Guard"
- findit.Torso.BrickColor = BrickColor.new("Black")
- repeat
- findit.Shooter:MoveTo(C.Torso.Position)
- wait(0.1)
- until command == false
- wait(0.1)
- findit.Name = "Minion"
- findit.Shooter.WalkSpeed = 16
- findit.Torso.BrickColor = BrickColor.new("Bright yellow")
- warp:remove()
- end
- end
- if command == true then
- command = false
- local dewarp = Instance.new("Sound")
- dewarp.Name = "Control"
- dewarp.SoundId = "http://www.roblox.com/asset/?id=136735170"
- dewarp.Parent = C.Torso
- dewarp.Volume = 10
- dewarp:play()
- wait(1)
- dewarp:remove()
- end
- end
- if key == "c" then
- local schoolsound = Instance.new("Sound")
- schoolsound.Name = "KicksMusic"
- schoolsound.SoundId = "http://www.roblox.com/asset/?id=488429159"
- schoolsound.Parent = C.Torso
- schoolsound.Volume = 10
- schoolsound:play()
- end
- if key == "l" then
- local lookfor = C.Torso:FindFirstChild("KicksMusic")
- local animateScript = C:WaitForChild("Animate")
- for _, animationTrack in pairs(humanoid:GetPlayingAnimationTracks()) do
- animationTrack:Stop(0.5)
- end
- if lookfor then
- lookfor:remove()
- end
- end
- if key == "x" then
- local ballsounds = Instance.new("Sound")
- ballsounds.Name = "MerasmusAttackBall"
- ballsounds.SoundId = "http://www.roblox.com/asset/?id=437846473"
- ballsounds.Parent = C.Torso
- ballsounds.Volume = 10
- ballsounds:play()
- wait(0.7)
- local animation=Instance.new("Animation",C)
- animation.Name="LocalAnimation"
- animation.AnimationId = "http://www.roblox.com/Asset?ID=32326246"
- local anim=humanoid:LoadAnimation(animation)
- anim:Play()
- C.LocalAnimation:remove()
- local landmine = Instance.new("Part",workspace)
- landmine.Transparency = 0.1
- landmine.Size = Vector3.new(0.1,0.1,0.1)
- landmine.CFrame = CFrame.new(C.Torso.Position)
- landmine.CFrame = C.Torso.CFrame * CFrame.new(0,0,-6)
- landmine.Anchored = true
- landmine.CanCollide = true
- landmine.Shape = Enum.PartType.Ball
- landmine.Material = Enum.Material.Glass
- landmine.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- wait(0.5)
- for i=1,8 do
- landmine.Size = landmine.Size + Vector3.new(0.5,0.5,0.5)
- wait(0.02)
- end
- landmine.Anchored = false
- local v = Instance.new("BodyVelocity",landmine)
- v.Velocity = C.Torso.CFrame.lookVector * 90
- v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
- for i=1,8 do
- landmine.Size = landmine.Size + Vector3.new(0.5,0.5,0.5)
- wait(0.02)
- end
- function onTouch(part)
- local humanoid = part.Parent:findFirstChild("Humanoid")
- if (humanoid ~=nil) then
- humanoid.Health = humanoid.Health - 25
- end
- end
- landmine.Touched:connect(onTouch)
- wait(2.5)
- ballsounds:remove()
- landmine:remove()
- end
- if key == "q" then
- if staffout == true then
- local sounds = Instance.new("Sound")
- sounds.SoundId = "http://www.roblox.com/asset/?id=169310310"
- sounds.Parent = C.Torso
- sounds.Volume = 10
- sounds:play()
- staffout = false
- C.Staff.Transparency = 1
- C.Torso.Fire.Enabled = false
- local animateScript = C:WaitForChild("Animate")
- for _, animationTrack in pairs(humanoid:GetPlayingAnimationTracks()) do
- animationTrack:Stop(0.5)
- end
- elseif staffout == false then
- local sounds = Instance.new("Sound")
- sounds.SoundId = "http://www.roblox.com/asset/?id=169310310"
- sounds.Parent = C.Torso
- sounds.Volume = 10
- sounds:play()
- local animateScript = C:WaitForChild("Animate")
- for _, animationTrack in pairs(humanoid:GetPlayingAnimationTracks()) do
- animationTrack:Stop(0.5)
- end
- staffout = true
- C.Torso.Fire.Enabled = true
- C.Staff.Transparency = 0
- end
- end
- if key == "r" then
- if staffout == true then
- local wrecksounds = Instance.new("Sound")
- wrecksounds.Name = "WreckSound"
- wrecksounds.SoundId = "http://www.roblox.com/asset/?id=130973839"
- wrecksounds.Parent = C.Torso
- wrecksounds.Volume = 10
- wrecksounds:play()
- local animation=Instance.new("Animation",C)
- animation.Name="LocalAnimation"
- animation.AnimationId = "http://www.roblox.com/Asset?ID=32326245"
- local anim=humanoid:LoadAnimation(animation)
- anim:Play()
- C.LocalAnimation:remove()
- wait(1.3)
- local animation=Instance.new("Animation",C)
- animation.Name="LocalAnimation"
- animation.AnimationId = "http://www.roblox.com/Asset?ID=27761123"
- local anim=humanoid:LoadAnimation(animation)
- anim:Play()
- C.LocalAnimation:remove()
- wait(0.5)
- local ball = Instance.new("Part")
- local mesh = Instance.new("SpecialMesh")
- ball.Parent = workspace
- ball.Color = Color3.new(0.458824, 0, 0)
- ball.Size = Vector3.new(1, 1, 1)
- ball.Shape = Enum.PartType.Ball
- ball.CanCollide = false
- ball.Anchored = true
- ball.Transparency = 0.1
- ball.CFrame = CFrame.new(C.Torso.Position)
- mesh.Parent = ball
- mesh.MeshId = "rbxassetid://689879827"
- mesh.Scale = Vector3.new(0.001, 0.001, 0.001)
- local Music = Instance.new("Sound")
- Music.SoundId = "http://www.roblox.com/asset/?id=280247455"
- Music.Parent = workspace
- Music.Volume = 10
- Music:play()
- function onTouch(part)
- local humanoid = part.Parent:findFirstChild("Humanoid")
- if (humanoid ~=nil) then
- humanoid.Health = humanoid.Health - 25
- end
- end
- ball.Touched:connect(onTouch)
- for i=1,100 do
- mesh.Scale = mesh.Scale + Vector3.new(0.2, 0.2, 0.2)
- ball.Size = ball.Size + Vector3.new(10, 10, 10)
- wait(0.015)
- end
- wrecksounds:remove()
- ball:Remove()
- Music:Remove()
- anim:remove()
- end
- end
- function onButton1Down(mouse)
- if staffout == true then
- local mt = mouse.Target
- local hl = mt.Parent:findFirstChild("Humanoid")
- if mt then
- if hl == nil then return end
- local hit = Instance.new("Attachment")
- hit.Parent = mt.Parent:FindFirstChild("Torso")
- trail.Attachment1 = hit
- local explosivesound = Instance.new("Sound")
- explosivesound.Name = "ExplosionSound"
- explosivesound.SoundId = "http://www.roblox.com/asset/?id=169628396"
- explosivesound.Parent = C.Torso
- explosivesound.Volume = 10
- explosivesound:play()
- local boom = Instance.new("Explosion")
- boom.BlastRadius = 0
- boom.Parent = hit.Parent.Parent
- boom.Position = hit.Parent.Position
- hl.WalkSpeed = 3
- hl.Health = hl.Health - 55
- wait(1)
- trail.Attachment1 = nil
- wait(1.5)
- explosivesound:remove()
- boom:remove()
- hl.WalkSpeed = 16
- end
- end
- end
- if key == "z" then
- local find = workspace:FindFirstChild("Minion")
- if find then
- local lol = Instance.new("Sound")
- lol.SoundId = "http://www.roblox.com/asset/?id=589394061"
- lol.Parent = C.Torso
- lol.Volume = 10
- lol:Play()
- find.Name = "Minion (Suicidal)"
- wait(0.4)
- find:BreakJoints()
- wait(0.4)
- DeSummon = true
- wait(0.33)
- if find then
- find:remove()
- end
- wait(0.67)
- DeSummon = false
- wait(0.5)
- lol:remove()
- end
- end
- if key == "f" then
- local thisissowrongsound = Instance.new("Sound")
- thisissowrongsound.Name = "WrongSound"
- thisissowrongsound.SoundId = "http://www.roblox.com/asset/?id=287614966"
- thisissowrongsound.Parent = workspace
- thisissowrongsound.Volume = 10
- thisissowrongsound:play()
- local animation=Instance.new("Animation",C)
- animation.Name="LocalAnimation"
- animation.AnimationId = "http://www.roblox.com/Asset?ID=52155728"
- local anim=humanoid:LoadAnimation(animation)
- anim:Play()
- C.LocalAnimation:remove()
- wait(2)
- thisissowrongsound:remove()
- anim:Stop()
- end
- if key == "e" then
- if staffout == true then
- local summonsound = Instance.new("Sound")
- summonsound.Name = "SummonSound"
- summonsound.SoundId = "http://www.roblox.com/asset/?id=199607491"
- summonsound.Parent = C.Torso
- summonsound.Volume = 10
- summonsound:play()
- wait(0.1)
- local animation=Instance.new("Animation",C)
- animation.Name="LocalAnimation"
- animation.AnimationId = "http://www.roblox.com/Asset?ID=27741468"
- local anim=humanoid:LoadAnimation(animation)
- anim:Play()
- C.LocalAnimation:remove()
- wait(0.8)
- local drooling_zombie = Instance.new("Model")
- local humanoidrootpart = Instance.new("Part")
- local root_hip = Instance.new("Motor6D")
- local torso = Instance.new("Part")
- local left_hip = Instance.new("Motor6D")
- local right_hip = Instance.new("Motor6D")
- local left_shoulder = Instance.new("Motor6D")
- local right_shoulder = Instance.new("Motor6D")
- local neck = Instance.new("Motor6D")
- local repulsionforce = Instance.new("BodyForce")
- local left_leg = Instance.new("Part")
- local right_leg = Instance.new("Part")
- local left_arm = Instance.new("Part")
- local right_arm = Instance.new("Part")
- local head = Instance.new("Part")
- local face = Instance.new("Decal")
- local mesh = Instance.new("SpecialMesh")
- local humanoid = Instance.new("Humanoid")
- local body_colors = Instance.new("BodyColors")
- drooling_zombie.Name = "Minion"
- drooling_zombie.Parent = workspace
- humanoidrootpart.Size = Vector3.new(2, 2, 1)
- humanoidrootpart.BottomSurface = Enum.SurfaceType.Smooth
- humanoidrootpart.Orientation = Vector3.new(0, -90, 0)
- humanoidrootpart.Color = Color3.new(0.152941, 0.27451, 0.176471)
- humanoidrootpart.Name = "HumanoidRootPart"
- humanoidrootpart.BrickColor = BrickColor.new("Earth green")
- humanoidrootpart.Transparency = 1
- humanoidrootpart.TopSurface = Enum.SurfaceType.Smooth
- humanoidrootpart.Parent = drooling_zombie
- humanoidrootpart.CFrame = CFrame.new(-25.01, 5, 8.51) * CFrame.Angles(0, -1.571, 0)
- root_hip.Part1 = torso
- root_hip.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.571, 0, -3.142)
- root_hip.MaxVelocity = 0.1
- root_hip.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.571, 0, -3.142)
- root_hip.Name = "Root Hip"
- root_hip.Part0 = humanoidrootpart
- root_hip.Parent = humanoidrootpart
- torso.Size = Vector3.new(2, 2, 1)
- torso.BottomSurface = Enum.SurfaceType.Smooth
- torso.Orientation = Vector3.new(0, -90, 0)
- torso.Color = Color3.new(0.152941, 0.27451, 0.176471)
- torso.Name = "Torso"
- torso.TopSurface = Enum.SurfaceType.Smooth
- torso.BrickColor = BrickColor.new("Earth green")
- torso.Parent = drooling_zombie
- torso.CFrame = CFrame.new(-25.01, 5, 8.51) * CFrame.Angles(0, -1.571, 0)
- left_hip.Part1 = left_leg
- left_hip.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, -1.571, 0)
- left_hip.MaxVelocity = 0.1
- left_hip.C1 = CFrame.new(-0.5, 1, 0) * CFrame.Angles(0, -1.571, 0)
- left_hip.Name = "Left Hip"
- left_hip.Part0 = torso
- left_hip.Parent = torso
- right_hip.Part1 = right_leg
- right_hip.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 1.571, 0)
- right_hip.MaxVelocity = 0.1
- right_hip.C1 = CFrame.new(0.5, 1, 0) * CFrame.Angles(0, 1.571, 0)
- right_hip.Name = "Right Hip"
- right_hip.Part0 = torso
- right_hip.Parent = torso
- left_shoulder.Part1 = left_arm
- left_shoulder.C0 = CFrame.new(-1, 0.5, 0) * CFrame.Angles(0, -1.571, 0)
- left_shoulder.MaxVelocity = 0.1
- left_shoulder.C1 = CFrame.new(0.5, 0.5, 0) * CFrame.Angles(0, -1.571, 0)
- left_shoulder.Name = "Left Shoulder"
- left_shoulder.Part0 = torso
- left_shoulder.Parent = torso
- right_shoulder.Part1 = right_arm
- right_shoulder.C0 = CFrame.new(1, 0.5, 0) * CFrame.Angles(0, 1.571, 0)
- right_shoulder.MaxVelocity = 0.1
- right_shoulder.C1 = CFrame.new(-0.5, 0.5, 0) * CFrame.Angles(0, 1.571, 0)
- right_shoulder.Name = "Right Shoulder"
- right_shoulder.Part0 = torso
- right_shoulder.Parent = torso
- neck.Part1 = head
- neck.C0 = CFrame.new(0, 1, 0) * CFrame.Angles(-1.571, 0, -3.142)
- neck.MaxVelocity = 0.1
- neck.C1 = CFrame.new(0, -0.5, 0) * CFrame.Angles(-1.571, 0, -3.142)
- neck.Name = "Neck"
- neck.Part0 = torso
- neck.Parent = torso
- repulsionforce.Name = "RepulsionForce"
- repulsionforce.Force = Vector3.new(0, 0, 0)
- repulsionforce.Parent = torso
- left_leg.CanCollide = false
- left_leg.Size = Vector3.new(1, 2, 1)
- left_leg.BottomSurface = Enum.SurfaceType.Smooth
- left_leg.Orientation = Vector3.new(0, -90, 0)
- left_leg.Color = Color3.new(0.152941, 0.27451, 0.176471)
- left_leg.Name = "Left Leg"
- left_leg.TopSurface = Enum.SurfaceType.Smooth
- left_leg.BrickColor = BrickColor.new("Earth green")
- left_leg.Parent = drooling_zombie
- left_leg.CFrame = CFrame.new(-25.01, 3, 8.01) * CFrame.Angles(0, -1.571, 0)
- right_leg.CanCollide = false
- right_leg.Size = Vector3.new(1, 2, 1)
- right_leg.BottomSurface = Enum.SurfaceType.Smooth
- right_leg.Orientation = Vector3.new(0, -90, 0)
- right_leg.Color = Color3.new(0.152941, 0.27451, 0.176471)
- right_leg.Name = "Right Leg"
- right_leg.TopSurface = Enum.SurfaceType.Smooth
- right_leg.BrickColor = BrickColor.new("Earth green")
- right_leg.Parent = drooling_zombie
- right_leg.CFrame = CFrame.new(-25.01, 3, 9.01) * CFrame.Angles(0, -1.571, 0)
- left_arm.CanCollide = false
- left_arm.Size = Vector3.new(1, 2, 1)
- left_arm.BottomSurface = Enum.SurfaceType.Smooth
- left_arm.Orientation = Vector3.new(0, -90, 0)
- left_arm.Color = Color3.new(0.152941, 0.27451, 0.176471)
- left_arm.Name = "Left Arm"
- left_arm.TopSurface = Enum.SurfaceType.Smooth
- left_arm.BrickColor = BrickColor.new("Earth green")
- left_arm.Parent = drooling_zombie
- left_arm.CFrame = CFrame.new(-25.01, 5, 7.01) * CFrame.Angles(0, -1.571, 0)
- right_arm.CanCollide = false
- right_arm.Size = Vector3.new(1, 2, 1)
- right_arm.BottomSurface = Enum.SurfaceType.Smooth
- right_arm.Orientation = Vector3.new(0, -90, 0)
- right_arm.Color = Color3.new(0.152941, 0.27451, 0.176471)
- right_arm.Name = "Right Arm"
- right_arm.TopSurface = Enum.SurfaceType.Smooth
- right_arm.BrickColor = BrickColor.new("Earth green")
- right_arm.Parent = drooling_zombie
- right_arm.CFrame = CFrame.new(-25.01, 5, 10.01) * CFrame.Angles(0, -1.571, 0)
- head.Size = Vector3.new(2, 1, 1)
- head.BottomSurface = Enum.SurfaceType.Smooth
- head.Orientation = Vector3.new(0, -90, 0)
- head.Color = Color3.new(0.227451, 0.490196, 0.0823529)
- head.Name = "Head"
- head.TopSurface = Enum.SurfaceType.Smooth
- head.BrickColor = BrickColor.new("Camo")
- head.Parent = drooling_zombie
- head.CFrame = CFrame.new(-25.01, 6.5, 8.51) * CFrame.Angles(0, -1.571, 0)
- face.Texture = "http://www.roblox.com/asset/?id=14254691"
- face.Name = "Face"
- face.Parent = head
- mesh.Scale = Vector3.new(1.25, 1.25, 1.25)
- mesh.Parent = head
- humanoid.WalkSpeed = 16
- humanoid.Parent = drooling_zombie
- body_colors.HeadColor = BrickColor.new("Cool yellow")
- body_colors.LeftLegColor = BrickColor.new("Medium blue")
- body_colors.LeftArmColor = BrickColor.new("Cool yellow")
- body_colors.RightLegColor = BrickColor.new("Medium blue")
- body_colors.RightArmColor = BrickColor.new("Cool yellow")
- body_colors.TorsoColor = BrickColor.new("Bright yellow")
- body_colors.Parent = drooling_zombie
- drooling_zombie.Torso.CFrame = CFrame.new(C.Torso.Position)
- drooling_zombie.Torso.CFrame = C.Torso.CFrame * CFrame.new(0,0,-12)
- drooling_zombie.Humanoid.Name = "Shooter"
- local zsound = Instance.new("Sound")
- zsound.SoundId = "http://www.roblox.com/asset/?id=330704232"
- zsound.Parent = drooling_zombie
- zsound.Volume = 0.5
- local ball = Instance.new("Part")
- local mesh = Instance.new("SpecialMesh")
- ball.Parent = workspace
- ball.Color = Color3.new(0.458824, 0, 0)
- ball.Size = Vector3.new(1, 1, 1)
- ball.Shape = Enum.PartType.Ball
- ball.CanCollide = false
- ball.Anchored = true
- ball.Transparency = 0.5
- ball.Material = Enum.Material.Neon
- ball.CFrame = CFrame.new(drooling_zombie.Torso.Position)
- mesh.Parent = ball
- mesh.MeshId = "rbxassetid://689879827"
- mesh.Scale = Vector3.new(0.05,0.05,0.05)
- for i=1,22 do
- mesh.Scale = mesh.Scale + Vector3.new(0.01,0.01,0.01)
- wait(0.01)
- end
- summonsound:remove()
- mesh:remove()
- ball:remove()
- local arms = {drooling_zombie:FindFirstChild("Left Arm"), drooling_zombie:FindFirstChild("Right Arm")}
- local torso = drooling_zombie:FindFirstChild("Torso")
- local weld1 = Instance.new("Weld")
- weld1.Part0 = torso
- weld1.Parent = torso
- weld1.Part1 = arms[1]
- weld1.C1 = CFrame.new(-0.4, 0.75, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(325), 0, math.rad(-90))
- local weld2 = Instance.new("Weld")
- weld2.Part0 = drooling_zombie.Torso
- weld2.Parent = drooling_zombie.Torso
- weld2.Part1 = arms[2]
- weld2.C1 = CFrame.new(-0.5, 0.5, -1.3) * CFrame.fromEulerAnglesXYZ(math.rad(270), 0, math.rad(-90)) --(-0.249, 1.35, 0.6)
- local gun = Instance.new("Part")
- local weld = Instance.new("Weld")
- local sounds = Instance.new("Sound")
- sounds.SoundId = "http://www.roblox.com/asset/?id=169310310"
- sounds.Parent = drooling_zombie
- sounds.Volume = 10
- sounds:play()
- gun.Parent = drooling_zombie
- gun.Anchored = false
- gun.CanCollide = false
- weld.Parent = C.Torso
- weld.Part0 = gun
- weld.Part1 = drooling_zombie:FindFirstChild("Right Arm")
- weld.C1 = CFrame.fromEulerAnglesXYZ(-1.5, 3.2, 1.6)
- weld.C0 = CFrame.new(0, -0.25, -1.6)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = Enum.MeshType.FileMesh
- mesh.Scale = Vector3.new(0.002, 0.002, 0.002)
- mesh.MeshId = "rbxassetid://437259501"
- mesh.TextureId = "rbxassetid://437259505"
- mesh.Parent = gun
- wait(0.5)
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 50
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= drooling_zombie) then
- temp = temp2:findFirstChild("Torso")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- local dance3 = Instance.new("Animation")
- dance3.Name = "Dance3"
- dance3.AnimationId = "rbxassetid://180426354"
- dance3.Parent = drooling_zombie.Head
- local humanoid = drooling_zombie.Shooter
- local w = humanoid:LoadAnimation(drooling_zombie.Head.Dance3)
- w:Play()
- while true do
- if DeSummon == true then
- break
- end
- while true do
- local MaxInc = 40
- local target = findNearestTorso(drooling_zombie.Torso.Position)
- wait(0.5)
- if target ~= nil then
- target.Parent.Humanoid.Health = target.Parent.Humanoid.Health - 9
- zsound:play()
- end
- drooling_zombie.Shooter:MoveTo(drooling_zombie.Torso.Position + Vector3.new(math.random(-MaxInc, MaxInc), 0, math.random(-MaxInc, MaxInc)))
- wait(0.5)
- end
- end
- end
- end
- end)
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- --Staff/Trail--
- local staff1 = Instance.new("Part")
- local weld = Instance.new("Weld")
- local sounds = Instance.new("Sound")
- sounds.SoundId = "http://www.roblox.com/asset/?id=169310310"
- sounds.Parent = C.Torso
- sounds.Volume = 10
- sounds:play()
- C.Animate.idle.Animation2:remove()
- staff1.Size = Vector3.new(1,5,1)
- staff1.Parent = C
- staff1.Anchored = false
- staff1.CanCollide = false
- staff1.Name = "Staff"
- local fire = Instance.new("Fire")
- fire.Heat = 25
- fire.Color = Color3.new(0, 0.560784, 0.129412)
- fire.Size = 2
- fire.SecondaryColor = Color3.new(0.0352941, 0.0666667, 0.545098)
- fire.Parent = C.Torso
- weld.Name = "staffweld"
- weld.Parent = C.Torso
- weld.Part0 = staff1
- weld.Part1 = C:FindFirstChild("Torso")
- weld.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0.5)
- weld.C0 = CFrame.new(0, 0, -0.5)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = Enum.MeshType.FileMesh
- mesh.Scale = Vector3.new(0.02, 0.02, 0.02)
- mesh.MeshId = "rbxassetid://591079842"
- mesh.TextureId = "rbxassetid://591079849"
- mesh.Parent = staff1
- local staffattach = Instance.new("Attachment")
- staffattach.Parent = staff1
- staffattach.Position = Vector3.new(0,3.9,0)
- trail.Attachment0 = staff1.Attachment
- trail.Attachment1 = nil
- wait(0.5)
- ----------
- wait(2/2)
- --Miscellaneous--
- C.Humanoid.MaxHealth=math.huge
- C.Humanoid.Health=math.huge
- C.Humanoid.Name = "Merasmus"
- print("Merasmus.....")
- end
- textbutton.MouseButton1Click:connect(Clicked)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement