Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.LocalPlayer
- local chr = plr.Character
- local maus = plr:GetMouse()
- local PGui=plr.PlayerGui
- local lleg = chr["Left Leg"]
- local rleg = chr["Right Leg"]
- local larm = chr["Left Arm"]
- local rarm = chr["Right Arm"]
- local hed = chr.Head
- local rutprt = chr.HumanoidRootPart
- local torso = chr.Torso
- local otheranims=false
- local swimming=false
- chr.Animate.Disabled=true
- local fldb={['w']=false,['a']=false,['s']=false,['d']=false}
- local RunSpeed=30
- local WlkSpeed=16
- local SwimSpeed=14
- local SwimDashSpeed=28
- local anim = "Idling"
- local lastanim = "Idling"
- local val = 0
- local syne = 0
- local num = 0
- local runtime = 0
- local pseudohead=hed:Clone()
- for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end
- pseudohead.Name='PseudoHead'
- pseudohead.Parent=chr.Head
- local pseudoweld=Instance.new('Weld',torso)
- pseudoweld.Part0=hed
- pseudoweld.Name='PseudoHedWld'
- pseudoweld.Part1=pseudohead
- hed.Transparency=1
- coroutine.wrap(function()
- for i,x in pairs(hed:GetChildren()) do if x:IsA('Sound') then x:Destroy() end end end)()
- function Lerp(a, b, i)
- local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
- local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
- local calx = com1[1] + (com2[1] - com1[1]) * i
- local caly = com1[2] + (com2[2] - com1[2]) * i
- local calz = com1[3] + (com2[3] - com1[3]) * i
- local cala = com1[4] + (com2[4] - com1[4]) * i
- local calb = com1[5] + (com2[5] - com1[5]) * i
- local calc = com1[6] + (com2[6] - com1[6]) * i
- return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
- end
- function TwnSingleNumber(s,f,m)
- local wot=s+(f-s)*m
- return wot
- end
- function TwnVector3(q,w,e)
- local begin={q.x,q.y,q.z}
- local ending={w.x,w.y,w.z}
- local bgx=begin[1]+(ending[1]-begin[1])*e
- local bgy=begin[2]+(ending[2]-begin[2])*e
- local bgz=begin[3]+(ending[3]-begin[3])*e
- return Vector3.new(bgx,bgy,bgz)
- end
- newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
- wld = Instance.new("Weld", wp1)
- wld.Part0 = wp0
- wld.Part1 = wp1
- wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
- end
- local angles = CFrame.Angles
- function clerp(a, b, t)
- return a:lerp(b, t)
- end
- Player=game:GetService('Players').LocalPlayer
- Character=Player.Character
- Mouse=Player:GetMouse()
- m=Instance.new('Model',Character)
- local function weldBetween(a, b)
- local weldd = Instance.new("ManualWeld")
- weldd.Part0 = a
- weldd.Part1 = b
- weldd.C0 = CFrame.new()
- weldd.C1 = b.CFrame:inverse() * a.CFrame
- weldd.Parent = a
- return weldd
- end
- it=Instance.new
- function nooutline(part)
- part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
- end
- function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
- local fp=it("Part")
- fp.formFactor=formfactor
- fp.Parent=parent
- fp.Reflectance=reflectance
- fp.Transparency=transparency
- fp.CanCollide=false
- fp.Locked=true
- fp.BrickColor=BrickColor.new(tostring(brickcolor))
- fp.Name=name
- fp.Size=size
- fp.Position=Character.Torso.Position
- nooutline(fp)
- fp.Material=material
- fp:BreakJoints()
- return fp
- end
- function mesh(Mesh,part,meshtype,meshid,offset,scale)
- local mesh=it(Mesh)
- mesh.Parent=part
- if Mesh=="SpecialMesh" then
- mesh.MeshType=meshtype
- mesh.MeshId=meshid
- end
- mesh.Offset=offset
- mesh.Scale=scale
- return mesh
- end
- function weld(parent,part0,part1,c0,c1)
- local weld=it("Weld")
- weld.Parent=parent
- weld.Part0=part0
- weld.Part1=part1
- weld.C0=c0
- weld.C1=c1
- return weld
- end
- LY_handle=part(Enum.FormFactor.Brick,m,Enum.Material.SmoothPlastic,1,1,"Dark stone grey","Handle",Vector3.new(1.45335066, 0.264246017, 0.211396158))
- LY_handleweld=weld(m,Character["Right Arm"],LY_handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00367164612, 0.987921953, 0.0167617798, 0.00026500001, -0.000169999985, 1, 4.4999997e-005, 0.999999881, 0.000169988081, -1, 4.49549443e-005, 0.000265007664))
- Color=part(Enum.FormFactor.Brick,m,Enum.Material.Neon,0,0.19999998807907,"Bright red","Color",Vector3.new(0.200000003, 0.264246017, 0.218002304))
- Colorweld=weld(m,LY_handle,Color,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.673862457, -0.000193119049, 0.0277631283, 0.999998569, -3.10177857e-005, -1.15665025e-005, -1.24345243e-005, -2.42797159e-006, -1.00000012, 3.1031057e-005, 0.999998271, -1.57067143e-006))
- mesh("SpecialMesh",Color,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(0.198184475, 1, 1))
- Color=part(Enum.FormFactor.Brick,m,Enum.Material.Neon,0,0.19999998807907,"Bright red","Color",Vector3.new(0.200000003, 0.270852149, 0.270851493))
- Colorweld=weld(m,LY_handle,Color,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.971046448, -0.633370876, -8.34465027e-006, 0.999998569, -1.67783583e-008, 4.34461981e-007, 3.24653229e-008, 0.999998212, 4.28357794e-007, 4.34491085e-007, 4.28346709e-007, 1.00000012))
- mesh("SpecialMesh",Color,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.264245272, 0.924859583, 0.264245361))
- Color=part(Enum.FormFactor.Brick,m,Enum.Material.Neon,0,0.19999998807907,"Bright red","Color",Vector3.new(0.200000003, 0.270852149, 0.270851493))
- Colorweld=weld(m,LY_handle,Color,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.705991745, -0.13863945, -0.00022649765, 0.707114518, 0.707097352, 4.14534588e-006, -0.70709759, 0.707114279, -1.62664946e-005, -1.43024954e-005, 9.73419992e-006, 1.00000012))
- mesh("SpecialMesh",Color,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.264245272, 0.660614312, 0.264245361))
- Color=part(Enum.FormFactor.Brick,m,Enum.Material.Neon,0,0.19999998807907,"Bright red","Color",Vector3.new(0.200000003, 0.270852149, 0.270851493))
- Colorweld=weld(m,LY_handle,Color,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.667310715, 0.177476883, 0.000133514404, 0.70709914, -0.707113802, -1.69977284e-005, 0.707114041, 0.707098901, 3.84061423e-006, 9.00149462e-006, -1.40022084e-005, 1.00000012))
- mesh("SpecialMesh",Color,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.264245272, 0.660614312, 0.264245361))
- Color=part(Enum.FormFactor.Brick,m,Enum.Material.Neon,0,0.19999998807907,"Bright red","Color",Vector3.new(0.200000003, 0.270852149, 0.270851493))
- Colorweld=weld(m,LY_handle,Color,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.971019745, 0.687847018, 0, 1.00000012, 1.00408215e-009, 9.60426405e-010, 9.89530236e-010, 0.999999762, -9.68395142e-010, 9.60426405e-010, -9.72125491e-010, 1.00000012))
- mesh("SpecialMesh",Color,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.264245272, 0.924859583, 0.264245361))
- Color=part(Enum.FormFactor.Brick,m,Enum.Material.Neon,0,0.19999998807907,"Bright red","Color",Vector3.new(0.200000003, 0.264246017, 0.218002304))
- Colorweld=weld(m,LY_handle,Color,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.706794739, 0.0272381306, -7.15255737e-006, 0.999998569, -1.58179319e-008, 4.35422407e-007, 3.34257493e-008, 0.999998212, 4.27397623e-007, 4.35451511e-007, 4.27386425e-007, 1.00000012))
- mesh("SpecialMesh",Color,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(0.264245272, 1, 1))
- Blade=part(Enum.FormFactor.Brick,m,Enum.Material.Neon,0,0.19999998807907,"Bright red","Blade",Vector3.new(7.00250864, 0.528491318, 0.200000003))
- Bladeweld=weld(m,LY_handle,Blade,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.74311829, 0.0272333622, 0, 1.00000012, 4.36557457e-011, 0, 2.91038305e-011, 0.999999762, -8.22453217e-012, 0, -1.1862511e-011, 1.00000012))
- mesh("BlockMesh",Blade,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.330306888))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(1.45335066, 0.264246017, 0.211396158))
- Partweld=weld(m,LY_handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-5.91278076e-005, 0.0272394419, 2.86102295e-006, 1.00000012, 4.36557457e-011, 0, 2.91038305e-011, 0.999999762, -8.22453217e-012, 0, -1.1862511e-011, 1.00000012))
- mesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Color=part(Enum.FormFactor.Brick,m,Enum.Material.Neon,0,0.19999998807907,"Bright red","Color",Vector3.new(0.200000003, 1.39389634, 0.200000003))
- Colorweld=weld(m,LY_handle,Color,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00207185745, -2.27507019, 0.367805481, 0.000122999991, 3.09971547e-005, -1, -1.00000012, 3.10047035e-005, -0.00012300002, 3.09981406e-005, 0.999999821, 3.09999959e-005))
- mesh("SpecialMesh",Color,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.330306768, 1, 0.891827047))
- Color=part(Enum.FormFactor.Brick,m,Enum.Material.Neon,0,0.19999998807907,"Bright red","Color",Vector3.new(0.200000003, 1.40050244, 0.200000003))
- Colorweld=weld(m,LY_handle,Color,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000971078873, 7.54442596, 0.344686627, 6.1000057e-005, -3.1002859e-005, 1.00000012, 1.00000012, -3.09989991e-005, -6.09999697e-005, 3.09981406e-005, 0.999999821, 3.09999959e-005))
- mesh("SpecialMesh",Color,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.330306768, 1, 0.66061312))
- Color=part(Enum.FormFactor.Brick,m,Enum.Material.Neon,0,0.19999998807907,"Bright red","Color",Vector3.new(0.200000003, 1.40050244, 0.200000003))
- Colorweld=weld(m,LY_handle,Color,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00106692314, 7.54369164, 0.301707268, 6.19999773e-005, 3.09990464e-005, -1, 1.00000012, -9.2002796e-005, 6.19981438e-005, -9.19981394e-005, -0.999999821, -3.10018913e-005))
- mesh("SpecialMesh",Color,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.330306768, 1, 0.66061312))
- Color=part(Enum.FormFactor.Brick,m,Enum.Material.Neon,0,0.19999998807907,"Bright red","Color",Vector3.new(0.200000003, 0.200000003, 0.303882271))
- Colorweld=weld(m,LY_handle,Color,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000967741013, 1.14307976, -0.111138582, 6.1000057e-005, -3.10047508e-005, 1.00000012, 1.00000012, -3.09989991e-005, -6.09999697e-005, 3.09981406e-005, 0.999999821, 3.09981042e-005))
- mesh("SpecialMesh",Color,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.330306768, 0.990922511, 1))
- Color=part(Enum.FormFactor.Brick,m,Enum.Material.Neon,0,0.19999998807907,"Bright red","Color",Vector3.new(0.200000003, 0.200000003, 0.303882271))
- Colorweld=weld(m,LY_handle,Color,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00106334686, 1.14234924, -0.167325854, 6.19999773e-005, 3.10009382e-005, -1, 1.00000012, -9.2002796e-005, 6.19981438e-005, -9.19981394e-005, -0.999999821, -3.09999996e-005))
- mesh("SpecialMesh",Color,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.330306768, 0.990922511, 1))
- Color=part(Enum.FormFactor.Brick,m,Enum.Material.Neon,0,0.19999998807907,"Bright red","Color",Vector3.new(0.200000003, 0.389762193, 0.726674616))
- Colorweld=weld(m,LY_handle,Color,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.50882721e-005, -0.215640545, 8.60770226, 1.99873466e-006, -7.40025207e-005, 1.00000012, -3.09968163e-005, -0.999999821, -7.39984971e-005, 1.00000012, -3.10008181e-005, -1.99998613e-006))
- mesh("SpecialMesh",Color,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.330306768, 1, 1))
- Color=part(Enum.FormFactor.Brick,m,Enum.Material.Neon,0,0.19999998807907,"Bright red","Color",Vector3.new(0.200000003, 1.39389634, 0.200000003))
- Colorweld=weld(m,LY_handle,Color,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000124931335, -2.27571106, 0.326155424, -1.86264515e-009, -9.20009552e-005, 1.00000012, -1.00000012, 3.09989991e-005, -2.91038305e-011, -3.09981406e-005, -0.999999821, -9.19999948e-005))
- mesh("SpecialMesh",Color,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.330306768, 1, 0.891827047))
- Color=part(Enum.FormFactor.Brick,m,Enum.Material.Neon,0,0.19999998807907,"Bright red","Color",Vector3.new(0.200000003, 0.389762193, 0.726674616))
- Colorweld=weld(m,LY_handle,Color,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000325202942, -0.173182964, 8.60774612, -2.20000511e-005, 3.10054347e-005, -1.00000012, 7.39981479e-005, 0.999999821, 3.09975512e-005, 1.00000012, -7.40001851e-005, -2.20013317e-005))
- mesh("SpecialMesh",Color,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.330306768, 1, 1))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,LY_handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.677164078, -0.000199794769, 0.0277613401, 1.00000012, -3.09994066e-005, -1.20013719e-005, -1.20013137e-005, 2.95292011e-006, -1.00000012, 3.09995376e-005, 0.999999821, 2.9525288e-006))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.825765371, 0.660614371, 0.858796299))
- mesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.270852149, 0.270851493))
- Partweld=weld(m,LY_handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.97104454, 0.0272381306, -1.1920929e-006, 1.00000012, 4.36557457e-011, 0, 2.91038305e-011, 0.999999762, -8.22453217e-012, 0, -1.1862511e-011, 1.00000012))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.528491259, 0.528491318, 1.32122672))
- Color_R=part(Enum.FormFactor.Brick,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Color_R",Vector3.new(0.200000003, 0.270852149, 0.270851493))
- Color_Rweld=weld(m,LY_handle,Color_R,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.97104454, 0.0272381306, -1.1920929e-006, 1.00000012, 4.36557457e-011, 0, 2.91038305e-011, 0.999999762, -8.22453217e-012, 0, -1.1862511e-011, 1.00000012))
- mesh("SpecialMesh",Color_R,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.515278935, 0.515278995, 1.18910372))
- LY_hitbox=part(Enum.FormFactor.Brick,m,Enum.Material.Neon,1,1,"Bright red","LY_hitbox",Vector3.new(7.75250864, 0.758491337, 0.200000003))
- LY_hitboxweld=weld(m,LY_handle,LY_hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(5.11811638, 0.0322332382, -2.38418579e-007, 1.00000012, 4.36557457e-011, 0, 2.91038305e-011, 0.999999762, -8.22453217e-012, 0, -1.1862511e-011, 1.00000012))
- --[[local mult = 2
- ----------------------------------------------------
- larm.Size = larm.Size * mult
- rarm.Size = rarm.Size * mult
- lleg.Size = lleg.Size * mult
- rleg.Size = rleg.Size * mult
- torso.Size = torso.Size * mult
- hed.Size = hed.Size * mult
- rutprt.Size = rutprt.Size * mult
- ----------------------------------------------------]]
- newWeld(law, torso, larm, -1.5, 0.5, 0)
- newWeld(raw, torso, rarm, 1.5, 0.5, 0)
- newWeld(llw, torso, lleg, -.5, -2, 0)
- newWeld(rlw, torso, rleg, .5, -2, 0)
- newWeld(hw, torso, hed, 0, 1.5, 0)
- local rutwald=Instance.new('Weld',rutprt)
- rutwald.Part0=rutprt
- rutwald.Part1=torso
- rutprt.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0)
- larm.Weld.C1 = CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),0,0)
- rarm.Weld.C1 = CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),0,0)
- rleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
- lleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
- maus.KeyDown:connect(function(kei)
- if string.byte(kei)==48 and not otheranims then
- runnin=true
- end
- if kei=='w' then fldb.w=true end
- if kei=='a' then fldb.a=true end
- if kei=='s' then fldb.s=true end
- if kei=='d' then fldb.d=true end
- end)
- maus.KeyUp:connect(function(kei)
- if string.byte(kei)==48 and not otheranims then
- runnin=false
- end
- if kei=='w' then fldb.w=false end
- if kei=='a' then fldb.a=false end
- if kei=='s' then fldb.s=false end
- if kei=='d' then fldb.d=false end
- end)
- game:service'RunService'.RenderStepped:connect(function()
- if anim~=lastanim then
- runtime=0
- end
- lastanim=anim
- chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0)
- syne=syne+.95
- if not otheranims and not swimming then
- if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
- anim="Idling"
- elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude < RunSpeed-10 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
- anim="Walking"
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > RunSpeed-10 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
- anim="Sprinting"
- elseif torso.Velocity.y>5 and chr.Humanoid.Jump then
- anim='Jumping'
- elseif (torso.Velocity.y < -5) and chr.Humanoid.Jump then
- anim='Falling'
- end
- end
- if anim ~= "Idling" then
- LY_handleweld.C0=clerp(LY_handleweld.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),.1)
- end
- if anim=="Idling" then
- idlesineinc=35
- LY_handleweld.C0=clerp(LY_handleweld.C0,CFrame.new(0, -.5, .46)*CFrame.Angles(math.rad(75),math.rad(0),math.rad(0)),.1)
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(math.rad(76),math.rad(12),math.rad(20)),.1)
- larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(0,0,math.rad(-3)),.1)
- lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(-2.5)),.1)
- rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(2.5)),.1)
- hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/idlesineinc)/50,0)*CFrame.Angles(math.cos(syne/idlesineinc)/40,0,0),.1)
- rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/idlesineinc)/20,0)*CFrame.Angles(math.cos(syne/idlesineinc)/35+math.rad(0),math.rad(0),math.rad(0)),.1)
- end
- if anim=="Walking" then
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525+math.cos(syne/15)/25,0)*CFrame.Angles(math.cos(syne/6)/1.25,math.rad(5),-(math.cos(syne/6.75)/15)+math.rad(3)),.1)
- larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525+math.cos(syne/15)/25,0)*CFrame.Angles(-(math.cos(syne/6)/1.25),0,-(math.cos(syne/6.75)/15)-math.rad(3)),.1)
- lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/6)/10,-(math.cos(syne/6)/1.125))*CFrame.Angles(math.cos(syne/6)/1.125,0,math.rad(-2.5)),.1)
- rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/6)/10,math.cos(syne/6)/1.125)*CFrame.Angles(-(math.cos(syne/6)/1.125),0,math.rad(2.5)),.1)
- hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/3)/20,0,0),.1)
- rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/3.375)/20,math.cos(syne/3)/5)*CFrame.Angles(math.cos(syne/3)/20+math.rad(-3.5),math.cos(syne/6)/10,-math.cos(syne/6)/30+math.sin(rutprt.RotVelocity.y/2)/7.5),.1)
- end
- if anim=="Sprinting" then
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-55),0,math.rad(12.5)),.1)
- larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-55),0,math.rad(-12.5)),.1)
- lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.6-math.cos(syne/4)/4,-(math.cos(syne/4)*2)-math.rad(10))*CFrame.Angles(math.cos(syne/4)*2+math.rad(10),0,math.rad(-2.5)),.1)
- rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.6-math.cos(syne/4)/4,math.cos(syne/4)*2-math.rad(10))*CFrame.Angles(-(math.cos(syne/4)*2)+math.rad(10),0,math.rad(2.5)),.1)
- hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.55+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(20),0,0),.1)
- rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.3+math.cos(syne/2.5)/15,math.cos(syne/2.5))*CFrame.Angles(math.cos(syne/2.5)/10+math.rad(-25),math.cos(syne/2.5)/10,math.cos(syne/4)/20+math.sin(rutprt.RotVelocity.y/2)/4),.1)
- end
- if anim=="Jumping" then
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(50)),.1)
- larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.1)
- lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.4,0)*CFrame.Angles(math.rad(-17.5),0,math.rad(-2.5)),.1)
- rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.1,-.1)*CFrame.Angles(math.rad(-17.5),0,math.rad(2.5)),.1)
- hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(math.cos(syne/20)/40,0,0),.1)
- rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/20)/20,0)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),.1)
- end
- if anim=="Falling" then
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(70)),.035)
- larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-70)),.035)
- lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.2,0)*CFrame.Angles(math.rad(-14),0,math.rad(-2.5)),.035)
- rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(2.5)),.035)
- hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5,-.3)*CFrame.Angles(math.rad(-40),0,0),.035)
- rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/20)/20,0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(0)),.035)
- end
- if runnin and not otheranims and not swimming then
- chr.Humanoid.WalkSpeed=RunSpeed
- elseif not runnin and not otheranims and not swimming then
- chr.Humanoid.WalkSpeed=WlkSpeed
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement