--[[ read me NOW!!! this is info related to the reanimate method this was leaked with permission from ShownApe aka the one who found the original limb reanimate (and also permission from kampachi who made the original code and gave me it, we love you kam) this is a variant of the original method which works the same way you might be wondering why it got leaked: when someone found this variant it got given to someone, then someone else, then someone else... and so on (including me) till it got in the hands of a skid (feariosz0) who thought it was a good idea to use it without permission in his hub to advertise it and get popular from it textbook definition of skid basically also a h1 report (aka a vulnerability report) was already filed and sent to roblox so this will get patched soon, have fun while you still can also please keep in mind that this code was written by me but its a remake of kampaachi's code just done and written way better (no shade) anything after this freshly added comment was made before and not after the leak, have fun skids, while you still can,,, :smiling_imp: ]] -- written by Emper -- anyone who has the method can receive this code -- whoever originally wrote it was trying to optimize it -- so ill be doing that here -- although you dont really need to optimize stuff thats -- not done in loops -- but ill be doing it anyway since thats what they were trying to do -- empers discord: https://discord.gg/UJ7YtqadPJ do -- Settings: local DefaultAnimations = true -- doesnt work in velocity because it doesnt allow u to run localscripts local DisableCharacterCollisions = true local InstantRespawn = true local ParentCharacterToRig = true local RigTransparency = 1 -- local CFrameidentity = CFrame.identity local Inverse = CFrameidentity.Inverse local ToAxisAngle = CFrameidentity.ToAxisAngle local ToEulerAnglesXYZ = CFrameidentity.ToEulerAnglesXYZ local ToObjectSpace = CFrameidentity.ToObjectSpace local Connections = {} local Disconnect = nil local game = game local FindFirstChild = game.FindFirstChild local FindFirstChildOfClass = game.FindFirstChildOfClass local Players = FindFirstChildOfClass(game, "Players") local LocalPlayer = Players.LocalPlayer local Character = LocalPlayer.Character local CharacterAdded = LocalPlayer.CharacterAdded local Connect = CharacterAdded.Connect local Wait = CharacterAdded.Wait local Rig = Players:CreateHumanoidModelFromDescription(Players:GetHumanoidDescriptionFromUserId(LocalPlayer.UserId), Enum.HumanoidRigType.R6) local RigAnimate = Rig.Animate local RigHumanoid = Rig.Humanoid -- no need to do waitforchild here, its a safe index local RigRootPart = RigHumanoid.RootPart local RunService = FindFirstChildOfClass(game, "RunService") local Workspace = FindFirstChildOfClass(game, "Workspace") local GetDescendants = game.GetDescendants local IsA = game.IsA local WaitForChild = game.WaitForChild local BreakJoints = Instance.new("Model").BreakJoints local mathsin = math.sin local next = next local osclock = os.clock local replicatesignal = replicatesignal local RootPartCFrame = nil local Motor6Ds = {} local select = select local sethiddenproperty = sethiddenproperty local tableinsert = table.insert local Vector3 = Vector3 local Vector3new = Vector3.new local Vector3zero = Vector3.zero -- RigAnimate.Enabled = false Rig.Name = "non" if Character then if replicatesignal then if InstantRespawn then replicatesignal(LocalPlayer.ConnectDiedSignalBackend) task.wait(Players.RespawnTime - 0.1) local RootPart = FindFirstChild(Character, "HumanoidRootPart") if RootPart then RootPartCFrame = RootPart.CFrame end replicatesignal(LocalPlayer.Kill) end else BreakJoints(Character) end end Character = Wait(CharacterAdded) local Animate = WaitForChild(Character, "Animate") Animate.Enabled = false local RootPart = WaitForChild(Character, "HumanoidRootPart") RigRootPart.CFrame = RootPartCFrame or RootPart.CFrame Disconnect = Connect(RigHumanoid.Died, function() for Index, Connection in Connections do Disconnect(Connection) end if ParentCharacterToRig then Character.Parent = Rig.Parent end BreakJoints(Character) Rig:Destroy() end).Disconnect for Index, Descendant in next, GetDescendants(Character) do if IsA(Descendant, "Motor6D") then Motor6Ds[Descendant] = { Part0 = Rig[Descendant.Part0.Name], Part1 = Rig[Descendant.Part1.Name] } end end for Index, Descendant in next, GetDescendants(Rig) do if IsA(Descendant, "BasePart") then Descendant.Transparency = RigTransparency end end Rig.Parent = Workspace if ParentCharacterToRig then Character.Parent = Rig end task.defer(function() local CurrentCamera = Workspace.CurrentCamera local CameraCFrame = CurrentCamera.CFrame LocalPlayer.Character = Rig CurrentCamera.CameraSubject = RigHumanoid Wait(RunService.PreRender) Workspace.CurrentCamera.CFrame = CameraCFrame end) tableinsert(Connections, Connect(RunService.PostSimulation, function() for Motor6D, Table in next, Motor6Ds do local Part0 = Table.Part0 local Part1CFrame = Table.Part1.CFrame Motor6D.DesiredAngle = select(3, ToEulerAnglesXYZ(Part1CFrame, Part0.CFrame)) local Delta = Inverse(Motor6D.C0) * ( Inverse(Part0.CFrame) * Part1CFrame ) * Motor6D.C1 local Axis, Angle = ToAxisAngle(Delta) sethiddenproperty(Motor6D, "ReplicateCurrentAngle6D", Axis * Angle) sethiddenproperty(Motor6D, "ReplicateCurrentOffset6D", Delta.Position) end RootPart.AssemblyAngularVelocity = Vector3zero RootPart.AssemblyLinearVelocity = Vector3zero RootPart.CFrame = RigRootPart.CFrame + Vector3new(0, mathsin(osclock() * 15) * 0.004, 0) end)) tableinsert(Connections, Connect(RunService.PreSimulation, function() for Index, BasePart in next, GetDescendants(Rig) do if IsA(BasePart, "BasePart") then BasePart.CanCollide = false end end if DisableCharacterCollisions and not ParentCharacterToRig then for Index, BasePart in next, GetDescendants(Character) do if IsA(BasePart, "BasePart") then BasePart.CanCollide = false end end end end)) end -- simple convert by melon Player=game.Players.LocalPlayer Character=workspace.non hum = Character.Humanoid LeftArm=Character["Left Arm"] LeftLeg=Character["Left Leg"] RightArm=Character["Right Arm"] RightLeg=Character["Right Leg"] Root=Character["HumanoidRootPart"] Head=Character["Head"] Torso=Character["Torso"] Neck=Torso["Neck"] mouse = Player:GetMouse() walking = false jumping = false attacking = false firsttime = false tauntdebounce = false position = nil MseGuide = true running = false settime = 0 sine = 0 t = 0 ws = 14 change = 1 combo1 = true dancing = false equip = false dgs = 75 combo2 = false switch1 = true switch2 = false firsttime2 = false combo3 = false gunallowance = false shooting = false RunSrv = game:GetService("RunService") RenderStepped = game:GetService("RunService").RenderStepped removeuseless = game:GetService("Debris") local HEADLERP = Instance.new("ManualWeld") HEADLERP.Parent = Head HEADLERP.Part0 = Head HEADLERP.Part1 = Head HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) local TORSOLERP = Instance.new("ManualWeld") TORSOLERP.Parent = Root TORSOLERP.Part0 = Torso TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) local ROOTLERP = Instance.new("ManualWeld") ROOTLERP.Parent = Root ROOTLERP.Part0 = Root ROOTLERP.Part1 = Torso ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) local RIGHTARMLERP = Instance.new("ManualWeld") RIGHTARMLERP.Parent = RightArm RIGHTARMLERP.Part0 = RightArm RIGHTARMLERP.Part1 = Torso RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) local LEFTARMLERP = Instance.new("ManualWeld") LEFTARMLERP.Parent = LeftArm LEFTARMLERP.Part0 = LeftArm LEFTARMLERP.Part1 = Torso LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) local RIGHTLEGLERP = Instance.new("ManualWeld") RIGHTLEGLERP.Parent = RightLeg RIGHTLEGLERP.Part0 = RightLeg RIGHTLEGLERP.Part1 = Torso RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) local LEFTLEGLERP = Instance.new("ManualWeld") LEFTLEGLERP.Parent = LeftLeg LEFTLEGLERP.Part0 = LeftLeg LEFTLEGLERP.Part1 = Torso LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) local function weldBetween(a, b) local weld = Instance.new("ManualWeld", a) weld.Part0 = a weld.Part1 = b weld.C0 = a.CFrame:inverse() * b.CFrame return weld end function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR) A = Instance.new("Attachment", PARENT) A.Position = POSITION1 A.Name = "A" B = Instance.new("Attachment", PARENT) B.Position = POSITION2 B.Name = "B" tr1 = Instance.new("Trail", PARENT) tr1.Attachment0 = A tr1.Attachment1 = B tr1.Enabled = true tr1.Lifetime = LIFETIME tr1.TextureMode = "Static" tr1.LightInfluence = 0 tr1.Color = COLOR tr1.Transparency = NumberSequence.new(0, 1) end introsound = Instance.new("Sound",Head) introsound.SoundId = "rbxassetid://236146895" introsound.Volume = 8 introsound:Play() fedora = Instance.new("Part",Character) fedora.Size = Vector3.new(2,2,2) fedora.CFrame = Head.CFrame fedora.Transparency = 1 fedora.CanCollide = false fedoraweld = Instance.new("Weld",fedora) fedoraweld.Part0 = fedora fedoraweld.Part1 = Head fedoraweld.C0 = fedora.CFrame:inverse() * Head.CFrame * CFrame.new(0,-.75,0) mfedora = Instance.new("SpecialMesh", fedora) mfedora.MeshType = "FileMesh" mfedora.Scale = Vector3.new(.97, .97, .97) mfedora.MeshId,mfedora.TextureId = 'http://www.roblox.com/asset/?id=13640868','http://www.roblox.com/asset/?id=18987684' shades = Instance.new("Part",Character) shades.Size = Vector3.new(2,2,2) shades.Transparency = 1 shades.CFrame = Head.CFrame shades.CanCollide = false shadesweld = Instance.new("Weld",shades) shadesweld.Part0 = shades shadesweld.Part1 = Head shadesweld.C0 = shades.CFrame:inverse() * Head.CFrame * CFrame.new(0,-.2,.15) mshades = Instance.new("SpecialMesh", shades) mshades.MeshType = "FileMesh" mshades.Scale = Vector3.new(1.04, 1.28, 1.04) mshades.MeshId,mshades.TextureId = 'http://www.roblox.com/asset/?id=1577360','http://www.roblox.com/asset/?id=1577349' coroutine.wrap(function() for i,v in pairs(Character:GetChildren()) do if v.Name == "Animate" then v:Remove() end end end)() function damagealll(Radius,Position) local Returning = {} for _,v in pairs(workspace:GetChildren()) do if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then if v:FindFirstChild("Torso") then local Mag = (v.Torso.Position - Position).magnitude if Mag < Radius then table.insert(Returning,v) end elseif v:FindFirstChild("UpperTorso") then local Mag = (v.UpperTorso.Position - Position).magnitude if Mag < Radius then table.insert(Returning,v) end end end end return Returning end ArtificialHB = Instance.new("BindableEvent", hum) ArtificialHB.Name = "Heartbeat" hum:WaitForChild("Heartbeat") frame = 1 / 60 tf = 0 allowframeloss = false tossremainder = false lastframe = tick() hum.Heartbeat:Fire() game:GetService("RunService").Heartbeat:connect(function(s, p) tf = tf + s if tf >= frame then if allowframeloss then hum.Heartbeat:Fire() lastframe = tick() else for i = 1, math.floor(tf / frame) do hum.Heartbeat:Fire() end lastframe = tick() end if tossremainder then tf = 0 else tf = tf - frame * math.floor(tf / frame) end end end) function swait(num) if num == 0 or num == nil then game:service("RunService").Stepped:wait(0) else for i = 0, num do game:service("RunService").Stepped:wait(0) end end end intro = true ws = 0 bigfedora = Instance.new("Part",Character) bigfedora.Size = Vector3.new(2,2,2) bigfedora.CFrame = bigfedora.CFrame:inverse() * Root.CFrame * CFrame.new(math.random(-60,60),-.2,math.random(-60,60)) * CFrame.Angles(0,math.rad(math.random(-180,180)),0) bigfedora.CanCollide = false bigfedora.Anchored = true bigfedora.Name = "mbigf" mbigfedora = Instance.new("SpecialMesh", bigfedora) mbigfedora.MeshType = "FileMesh" mbigfedora.Scale = Vector3.new(6, 7, 7) mbigfedora.MeshId,mbigfedora.TextureId = 'http://www.roblox.com/asset/?id=13640868','http://www.roblox.com/asset/?id=18987684' for i = 1, 60 do bigfedora.CFrame = bigfedora.CFrame:lerp(CFrame.new(Root.Position) * CFrame.new(0,-.1,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.09) swait() end wait(.25) for i = 1, 50 do bigfedora.CFrame = bigfedora.CFrame:lerp(CFrame.new(fedora.Position),.05) swait() end zmc = 0 for i = 1, 29 do zmc = zmc + 2 mbigfedora.Scale = mbigfedora.Scale - Vector3.new(.25,.25,.25) bigfedora.CFrame = bigfedora.CFrame * CFrame.Angles(math.rad(0),math.rad(zmc),0) swait() end bigfedora:Remove() ws = 14 function SOUND(PARENT,ID,VOL,LOOP,REMOVE) so = Instance.new("Sound") so.Parent = PARENT so.SoundId = "rbxassetid://"..ID so.Volume = VOL so.Looped = LOOP so:Play() removeuseless:AddItem(so,REMOVE) end mouse.KeyDown:connect(function(Press) Press=Press:lower() if Press=='k' then if dancing then dancing = false else dancing = true ws = 0 change = .5 attacking = true jam = Instance.new("Sound",Torso) jam.SoundId = "rbxassetid://665751753" jam.Volume = 8 jam.Looped = true jam.TimePosition = 22.3 jam:Play() lol90 = 0 coroutine.wrap(function() while dancing do lol90 = lol90 + 11 ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(1 * math.sin(sine/10),.1 + .8 * math.sin(sine/3),0) * CFrame.Angles(math.rad(0),math.rad(0 * math.sin(sine/8)),math.rad(8 * math.sin(sine/7))),.25) ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0 * math.sin(sine/14),0,0) * CFrame.Angles(math.rad(0),math.rad(lol90),0),.25) LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,1.45,0) * CFrame.Angles(math.rad(180),math.rad(-5 * math.sin(sine/3)),math.rad(-6 * math.sin(sine/3))),0.25) RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.4,1.45,0) * CFrame.Angles(math.rad(180),math.rad(5 * math.sin(sine/3)),math.rad(6 * math.sin(sine/3))), 0.25) RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10 + 5 * math.sin(sine/3))), 0.25) LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10 - 5 * math.sin(sine/3))), 0.25) swait() end ws = 14 jam:Remove() ROOTLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) attacking = false end)() end end end) mouse.KeyDown:connect(function(Press) Press=Press:lower() if Press=='j' then if dancing then dancing = false else dancing = true ws = 3 change = .5 attacking = true g1 = Instance.new("BodyGyro", Root) g1.D = 175 g1.P = 20000 g1.MaxTorque = Vector3.new(0,9000,0) herecomesthemoney = Instance.new("Sound",Torso) herecomesthemoney.Pitch = 1 herecomesthemoney.SoundId = "rbxassetid://2426693638" herecomesthemoney.Volume = 8 herecomesthemoney.Looped = true herecomesthemoney:Play() robuxpile = Instance.new("Part",Torso) robuxpile.Size = Vector3.new(1,1,1) robuxpile.CFrame = LeftArm.CFrame robuxpile.CanCollide = false robuxpileweld = Instance.new("Weld",robuxpile) robuxpileweld.Part0 = robuxpile robuxpileweld.Part1 = Torso robuxpileweld.C0 = robuxpile.CFrame:inverse() * LeftArm.CFrame * CFrame.new(1,-.7,1.4) mrobuxpile = Instance.new("SpecialMesh", robuxpile) mrobuxpile.MeshType = "FileMesh" mrobuxpile.Scale = Vector3.new(0.85, .85, .85) mrobuxpile.MeshId,mrobuxpile.TextureId = 'http://www.roblox.com/asset/?id=1285245','http://www.roblox.com/asset/?id=8587344' coroutine.wrap(function() coroutine.wrap(function() while wait(.35) do if not dancing then break end local robux = Instance.new("Part",Torso) robux.CFrame = robuxpile.CFrame * CFrame.Angles(math.rad(0),math.rad(90),math.rad(90)) robux.Anchored = false robux.CanCollide = true robux.Size = Vector3.new(1,1,1) removeuseless:AddItem(robux,4) mrobux = Instance.new("SpecialMesh", robux) mrobux.MeshType = "FileMesh" mrobux.Scale = Vector3.new(1.25, 1.25, 1.25) mrobux.MeshId,mrobux.TextureId = 'http://www.roblox.com/asset/?id=667285348','http://www.roblox.com/asset/?id=665939136' bov = Instance.new("BodyVelocity",robux) bov.maxForce = Vector3.new(99999,99999,99999) robux.CFrame = CFrame.new(robux.Position,mouse.Hit.p) bov.velocity = robux.CFrame.lookVector*45 removeuseless:AddItem(bov,.1) end end)() while dancing do g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.4) ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(0,-.3,0) * CFrame.Angles(math.rad(20),math.rad(0 * math.sin(sine/8)),math.rad(0)),.25) LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,.5 + .5 * math.sin(sine/2),.5) * CFrame.Angles(math.rad(-97),math.rad(40 - 20 * math.sin(sine/2)),math.rad(0)), 0.25) RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1,.5,.5) * CFrame.Angles(math.rad(-87),math.rad(-20),math.rad(0)), 0.25) RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , .5) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(-10)), 0.25) LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, .5) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(10)), 0.25) swait() end ws = 14 removeuseless:AddItem(g1,.001) robuxpile:Remove() attacking = false end)() end end end) mouse.KeyDown:connect(function(Press) Press=Press:lower() if Press=='h' then if dancing then dancing = false else dancing = true ws = 0 change = .5 attacking = true jellyfishjam = Instance.new("Sound",Torso) jellyfishjam.SoundId = "rbxassetid://840189092" jellyfishjam.Volume = 8 jellyfishjam.Looped = true jellyfishjam.TimePosition = 14.8 jellyfishjam:Play() coroutine.wrap(function() while dancing do for i = 1, 15 do if not dancing then break end ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(.5,-.4 + .1 * math.sin(sine/4),0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(20)),.25) RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3) LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3) RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(0.25, 2.05,-0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-35)), 0.25) LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2.05,-0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(14)), 0.25) swait() end for i = 1, 15 do if not dancing then break end ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(0,-.1 * math.sin(sine/4),0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(0)),.25) RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3) LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3) RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.25, .7,1.5) * CFrame.Angles(math.rad(72), math.rad(25), math.rad(-2)), 0.25) LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10)), 0.25) swait() end for i = 1, 15 do if not dancing then break end ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(-.5,-.4 + .1 * math.sin(sine/4),0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(-20)),.25) RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3) LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3) RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10)), 0.25) LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(-0.25, 2.05,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(35)), 0.25) swait() end for i = 1, 15 do if not dancing then break end ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(-.5,-.1,0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(0)),.25) RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3) LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3) RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2.05,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-14)), 0.3) LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.25, .7,1.5) * CFrame.Angles(math.rad(72), math.rad(-25), math.rad(-2)), 0.25) swait() end swait() end ws = 14 attacking = false end)() end end end) mouse.KeyDown:connect(function(Press) Press=Press:lower() if Press=='g' then if dancing then dancing = false else dancing = true ws = 0 change = .5 attacking = true deadmau7 = Instance.new("Sound",Torso) deadmau7.SoundId = "rbxassetid://168166611" deadmau7.Volume = 8 deadmau7.Looped = true deadmau7:Play() coroutine.wrap(function() coroutine.wrap(function() while dancing do ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(2 * math.sin(sine/9),-.4 + .1 * math.sin(sine/3),0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/9)),0),.25) swait() end end)() while dancing do for i = 1, 28 do if not dancing then break end RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.2) LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.2,1.5,0) * CFrame.Angles(math.rad(180 - 7 * math.sin(sine/3)),math.rad(7 * math.sin(sine/3)),math.rad(7*math.sin(sine/3))), 0.2) RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, .7,1) * CFrame.Angles(math.rad(75 - 10 * math.sin(sine/2)), math.rad(0), math.rad(0)), 0.25) LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2.05,-.1) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-2)), 0.3) swait() end for i = 1, 28 do if not dancing then break end RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.2) LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.2,1.5,0) * CFrame.Angles(math.rad(180 - 7 * math.sin(sine/3)),math.rad(7 * math.sin(sine/3)),math.rad(7*math.sin(sine/3))), 0.2) RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2.05,.1) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-8)), 0.25) LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, .7,1.1) * CFrame.Angles(math.rad(75 - 10 * math.sin(sine/2)), math.rad(0), math.rad(-2)), 0.25) swait() end swait() end ws = 14 deadmau7:Remove() attacking = false end)() end end end) mouse.KeyDown:connect(function(Press) Press=Press:lower() if Press=='f' then if dancing then dancing = false else dancing = true ws = 6 change = .5 attacking = true bennyhill = Instance.new("Sound",Torso) bennyhill.SoundId = "rbxassetid://138211362" bennyhill.Volume = 8 bennyhill.Looped = true bennyhill:Play() coroutine.wrap(function() while dancing do ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(0,-.4,0) * CFrame.Angles(math.rad(20 + 5 * math.sin(sine/2)),math.rad(10 * math.sin(sine/4)),0),.25) RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.89 - .4 * -math.sin(sine/2),.49) * CFrame.Angles(math.rad(-70 + 20 * -math.sin(sine/2)),0,math.rad(0)),.25) LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.89 - .4 * math.sin(sine/2),.49) * CFrame.Angles(math.rad(-70 + 20 * math.sin(sine/2)),0,math.rad(0)),.25) RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2, -.2 + .3 * math.sin(sine/2)) * CFrame.Angles(math.rad(-20 - 20 * -math.sin(sine/2)), math.rad(0), math.rad(-8)), 0.25) LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.33, 2.0,-.2 - .3 * math.sin(sine/2)) * CFrame.Angles(math.rad(-20 - 20 * math.sin(sine/2)), math.rad(0), math.rad(8)), 0.25) swait() end ws = 14 bennyhill:Remove() attacking = false end)() end end end) mouse.KeyDown:connect(function(Press) Press=Press:lower() if Press=='p' then if dancing then dancing = false else dancing = true ws = 0 change = .5 attacking = true barrelspin = 0 barrelrollsound = Instance.new("Sound",Torso) barrelrollsound.SoundId = "rbxassetid://505320170" barrelrollsound.Volume = 8 barrelrollsound.Looped = true barrelrollsound:Play() barrol = Instance.new("Part",Torso) barrol.Size = Vector3.new(1,1,1) barrol.CFrame = Torso.CFrame barrol.CanCollide = false barrolweld = Instance.new("Weld",barrol) barrolweld.Part0 = barrol barrolweld.Part1 = Torso barrolweld.C0 = barrol.CFrame:inverse() * Torso.CFrame * CFrame.new(0,0,0) mbarrol = Instance.new("SpecialMesh", barrol) mbarrol.MeshType = "FileMesh" mbarrol.Scale = Vector3.new(1.05, .95, 1.05) mbarrol.MeshId,mbarrol.TextureId = 'http://www.roblox.com/asset/?id=29873142','http://www.roblox.com/asset/?id=31082268' coroutine.wrap(function() while dancing do ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(5 * math.sin(sine/8),-1.8,0) * CFrame.Angles(math.rad(-90),math.rad(180 * math.sin(sine/8)),0),.25) RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,1.5,0) * CFrame.Angles(math.rad(180),0,math.rad(0)),.25) LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,1.5,0) * CFrame.Angles(math.rad(180),0,math.rad(0)),.25) LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(.5,2,0) * CFrame.Angles(0,0,0),.25) RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.5,2,0) * CFrame.Angles(0,0,0),.25) swait() end ws = 14 barrol:Remove() attacking = false end)() end end end) mouse.KeyDown:connect(function(Press) Press=Press:lower() if Press=='q' then if dancing then dancing = false else dancing = true ws = 0 change = .5 spinningmove = 0 dbwouldlovethis = Instance.new("Sound",Torso) dbwouldlovethis.SoundId = "rbxassetid://1532157598" dbwouldlovethis.Volume = 8 dbwouldlovethis.Looped = true dbwouldlovethis:Play() attacking = true coroutine.wrap(function() while dancing do spinningmove = spinningmove + 10 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.9, -.35) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)),.2) LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.9, .35) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2) ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(.2 * math.sin(sine/3), -.52, .2 * math.sin(sine/4)) * CFrame.Angles(math.rad(180),math.rad(spinningmove),math.rad(15 * math.sin(sine/9))),.2) LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,1.45,0) * CFrame.Angles(math.rad(180),math.rad(-1),math.rad(-3 * math.sin(sine/2))),0.3) RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.4,1.45,0) * CFrame.Angles(math.rad(180),math.rad(1),math.rad(3 * math.sin(sine/2))), 0.3) swait() end ws = 14 dbwouldlovethis:Remove() attacking = false end)() end end end) mouse.KeyDown:connect(function(Press) Press=Press:lower() if Press=='u' then if dancing then dancing = false else dancing = true ws = 6 change = .5 attacking = true slavdance = Instance.new("Sound",Torso) slavdance.SoundId = "rbxassetid://2341226836" slavdance.Volume = 6 slavdance.Looped = true slavdance:Play() coroutine.wrap(function() while dancing do for i = 1, 17 do if not dancing then break end RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.5, -.5) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)),.2) LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.2, .55) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2) ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.8 + .1 * math.sin(sine/3), 0) * CFrame.Angles(math.rad(22 - 2 * math.sin(sine/3)),math.rad(0),math.rad(0)),.2) LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-87 + .01 * math.sin(sine/9)),math.rad(80 - 3 * math.sin(sine/9)),math.rad(0)), 0.3) RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.7,-.2,.4) * CFrame.Angles(math.rad(-87 - .01 * math.sin(sine/9)),math.rad(-88 + .7 * math.sin(sine/9)),math.rad(0)), 0.3) swait() end for i = 1, 17 do if not dancing then break end RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.2, .55) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2) LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.5, -.5) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)),.2) ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.8 + .1 * math.sin(sine/3), 0) * CFrame.Angles(math.rad(22 - 2 * math.sin(sine/3)),math.rad(0),math.rad(0)),.2) LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-87 + .01 * math.sin(sine/9)),math.rad(80 - 3 * math.sin(sine/9)),math.rad(0)), 0.3) RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.7,-.2,.4) * CFrame.Angles(math.rad(-87 - .01 * math.sin(sine/9)),math.rad(-88 + .7 * math.sin(sine/9)),math.rad(0)), 0.3) swait() end swait() end ws = 14 slavdance:Remove() attacking = false end)() end end end) mouse.KeyDown:connect(function(Press) Press=Press:lower() if Press=='y' then if dancing then dancing = false else dancing = true ws = 0 change = .5 walkforward = 0 walkrotation = 0 attacking = true truelegend = Instance.new("Sound",Torso) truelegend.SoundId = "rbxassetid://487872908" truelegend.TimePosition = 13.98 truelegend.Volume = 8 truelegend.Looped = true truelegend:Play() coroutine.wrap(function() while dancing do for i = 1, 100 do if not dancing then break end walkforward = walkforward + .1 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2.05 , .1 * math.sin(sine/4)) * CFrame.Angles(math.rad(10 * math.sin(sine/4)), math.rad(0), math.rad(-8)), 0.3) LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2.05, -.15 * math.sin(sine/4)) * CFrame.Angles(math.rad(-10 * math.sin(sine/4)), math.rad(0), math.rad(8)), 0.3) ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.2) RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3) LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3) swait() end for i = 1, 50 do if not dancing then break end walkrotation = walkrotation + 15 ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(walkrotation),math.rad(-0)),.2) swait() end walkrotation = 0 for i = 1, 100 do if not dancing then break end walkforward = walkforward - .1 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2 , .1 * math.sin(sine/4)) * CFrame.Angles(math.rad(10 * math.sin(sine/4)), math.rad(0), math.rad(-8)), 0.3) LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2, -.15 * math.sin(sine/4)) * CFrame.Angles(math.rad(-10 * math.sin(sine/4)), math.rad(0), math.rad(8)), 0.3) ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(-180),math.rad(-0)),.2) RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3,.7,.2) * CFrame.Angles(math.rad(220),math.rad(0),math.rad(-30)), 0.4) LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3) swait() end for i = 1, 50 do if not dancing then break end walkrotation = walkrotation + 15 RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.1) ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(walkrotation),math.rad(-0)),.2) swait() end walkrotation = 0 swait() end ws = 14 truelegend:Remove() attacking = false end)() end end end) mouse.KeyDown:connect(function(Press) Press=Press:lower() if Press=='t' then if dancing then dancing = false else dancing = true ws = 0 change = .5 attacking = true plummusic = Instance.new("Sound",Torso) plummusic.Volume = 8 plummusic.Looped = true plummusic.SoundId = "rbxassetid://2526093213" plummusic:Play() coroutine.wrap(function() while dancing do for i = 1, 20 do if not dancing then break end RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2 , .05) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(-8)), 0.2) LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.33, 2.0, -.05) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(8)), 0.2) ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0),math.rad(0*math.sin(sine/4)),math.rad(15)),.2) RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(.5,1.98,.05) * CFrame.Angles(0,0,math.rad(-140)),.2) LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,1.3,.05) * CFrame.Angles(0,0,math.rad(50)),.2) swait() end for i = 1, 20 do if not dancing then break end RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2, .05) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(-8)), 0.2) LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.33, 2.0, -.05) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(8)), 0.2) ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0),math.rad(0*math.sin(sine/4)),math.rad(-15)),.2) RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1,1.4,.05) * CFrame.Angles(0,0,math.rad(-50)),.2) LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(-.6,2,.05) * CFrame.Angles(0,0,math.rad(140)),.2) swait() end swait() end ws = 14 plummusic:Remove() attacking = false end)() end end end) mouse.KeyDown:connect(function(Press) Press=Press:lower() if Press=='e' then if dancing then dancing = false else dancing = true ws = 0 change = .5 attacking = true mrozo = Instance.new("Sound",Torso) mrozo.Volume = 8 mrozo.SoundId = "rbxassetid://335701357" mrozo.Looped = true mrozo.TimePosition = 10 mrozo:Play() coroutine.wrap(function() while dancing do RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10)), 0.1) LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10)), 0.1) ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0),math.rad(0*math.sin(sine/4)),math.rad(15*math.sin(sine/4))),.2) RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3 + .3 * math.sin(sine/3.5),.5 * -math.sin(sine/3.5),.1) * CFrame.Angles(math.rad(0 * math.sin(sine/2)),0,math.rad(30 * math.sin(sine/3.5))),.2) LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.3 + .3 * math.sin(sine/3.5),.5 * math.sin(sine/3.5),.1) * CFrame.Angles(math.rad(0 * math.sin(sine/2)),0,math.rad(30 * math.sin(sine/3.5))),.2) swait() end mrozo:Remove() ws = 14 attacking = false end)() end end end) mouse.KeyDown:connect(function(Press) Press=Press:lower() if Press=='r' then if dancing then dancing = false else ws = 6 recordbaby = 0 dancing = true change = .5 attacking = true spinme = Instance.new("Sound",Torso) spinme.Volume = 8 spinme.SoundId = "rbxassetid://145799973" spinme.Looped = true spinme:Play() coroutine.wrap(function() while dancing do recordbaby = recordbaby + 10 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.27, 2 , .1 * math.sin(sine/4)) * CFrame.Angles(math.rad(10 * math.sin(sine/4)), math.rad(0), math.rad(-8)), 0.3) LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.27, 2.0, -.1 * math.sin(sine/4)) * CFrame.Angles(math.rad(-10 * math.sin(sine/4)), math.rad(0), math.rad(8)), 0.3) ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(.5 * math.sin(sine/5), -.2, .5 * math.sin(sine/4)) * CFrame.Angles(math.rad(0),math.rad(recordbaby),math.rad(0)),.3) RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.5,1.98,0) * CFrame.Angles(0,0,math.rad(-90)),.3) LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.5,1.98,0) * CFrame.Angles(0,0,math.rad(90)),.3) swait() end spinme:Remove() ws = 14 attacking = false end)() end end end) function ray(pos, dir, rang, ignoredesc) return workspace:FindPartOnRay(Ray.new(pos, dir.unit * rang), ignoredesc) end function ray2(startpos, endpos, distance, ignore) local dir = CFrame.new(startpos,endpos).lookVector return ray(startpos, dir, distance, ignore) end checks1 = coroutine.wrap(function() -------Checks while true do hf = ray(Root.Position,(CFrame.new(Root.Position,Root.Position+Vector3.new(0,-1,0))).lookVector,3*3,Character) if Root.Velocity.y > 1 then position = "Jump" elseif Root.Velocity.y < -1 then position = "Falling" elseif Root.Velocity.Magnitude < 2 then position = "Idle" elseif Root.Velocity.Magnitude > 2 then position = "Walking" elseif Root.Velocity.Magnitude > 20 then position = "Running" else end wait() end end) checks1() function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) end function ray2(StartPos, EndPos, Distance, Ignore) local DIRECTION = CFrame.new(StartPos,EndPos).lookVector return ray(StartPos, DIRECTION, Distance, Ignore) end OrgnC0 = Neck.C0 local movelimbs = coroutine.wrap(function() while RunSrv.RenderStepped:wait() do TrsoLV = Torso.CFrame.lookVector Dist = nil Diff = nil if not MseGuide then print("Failed to recognize") else local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true) Dist = (Head.CFrame.p-Point).magnitude Diff = Head.CFrame.Y-Point.Y local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true) Dist2 = (LeftArm.CFrame.p-Point).magnitude Diff2 = LeftArm.CFrame.Y-Point.Y HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1) end end end) movelimbs() local anims = coroutine.wrap(function() while true do settime = 0.05 sine = sine + change if position == "Jump" and attacking == false then change = 1 spin = false for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.2) RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2) LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.2) elseif position == "Falling" and attacking == false then change = 1 spin = false for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.15) LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2) LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(-4), math.rad(0)), 0.2) LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.94 + .02 * math.sin(sine/12),-0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(45)), 0.2) RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.94 + .02 * math.sin(sine/12),-0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(-45)), 0.2) elseif position == "Walking" and attacking == false and running == false then change = 1.2 walking = true spin = false for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5 + Root.RotVelocity.Y / 85,.35,-.5*math.sin(sine/11)) * CFrame.Angles(math.rad(35*math.sin(sine/11)),math.rad(0*math.sin(sine/11)),math.rad(-10 + Root.RotVelocity.Y / 10, math.sin(-20 * math.sin(sine/4)))),.3) LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5 + Root.RotVelocity.Y / 85,.45,.5*math.sin(sine/11)) * CFrame.Angles(math.rad(-55*math.sin(sine/11)),math.rad(-5*math.sin(sine/8)),math.rad(10 + Root.RotVelocity.Y / 10, math.sin(20 * math.sin(sine/4)))),.3) ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.15 * 0.6*-math.sin(sine/5.5), 0) * CFrame.Angles(math.rad(10), math.rad(12 * -math.sin(sine/11)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/10))), 0.3) RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/11)/2.8, -.2 + 0.2 - math.sin(sine/11)/3.4) * CFrame.Angles(math.rad(25 - 25) + -math.sin(sine/11)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0), math.cos(-15 * 25 * math.cos(sine/11))), 0.3) LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/11)/2.8, -.2 + 0.2 + math.sin(sine/11)/3.4) * CFrame.Angles(math.rad(25 - 25) - -math.sin(sine/11)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) , math.cos(-15 * 25 * math.cos(sine/11))), 0.3) elseif position == "Idle" and attacking == false and running == false then change = .5 spin = true for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)),math.rad(0),math.rad(0)),.1) LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.27 + .02 * math.sin(sine/12),.20 * -math.sin(sine/12)) * CFrame.Angles(math.rad(20 * math.sin(sine/12)),math.rad(0),math.rad(10)), 0.1) RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.27 + .02 * math.sin(sine/12),.20 * -math.sin(sine/12)) * CFrame.Angles(math.rad(20 * math.sin(sine/12)),math.rad(0),math.rad(-10)), 0.1) RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(-10)), 0.1) LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(10)), 0.1) elseif position == "Running" and attacking == false then change = 1 for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3) LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(-1.24+.6*math.sin(sine/4)/1.4, 0.54, 0-0.8*math.sin(sine/4))*CFrame.Angles(math.rad(6+140*math.sin(sine/4)/1.2), math.rad(0), math.rad(20+70*math.sin(sine/4))), 0.3) LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.3) ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(-20 - 0 * math.sin(sine/4)), math.rad(0 + 6 * math.sin(sine/4)), math.rad(0) + Root.RotVelocity.Y / 30, math.sin(10 * math.sin(sine/4))), 0.3) RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*-math.sin(sine/4)),.3) RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.6+0.1*math.sin(sine/4),.7*-math.sin(sine/4)) * CFrame.Angles(math.rad(15+ -50 * math.sin(sine/4)),0,0),.3) LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*math.sin(sine/4)),.3) LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.6-0.1*math.sin(sine/4),.7*math.sin(sine/4)) * CFrame.Angles(math.rad(15 + 50 * math.sin(sine/4)),0,0),.3) end swait() end end) anims()