Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
- --Spinel by youngmacka123 and mangleplays2--
- plr = owner
- mouse = plr:GetMouse()
- char = plr.Character
- tors = char.Torso
- hed = char.Head
- ra = char["Right Arm"]
- la = char["Left Arm"]
- rl = char["Right Leg"]
- ll = char["Left Leg"]
- --Outfit--
- print("outfit by mangleplays2. hair welded by youngmacka123.")
- size1 = 0.0555
- size2 = 0.25
- color = "Carnation pink"
- function hair()
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Hat0 = Instance.new("Hat")
- MeshPart1 = Instance.new("Part")
- MeshPart2 = Instance.new("Part")
- MeshPart3 = Instance.new("Part")
- Weld4 = Instance.new("Weld")
- Weld5 = Instance.new("Weld")
- Hat0.Parent = mas
- Hat0.AttachmentForward = Vector3.new(0.0221017301, 0.044932276, -0.998745561)
- Hat0.AttachmentPoint = CFrame.new(-0.0280543175, 0.443446904, -0.111091971, 0.999755204, -0.000994084869, -0.0221017301, 0, 0.998990059, -0.044932276, 0.0221240669, 0.0449212752, 0.998745561)
- Hat0.AttachmentPos = Vector3.new(-0.0280543175, 0.443446904, -0.111091971)
- Hat0.AttachmentRight = Vector3.new(0.999755204, 0, 0.0221240669)
- Hat0.AttachmentUp = Vector3.new(-0.000994084869, 0.998990059, 0.0449212752)
- MeshPart1.Name = "Handle"
- MeshPart1.Parent = Hat0
- MeshPart1.CFrame = CFrame.new(-34.7981873, 4.50509262, 8.90130901, 1, -5.97529906e-14, 7.14083979e-27, 5.97529906e-14, 1, -5.97529906e-14, -3.57041989e-27, 5.97529906e-14, 1)
- MeshPart1.Position = Vector3.new(-34.7981873, 4.50509262, 8.90130901)
- MeshPart1.Color = Color3.new(0.592157, 0.164706, 0.356863)
- MeshPart1.Transparency = 0.0010000000474975
- MeshPart1.Size = Vector3.new(1.74621749, 1.72233796, 1.72011757)
- MeshPart1.CanCollide = false
- local MeshTail = Instance.new("SpecialMesh",MeshPart1)
- MeshTail.MeshId = "rbxassetid://714334504"
- MeshTail.Scale = Vector3.new(size1 + 0.01, size1, size1)
- MeshPart2.Name = "s"
- MeshPart2.Parent = MeshPart1
- MeshPart2.CFrame = CFrame.new(-35.3162918, 5.62375164, 9.1913805, -0.952941179, 0.00646881526, 0.303086579, -0.2734254, -0.45012188, -0.850075841, 0.130926877, -0.892943859, 0.430708289)
- MeshPart2.Orientation = Vector3.new(58.2200012, 35.1300011, -148.720001)
- MeshPart2.Position = Vector3.new(-35.3162918, 5.62375164, 9.1913805)
- MeshPart2.Rotation = Vector3.new(63.1300011, 17.6399994, -179.610001)
- MeshPart2.Color = Color3.new(0.592157, 0.164706, 0.356863)
- MeshPart2.Size = Vector3.new(0.706119716, 1.5651921, 1.02956116)
- MeshPart2.Material = Enum.Material.SmoothPlastic
- local MeshTail = Instance.new("SpecialMesh",MeshPart2)
- MeshTail.MeshId = "rbxassetid://871952460"
- MeshTail.Scale = Vector3.new(size2, size2, size2)
- MeshPart3.Name = "s"
- MeshPart3.Parent = MeshPart1
- MeshPart3.CFrame = CFrame.new(-34.2833862, 5.61168861, 9.19104004, -0.965110838, -0.00764033245, -0.261730403, 0.237094387, -0.449693203, -0.861140132, -0.111118965, -0.893150508, 0.435815215)
- MeshPart3.Orientation = Vector3.new(59.4399986, -30.9899998, 152.199997)
- MeshPart3.Position = Vector3.new(-34.2833862, 5.61168861, 9.19104004)
- MeshPart3.Rotation = Vector3.new(63.1599998, -15.1700001, 179.550003)
- MeshPart3.Color = Color3.new(0.592157, 0.164706, 0.356863)
- MeshPart3.Size = Vector3.new(0.716119766, 1.58735824, 1.04414177)
- MeshPart3.Material = Enum.Material.SmoothPlastic
- local MeshTail = Instance.new("SpecialMesh",MeshPart3)
- MeshTail.MeshId = "rbxassetid://871952460"
- MeshTail.Scale = Vector3.new(size2, size2, size2)
- Weld4.Name = "BTWeld"
- Weld4.Parent = MeshPart3
- Weld4.C1 = CFrame.new(0.514801025, 1.10659599, 0.289731026, -0.965110838, -0.00764033245, -0.261730403, 0.237094387, -0.449693203, -0.861140132, -0.111118965, -0.893150508, 0.435815215)
- Weld4.Part0 = MeshPart3
- Weld4.Part1 = MeshPart1
- Weld4.part1 = MeshPart1
- Weld5.Name = "BTWeld"
- Weld5.Parent = MeshPart3
- Weld5.C1 = CFrame.new(-0.981044769, 0.0124158859, 0.323167801, 0.840317667, 0.0133009311, 0.541931152, -0.013741482, 0.99990046, -0.00323361158, -0.541920185, -0.00472967699, 0.84041667)
- Weld5.Part0 = MeshPart3
- Weld5.Part1 = MeshPart2
- Weld5.part1 = MeshPart2
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = char
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- end
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then
- v:Destroy()
- end
- end
- local shirt = Instance.new("Shirt",char)
- shirt.ShirtTemplate = "rbxassetid://3787215222"
- local pants = Instance.new("Pants",char)
- pants.PantsTemplate = "rbxassetid://3787218707"
- Character = char
- 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
- bodycolor = char["Body Colors"]
- bodycolor.HeadColor = BrickColor.new(color)
- bodycolor.TorsoColor = BrickColor.new(color)
- bodycolor.RightArmColor=BrickColor.new(color)
- bodycolor.LeftArmColor=BrickColor.new(color)
- bodycolor.RightLegColor=BrickColor.new(color)
- bodycolor.LeftLegColor=BrickColor.new(color)
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Hat" or v.ClassName == "Accessory" then
- v:Destroy()
- end
- end
- hair()
- ----------
- --Song and sounds--
- BTAUNT = Instance.new("Sound", char.Torso)
- BTAUNT.SoundId = "http://www.roblox.com/asset/?id=3816560007"
- BTAUNT.Volume = 10
- BTAUNT.Pitch = 1.1
- BTAUNT.Looped = true
- BTAUNT.TimePosition = 0.2
- BTAUNT:Play()
- SLASH = Instance.new("Sound", char.Torso)
- SLASH.SoundId = "http://www.roblox.com/asset/?id=2490619022"
- SLASH.Volume = 10
- SLASH.Pitch = 0.9
- SLASH.Looped = false
- SLASH.TimePosition = 0.2
- SLASH:Play()
- function weld(a, b, acf)
- local w = Instance.new("Weld", a)
- w.Part0 = a
- w.Part1 = b
- w.C0 = acf
- end
- hed.face.Texture = "rbxassetid://4105579577"
- -------------------
- --Scythe--
- ezweld = function(p, a, b, cf)
- local weld = Instance.new("Weld",p)
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = cf
- return weld
- end
- Swait,swait = function(number)
- if number == 0 or number == nil then
- game:GetService("RunService").Heartbeat:Wait()
- else
- for i = 1,number do
- game:GetService("RunService").Heartbeat:Wait()
- end
- end
- end
- NewSound = function(p, id, pit, vol, loop)
- local Sound = Instance.new("Sound",p)
- Sound.Pitch = pit
- Sound.Volume = vol
- Sound.SoundId = "rbxassetid://" ..id
- Sound.Looped = loop
- Sound:Play()
- return Sound
- end
- function AddMesh(Part, MeshId, TextureId, Scale, Offset)
- local Mesh = Instance.new("SpecialMesh",Part);
- Mesh.MeshId = MeshId;
- Mesh.TextureId = TextureId;
- Mesh.Scale = Scale;
- Mesh.Offset = Offset;
- return Mesh;
- end
- weapons = Instance.new("Model",char)
- dasize = 0.5
- local dascythe = Instance.new("Part",weapons) --not blobby
- dascythe.CanCollide = false
- dascythe.Size = Vector3.new(0.1, 0.1, 0.1)
- local damesh = AddMesh(dascythe, "rbxassetid://95891318", "rbxassetid://4105628732", Vector3.new(dasize, dasize, dasize), Vector3.new(0, 0, 0))
- local daweld = ezweld(weapons,dascythe,ra,CFrame.new(1.5, -2.5, 0) * CFrame.Angles(77, 0, -77))
- daweld.Name = "ScytheWeld"
- ----------
- --Heartbeat--
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "ArtificialHB"
- script:WaitForChild("ArtificialHB")
- frame = 1 / 60
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.ArtificialHB:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.ArtificialHB:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.ArtificialHB:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- -------------
- --Some functions--
- IT = Instance.new
- CF = CFrame.new
- VT = Vector3.new
- RAD = math.rad
- C3 = Color3.new
- UD2 = UDim2.new
- BRICKC = BrickColor.new
- ANGLES = CFrame.Angles
- EULER = CFrame.fromEulerAnglesXYZ
- COS = math.cos
- ACOS = math.acos
- SIN = math.sin
- ASIN = math.asin
- ABS = math.abs
- MRANDOM = math.random
- FLOOR = math.floor
- function Swait(NUMBER)
- if NUMBER == 0 or NUMBER == nil then
- ArtificialHB.Event:wait()
- else
- for i = 1, NUMBER do
- ArtificialHB.Event:wait()
- end
- end
- 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 = ACOS(cosTheta)
- local invSinTheta = 1 / SIN(theta)
- startInterp = SIN((1 - t) * theta) * invSinTheta
- finishInterp = SIN(t * theta) * invSinTheta
- else
- startInterp = 1 - t
- finishInterp = t
- end
- else
- if (1 + cosTheta) > 0.0001 then
- local theta = ACOS(-cosTheta)
- local invSinTheta = 1 / SIN(theta)
- startInterp = SIN((t - 1) * theta) * invSinTheta
- finishInterp = 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 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
- ------------------
- --Motors--
- local RS = char.Torso["Right Shoulder"]
- local LS = char.Torso["Left Shoulder"]
- local RH = char.Torso["Right Hip"]
- local LH = char.Torso["Left Hip"]
- local neck = char.Torso["Neck"]
- local rootj = char.HumanoidRootPart.RootJoint
- local sine = 0
- local RSnor = RS.C0
- local LSnor = LS.C0
- local RHnor = RH.C0
- local LHnor = LH.C0
- local rootjnor = rootj.C0
- local necknor = neck.C0
- local RootPart = rootj.Parent
- ----------
- --Useful Values--
- hum = char.Humanoid
- Frame_Speed = 1 / 60
- Animation_Speed = 3
- Speed = 16
- Pose = "Idle"
- Cos = math.cos
- sine = 0
- State = hum:GetState()
- anim = hum.Animator
- Debris = game:GetService("Debris")
- Attack = false
- Rad = math.rad
- Fallen = false
- AntiNil = true
- Hold = false
- MoveLegs = true
- -----------------
- --Attacks--
- function Eviscerate(Model)
- for _,v in pairs (Model:children()) do
- if v:IsA("Part") or v:IsA("MeshPart") then
- v.Size = v.Size - Vector3.new(0, 0.25, 0)
- v:BreakJoints()
- local Velocity = Instance.new("BodyVelocity",v)
- Velocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
- Velocity.Velocity = Vector3.new(math.random(-60, 60),math.random(-60, 60),math.random(-60, 60))
- end
- end
- end
- function DeathEffect(Model)
- if Model:FindFirstChild("Torso") then
- print("Player is R6")
- local MTorso = Model:FindFirstChild("Torso")
- MTorso.Size = MTorso.Size - Vector3.new(0, 0.25, 0)
- MTorso:BreakJoints()
- Model:MakeJoints()
- Eviscerate(Model)
- end
- if Model:FindFirstChild("UpperTorso") then
- print("Player is R15")
- local MTorso = Model:FindFirstChild("UpperTorso")
- MTorso.Size = MTorso.Size - Vector3.new(0, 0.25, 0)
- MTorso:BreakJoints()
- Model:MakeJoints()
- Eviscerate(Model)
- end
- end
- function DamageHitbox(Part, Damage)
- local Hitter = Part.Touched:connect(function(hit)
- for _,v in pairs (hit.Parent:children()) do
- if v:IsA("Humanoid") then
- v.Health = v.Health - Damage
- if v.Health < 1 then
- DeathEffect(hit.Parent)
- end
- end
- end
- end)
- return Hitter
- end
- function attackone() --Slash 1
- Attack = true
- SLASH:Play()
- MoveLegs = true
- local Hitbox = DamageHitbox(ra, 15)
- for i = 1,12 do
- Swait()
- rootj.C0 = Clerp(rootj.C0, rootjnor * CFrame.new(0, 0, 0 + 0.05 * Cos(sine / 12)) * CFrame.Angles(0, 0, 0.25), 1 / Animation_Speed)
- --RH.C0 = Clerp(RH.C0, RHnor * CFrame.new(0, 0 - 0.05 * Cos(sine / 12), 0) * CFrame.Angles(-0.11, 0, -0.11), 1 / Animation_Speed)
- --LH.C0 = Clerp(LH.C0, LHnor * CFrame.new(0, 0 - 0.05 * Cos(sine / 12), 0) * CFrame.Angles(-0.11, 0, -0.11), 1 / Animation_Speed)
- RS.C0 = Clerp(RS.C0, RSnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 12), 0) * CFrame.Angles(0, 0, 77 + 77), 1 / Animation_Speed)
- LS.C0 = Clerp(LS.C0, LSnor * CFrame.Angles(-0.25 + 0.05 * Cos(sine / 12), 0, 0.25 + 0.05 * Cos(sine / 12)), 1 / Animation_Speed)
- neck.C0 = Clerp(neck.C0, necknor * CFrame.Angles(0, 0, -0.25), 1 / Animation_Speed)
- end
- for i = 1,17 do
- Swait()
- rootj.C0 = Clerp(rootj.C0, rootjnor * CFrame.new(0, 0, 0 + 0.05 * Cos(sine / 12)) * CFrame.Angles(0, 0, 0.25), 1 / Animation_Speed)
- --RH.C0 = Clerp(RH.C0, RHnor * CFrame.new(0, 0 - 0.05 * Cos(sine / 12), 0) * CFrame.Angles(-0.11, 0, -0.11), 1 / Animation_Speed)
- --LH.C0 = Clerp(LH.C0, LHnor * CFrame.new(0, 0 - 0.05 * Cos(sine / 12), 0) * CFrame.Angles(-0.11, 0, -0.11), 1 / Animation_Speed)
- RS.C0 = Clerp(RS.C0, RSnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 12), 0) * CFrame.Angles(0, 0, 0.5), 1 / Animation_Speed)
- LS.C0 = Clerp(LS.C0, LSnor * CFrame.Angles(-0.25 + 0.05 * Cos(sine / 12), 0, 0.25 + 0.05 * Cos(sine / 12)), 1 / Animation_Speed)
- neck.C0 = Clerp(neck.C0, necknor * CFrame.Angles(0, 0, -0.25), 1 / Animation_Speed)
- end
- Attack = false
- MoveLegs = true
- Hitbox:disconnect()
- end
- -----------
- --Assign keys--
- mouse.Button1Down:connect(function()
- Hold = true
- if Attack == false then
- attackone()
- end
- end)
- mouse.Button1Up:connect(function()
- Hold = false
- end)
- ---------------
- --Animations--
- print("By youngmacka123 and mangleplays2")
- while true do
- Swait()
- sine = sine + 1
- anim.Parent = nil
- local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
- local Y = RootPart.Velocity.Y
- local TiltVelocity = CFrame.new(RootPart.CFrame:vectorToObjectSpace(RootPart.Velocity/1.6))
- local WALKSPEEDVALUE = 6 / (hum.WalkSpeed / 16)
- if TORSOVELOCITY < 1 and State ~= Enum.HumanoidStateType.Climbing then
- Pose = "Idle"
- elseif TORSOVELOCITY > 1 and State ~= Enum.HumanoidStateType.Climbing then
- Pose = "Walk"
- end
- if TORSOVELOCITY < 1 and State ~= Enum.HumanoidStateType.Climbing and Attack == false then
- Pose = "Idle"
- rootj.C0 = Clerp(rootj.C0, rootjnor * CFrame.new(0, 0, 0 + 0.05 * Cos(sine / 12)) * CFrame.Angles(0, 0, 0.25), 1 / Animation_Speed)
- --RH.C0 = Clerp(RH.C0, RHnor * CFrame.new(0, 0 - 0.05 * Cos(sine / 12), 0) * CFrame.Angles(-0.11, 0, -0.11), 1 / Animation_Speed)
- --LH.C0 = Clerp(LH.C0, LHnor * CFrame.new(0, 0 - 0.05 * Cos(sine / 12), 0) * CFrame.Angles(-0.11, 0, -0.11), 1 / Animation_Speed)
- RS.C0 = Clerp(RS.C0, RSnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 12), 0) * CFrame.Angles(-0.25 + 0.05 * Cos(sine / 12), 0, 1 + 0.01 * Cos(sine / 12)), 1 / Animation_Speed)
- LS.C0 = Clerp(LS.C0, LSnor * CFrame.Angles(-0.25 + 0.05 * Cos(sine / 12), 0, 0.25 + 0.05 * Cos(sine / 12)), 1 / Animation_Speed)
- neck.C0 = Clerp(neck.C0, necknor * CFrame.Angles(0, 0, -0.25), 1 / Animation_Speed)
- elseif TORSOVELOCITY > 1 and State ~= Enum.HumanoidStateType.Climbing and Attack == false then
- Pose = "Walk"
- rootj.C0 = Clerp(rootj.C0, rootjnor * CFrame.new(0, 0, 0 + 0.05 * Cos(sine / 12)) * CFrame.Angles(0 -Rad(TiltVelocity.z), 0-Rad(TiltVelocity.x), 0), 1 / Animation_Speed)
- --RH.C0 = Clerp(RH.C0, RHnor * CFrame.new(0, 0 - 0.05 * Cos(sine / 12), 0) * CFrame.Angles(0, 0, 0 + 1 * Cos(sine / WALKSPEEDVALUE)), 1 / Animation_Speed)
- --LH.C0 = Clerp(LH.C0, LHnor * CFrame.new(0, 0 - 0.05 * Cos(sine / 12), 0) * CFrame.Angles(0, 0, 0 + 1 * Cos(sine / WALKSPEEDVALUE)), 1 / Animation_Speed)
- RS.C0 = Clerp(RS.C0, RSnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 12), 0) * CFrame.Angles(-0.25 + 0.05 * Cos(sine / 12), 0, 1 + 0.01 * Cos(sine / 12)), 1 / Animation_Speed)
- LS.C0 = Clerp(LS.C0, LSnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 12), 0) * CFrame.Angles(0, 0, 0 - 1 * Cos(sine / WALKSPEEDVALUE)), 1 / Animation_Speed)
- neck.C0 = Clerp(neck.C0, necknor * CFrame.Angles(0 +Rad(TiltVelocity.z), 0-Rad(TiltVelocity.x), 0), 1 / Animation_Speed)
- end
- if Pose == "Walk" and MoveLegs == true then
- RH.C0 = Clerp(RH.C0, RHnor * CFrame.new(0, 0 - 0.05 * Cos(sine / 12), 0) * CFrame.Angles(0, 0, 0 + 1 * Cos(sine / WALKSPEEDVALUE)), 1 / Animation_Speed)
- LH.C0 = Clerp(LH.C0, LHnor * CFrame.new(0, 0 - 0.05 * Cos(sine / 12), 0) * CFrame.Angles(0, 0, 0 + 1 * Cos(sine / WALKSPEEDVALUE)), 1 / Animation_Speed)
- elseif Pose == "Idle" and MoveLegs == true then
- RH.C0 = Clerp(RH.C0, RHnor * CFrame.new(0, 0 - 0.05 * Cos(sine / 12), 0) * CFrame.Angles(-0.11, 0, -0.11), 1 / Animation_Speed)
- LH.C0 = Clerp(LH.C0, LHnor * CFrame.new(0, 0 - 0.05 * Cos(sine / 12), 0) * CFrame.Angles(-0.11, 0, -0.11), 1 / Animation_Speed)
- end
- end
- --------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement