Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Jevil V5 by HenloMyDude--
- Player = owner
- Mouse = Player:GetMouse()
- 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
- --Character Set up.--
- Player.Character.Archivable = true
- Character = Player.Character:Clone()
- Character.Parent = script
- Player.Character = Character
- RootPart = Character.HumanoidRootPart
- ---------------------
- --Camera Set Up.--
- CamSetUp = true
- Humanoid = Character:FindFirstChildOfClass("Humanoid")
- Stuff = Instance.new("Model",script)
- Stuff.Name = "Stuffs"
- if CamSetUp then
- Camera = NLS([[
- Script = script
- Script.Name = "CameraFix"
- Player = owner
- Character = Player.Character
- Camera = Workspace.CurrentCamera
- while true do
- wait()
- if Character then
- Humanoid = Character:FindFirstChildOfClass("Humanoid")
- if Humanoid then
- Camera.CameraSubject = Humanoid
- end
- end
- end
- ]],Character)
- end
- ------------------
- --Sounds.--
- 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
- -----------
- --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)
- --------------
- --Functions.--
- 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 LeftUpperArm = Character.LeftUpperArm
- local LeftShoulder = Character.LeftUpperArm.LeftShoulder
- local LSnor = LeftShoulder.C0
- local LeftLowerArm = Character.LeftLowerArm
- local LeftElbow = Character.LeftLowerArm.LeftElbow
- local LEnor = LeftElbow.C0
- --------------------------------------------------------
- local LeftUpperLeg = Character.LeftUpperLeg
- local LeftHip = Character.LeftUpperLeg.LeftHip
- local LHnor = LeftHip.C0
- local LeftLowerLeg = Character.LeftLowerLeg
- local LeftKnee = Character.LeftLowerLeg.LeftKnee
- local LKnor = LeftKnee.C0
- local LeftAnkle = Character.LeftFoot.LeftAnkle
- local LAnor = LeftAnkle.C0
- ----------------------------------------------------------
- local RightUpperArm = Character.RightUpperArm
- local RightShoulder = Character.RightUpperArm.RightShoulder
- local RSnor = RightShoulder.C0
- local RightLowerArm = Character.RightLowerArm
- local RightElbow = Character.RightLowerArm.RightElbow
- local REnor = RightElbow.C0
- ----------------------------------------------------------
- local RightUpperLeg = Character.RightUpperLeg
- local RightHip = Character.RightUpperLeg.RightHip
- local RHnor = RightHip.C0
- local RightLowerLeg = Character.RightLowerLeg
- local RightKnee = Character.RightLowerLeg.RightKnee
- local RKnor = RightKnee.C0
- local RightAnkle = Character.RightFoot.RightAnkle
- local RAnor = RightAnkle.C0
- ----------------------------------------------------------
- local UpperTorso = Character.UpperTorso
- local Waist = UpperTorso.Waist
- local Waistnor = Waist.C0
- local LowerTorso = Character.LowerTorso
- --local LTnor = LowerTorso.C0
- local Root = Character.LowerTorso.Root
- local Rootnor = Root.C0
- local RootPart = Character.HumanoidRootPart
- local LeftHand = Character.LeftHand
- --local LHnor = LeftHand.C0
- local RightHand = Character.RightHand
- --local RHnor = RightHand.C0
- local LeftFoot = Character.LeftFoot
- --local LFnor = LeftFoot.C0
- local RightFoot = Character.RightFoot
- --local RFnor = RightFoot.C0
- local RightWrist= RightHand.RightWrist
- local RWnor = RightWrist.C0
- local LeftWrist= LeftHand.LeftWrist
- local LWnor = LeftWrist.C0
- --------------------------------------------
- local Head = Character.Head
- local Neck = Head.Neck
- local Necknor = Neck.C0
- -----------
- --Useful Values.--
- Frame_Speed = 1 / 60
- Animation_Speed = 3
- Speed = 16
- Pose = "Idle"
- Cos = math.cos
- sine = 0
- State = Humanoid:GetState()
- Debris = game:GetService("Debris")
- Attack = false
- Rad = math.rad
- Fallen = false
- AntiNil = true
- Hold = false
- Animator = Humanoid.Animator
- Mode = "None"
- OnlyHead = false
- ------------------
- --Mouse.--
- local mouse = {Hit = CFrame.new(0, 0, 0)}
- local remote = Instance.new("RemoteEvent")
- remote.Name = "UserInputStuff"
- remote.Parent = NLS([==[
- local plr = game:GetService("Players").LocalPlayer
- local mouse = plr:GetMouse()
- local char = plr.Character
- local hum = char:FindFirstChildOfClass("Humanoid")
- game:GetService("UserInputService").InputBegan:Connect(function(input, isTyping)
- if isTyping == false and input.UserInputType == Enum.UserInputType.Keyboard then
- script:WaitForChild("UserInputStuff"):FireServer("UserInputService", input.KeyCode)
- end
- end)
- while game:GetService("RunService").RenderStepped:Wait() do
- for i,v in pairs(hum:GetPlayingAnimationTracks()) do
- v:Stop()
- end
- if script:FindFirstChild("UserInputStuff") then
- script.UserInputStuff:FireServer("MouseInfo", mouse.Hit)
- end
- end
- ]==], Character)
- ----------
- --Attacks.--
- function fiteme()
- if Mode == "None" then
- Mode = "Fight"
- else
- Mode = "None"
- end
- end
- function sprinty()
- if Speed == 30 then
- Speed = 16
- else
- Speed = 30
- end
- end
- char = Character
- rootpart = RootPart
- head = Head
- function spade1()
- for i = 1, 10 do
- for i = 1, 15 do
- game:GetService("RunService").Stepped:Wait()
- for i,v in pairs(char:GetDescendants()) do
- if v:IsA("Part") and v.Name ~= "HumanoidRootPart" or v:IsA("MeshPart") then
- v.Transparency = 0
- end
- if v:IsA("Decal") then
- v.Transparency = 0
- end
- end
- end
- local oldpos = rootpart.Position
- local dist = (rootpart.Position - mouse.Hit.Position).Magnitude
- if dist > 30 then
- dist = 30
- end
- rootpart.CFrame = CFrame.new(oldpos + CFrame.new(oldpos, mouse.Hit.Position).LookVector * dist + Vector3.new(0, 6, 0), Vector3.new(oldpos.X, rootpart.Position.Y, oldpos.Z)) * CFrame.Angles(0, math.pi, 0)
- for i,v in pairs(char:GetDescendants()) do
- if v:IsA("Part") and v.Name ~= "HumanoidRootPart" or v:IsA("MeshPart") then
- v.Transparency = 0
- end
- if v:IsA("Decal") then
- v.Transparency = 0
- end
- end
- for i,v in pairs(char:GetDescendants()) do
- if v:IsA("Part") and v.Name ~= "HumanoidRootPart" or v:IsA("MeshPart") then
- v.Transparency = 0
- end
- if v:IsA("Decal") then
- v.Transparency = 0
- end
- end
- local sound = Instance.new("Sound")
- sound.SoundId = "rbxassetid://2545012765"
- sound.Volume = 10
- sound.Parent = head
- sound:Play()
- for amount = 1, 5 do
- local spade = Instance.new("Part")
- spade.Name = "Spade"
- spade.Anchored = true
- spade.CanCollide = false
- spade.Size = Vector3.new(1, 0.05, 1)
- if amount == 1 then
- spade.CFrame = CFrame.new(head.Position, mouse.Hit.Position) * CFrame.Angles(0, math.pi / 2, 0)
- elseif amount == 2 then
- spade.CFrame = CFrame.new(head.Position, mouse.Hit.Position) * CFrame.Angles(0, math.rad(100), 0)
- elseif amount == 3 then
- spade.CFrame = CFrame.new(head.Position, mouse.Hit.Position) * CFrame.Angles(0, math.rad(80), 0)
- elseif amount == 4 then
- spade.CFrame = CFrame.new(head.Position, mouse.Hit.Position) * CFrame.Angles(0, math.rad(110), 0)
- elseif amount == 5 then
- spade.CFrame = CFrame.new(head.Position, mouse.Hit.Position) * CFrame.Angles(0, math.rad(70), 0)
- end
- spade.Parent = char
- local decal1 = Instance.new("Decal")
- decal1.Texture = "rbxassetid://2700856195"
- decal1.Face = Enum.NormalId.Top
- decal1.Parent = spade
- local decal2 = Instance.new("Decal")
- decal2.Texture = "rbxassetid://2700856195"
- decal2.Face = Enum.NormalId.Bottom
- decal2.Parent = spade
- local debounce = false
- spade.Touched:Connect(function(hit)
- end)
- spawn(function()
- for i = 1, 180 do
- game:GetService("RunService").Stepped:Wait()
- for i,v in pairs(spade:GetTouchingParts()) do
- if not v:IsDescendantOf(char) and debounce == false then
- if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") then
- debounce = true
- v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 20
- coroutine.resume(coroutine.create(function()
- wait(0.4)
- debounce = false
- end))
- end
- end
- end
- spade.Transparency = 1
- spade.CFrame = spade.CFrame * CFrame.new(0.5, 0, 0)
- end
- for i = 1, 10 do
- game:GetService("RunService").Stepped:Wait()
- spade.CFrame = spade.CFrame * CFrame.new(0.5, 0, 0)
- decal1.Transparency = decal1.Transparency + 0.1
- decal2.Transparency = decal2.Transparency + 0.1
- end
- spade:Destroy()
- end)
- end
- end
- end
- ------------
- --Assign keys.--
- local Remote = Instance.new("RemoteEvent",Character)
- Remote.Name = "remotey"
- function KeyDo(name)
- if name == "fiteme" and Attack == false then
- fiteme()
- end
- if name == "spade1" and Attack == false then
- spade1()
- end
- if name == "sprinty" and Attack == false then
- sprinty()
- end
- end
- RemoteClient = NLS([[
- local Player = owner
- local Character = Player.Character
- local Mouse = Player:GetMouse()
- local Remote = Character.remotey
- local Attack = false
- Mouse.KeyDown:connect(function(key)
- if key == "p" then
- Remote:FireServer("fiteme")
- end
- if key == "z" then
- Remote:FireServer("spade1")
- end
- if key == "m" then
- Remote:FireServer("sprinty")
- end
- end)
- ]],Character)
- Remote.OnServerEvent:Connect(function(PlayerSendit,Button) KeyDo(Button) end)
- ----------------
- --Damage.--
- function HurtAnim()
- OnlyHead = true
- for i = 1,35 do
- Swait()
- Neck.C0 = Neck.C0:Lerp(Necknor * CFrame.new(0 - 1 * Cos(sine / 6), 2, 0) * ANGLES(0, 0, 0 + 1 * Cos(sine / 6)), 0.15)
- end
- OnlyHead = false
- end
- local h = Character.Humanoid
- local hp = h.Health
- function HealthChanged()
- if h.Health < hp then
- if h.Health > 0 then
- HurtAnim()
- end
- end
- hp = h.Health
- end
- h.HealthChanged:Connect(HealthChanged)
- -----------
- --Animations.--
- function E1()
- for i = 1,17 do
- Swait()
- Neck.C0 = Clerp(Neck.C0, Necknor * CFrame.Angles(0, Rad(-45), 0), 1 / Animation_Speed)
- Waist.C0 = Clerp(Waist.C0, Waistnor * CFrame.new(0, 0 + 0.1 * Cos(sine / 12), 0), 0.5 / Animation_Speed)
- Root.C0 = Clerp(Root.C0, Rootnor * CFrame.new(0,0, 0) * CFrame.Angles(0, Rad(45), 0), 3 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * CFrame.Angles(Rad(90) + Rad(45), 0, Rad(45)), 3 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, LSnor * CFrame.Angles(Rad(-45), 0, Rad(45)), 1 / Animation_Speed)
- RightElbow.C0 = Clerp(RightElbow.C0, REnor * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
- LeftElbow.C0 = Clerp(LeftElbow.C0, LEnor * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
- RightWrist.C0 = Clerp(RightWrist.C0, RWnor * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
- LeftWrist.C0 = Clerp(LeftWrist.C0, LWnor * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, RHnor * CFrame.new(0, 0.5, -0.5) * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, LHnor * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
- RightKnee.C0 = Clerp(RightKnee.C0, RKnor, 1 / Animation_Speed)
- LeftKnee.C0 = Clerp(LeftKnee.C0, LKnor, 1 / Animation_Speed)
- RightAnkle.C0 = Clerp(RightAnkle.C0, RAnor, 1 / Animation_Speed)
- LeftAnkle.C0 = Clerp(LeftAnkle.C0, LAnor, 1 / Animation_Speed)
- end
- end
- function E2()
- for i = 1,17 do
- Swait()
- Neck.C0 = Clerp(Neck.C0, Necknor * CFrame.Angles(0, Rad(45), 0), 1 / Animation_Speed)
- Waist.C0 = Clerp(Waist.C0, Waistnor * CFrame.new(0, 0 + 0.1 * Cos(sine / 12), 0), 0.5 / Animation_Speed)
- Root.C0 = Clerp(Root.C0, Rootnor * CFrame.new(0,0, 0) * CFrame.Angles(0, Rad(-45), 0), 3 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * CFrame.Angles(Rad(45), 0, Rad(45)), 3 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, LSnor * CFrame.Angles(Rad(90) + Rad(45), 0, Rad(-45)), 1 / Animation_Speed)
- RightElbow.C0 = Clerp(RightElbow.C0, REnor * CFrame.Angles(0, 0,0), 1 / Animation_Speed)
- LeftElbow.C0 = Clerp(LeftElbow.C0, LEnor * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
- RightWrist.C0 = Clerp(RightWrist.C0, RWnor * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
- LeftWrist.C0 = Clerp(LeftWrist.C0, LWnor * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, RHnor * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, LHnor * CFrame.new(0, 0.5, -0.5) * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
- RightKnee.C0 = Clerp(RightKnee.C0, RKnor, 1 / Animation_Speed)
- LeftKnee.C0 = Clerp(LeftKnee.C0, LKnor, 1 / Animation_Speed)
- RightAnkle.C0 = Clerp(RightAnkle.C0, RAnor, 1 / Animation_Speed)
- LeftAnkle.C0 = Clerp(LeftAnkle.C0, LAnor, 1 / Animation_Speed)
- end
- end
- Humanoid.Health = 2500
- while true do
- Swait()
- Animator.Parent = nil
- Character.Parent = script
- State = Humanoid:GetState()
- sine = sine + 1
- Humanoid.WalkSpeed = Speed
- 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 / (Humanoid.WalkSpeed / 16)
- if Fallen == false then
- Humanoid.PlatformStand = false
- else
- Humanoid.PlatformStand = true
- end
- if TORSOVELOCITY < 1 and State ~= Enum.HumanoidStateType.Climbing then
- Pose = "Idle"
- if Mode == "None" and Attack == false and OnlyHead == false then
- Neck.C0 = Clerp(Neck.C0, Necknor, 1 / Animation_Speed)
- Waist.C0 = Clerp(Waist.C0, Waistnor * CFrame.new(0, 0 + 0.1 * Cos(sine / 12), 0), 0.5 / Animation_Speed)
- Root.C0 = Clerp(Root.C0, Rootnor * CFrame.new(0, 1.5 + 0.3 * Cos(sine / 12), 0), 0.5 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * CFrame.new(0, -0.5, 0) * CFrame.Angles(0, 0, 1), 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, LSnor * CFrame.Angles(Rad(-45), 0, Rad(45)), 1 / Animation_Speed)
- RightElbow.C0 = Clerp(RightElbow.C0, REnor * CFrame.Angles(0, 0, 0.5), 1 / Animation_Speed)
- LeftElbow.C0 = Clerp(LeftElbow.C0, LEnor * CFrame.Angles(0, 0, 0.1), 1 / Animation_Speed)
- RightWrist.C0 = Clerp(RightWrist.C0, RWnor * CFrame.Angles(0, 0, 1.5), 1 / Animation_Speed)
- LeftWrist.C0 = Clerp(LeftWrist.C0, LWnor * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, RHnor * CFrame.Angles(0, -0.5, 0), 1 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, LHnor * CFrame.Angles(0, 0.5, 0), 1 / Animation_Speed)
- RightKnee.C0 = Clerp(RightKnee.C0, RKnor, 1 / Animation_Speed)
- LeftKnee.C0 = Clerp(LeftKnee.C0, LKnor, 1 / Animation_Speed)
- RightAnkle.C0 = Clerp(RightAnkle.C0, RAnor, 1 / Animation_Speed)
- LeftAnkle.C0 = Clerp(LeftAnkle.C0, LAnor, 1 / Animation_Speed)
- elseif Mode == "Fight" and Attack == false then
- E1()
- for i = 1,20 do
- Neck.C0 = Clerp(Neck.C0, Necknor * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
- Waist.C0 = Clerp(Waist.C0, Waistnor * CFrame.new(0, 0 + 0.1 * Cos(sine / 12), 0), 0.5 / Animation_Speed)
- Root.C0 = Clerp(Root.C0, Rootnor * CFrame.new(0,0, 0) * CFrame.Angles(0, 0, Rad(0)), 3 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * CFrame.Angles(0, 0, Rad(0) + Rad(0)), 3 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, LSnor * CFrame.Angles(0, 0, 0), 3 / Animation_Speed)
- RightElbow.C0 = Clerp(RightElbow.C0, REnor * CFrame.Angles(0, 0,0), 1 / Animation_Speed)
- LeftElbow.C0 = Clerp(LeftElbow.C0, LEnor * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
- RightWrist.C0 = Clerp(RightWrist.C0, RWnor * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
- LeftWrist.C0 = Clerp(LeftWrist.C0, LWnor * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, RHnor * CFrame.Angles(0, 0, 0), 3 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, LHnor * CFrame.Angles(0, 0, 0), 3 / Animation_Speed)
- RightKnee.C0 = Clerp(RightKnee.C0, RKnor, 1 / Animation_Speed)
- LeftKnee.C0 = Clerp(LeftKnee.C0, LKnor, 1 / Animation_Speed)
- RightAnkle.C0 = Clerp(RightAnkle.C0, RAnor, 1 / Animation_Speed)
- LeftAnkle.C0 = Clerp(LeftAnkle.C0, LAnor, 1 / Animation_Speed)
- end
- E2()
- for i = 1,20 do
- Neck.C0 = Clerp(Neck.C0, Necknor * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
- Waist.C0 = Clerp(Waist.C0, Waistnor * CFrame.new(0, 0 + 0.1 * Cos(sine / 12), 0), 0.5 / Animation_Speed)
- Root.C0 = Clerp(Root.C0, Rootnor * CFrame.new(0,0, 0) * CFrame.Angles(0, 0, Rad(0)), 3 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * CFrame.Angles(0, 0, Rad(0) + Rad(0)), 3 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, LSnor * CFrame.Angles(0, 0, 0), 3 / Animation_Speed)
- RightElbow.C0 = Clerp(RightElbow.C0, REnor * CFrame.Angles(0, 0,0), 1 / Animation_Speed)
- LeftElbow.C0 = Clerp(LeftElbow.C0, LEnor * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
- RightWrist.C0 = Clerp(RightWrist.C0, RWnor * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
- LeftWrist.C0 = Clerp(LeftWrist.C0, LWnor * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, RHnor * CFrame.Angles(0, 0, 0), 3 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, LHnor * CFrame.Angles(0, 0, 0), 3 / Animation_Speed)
- RightKnee.C0 = Clerp(RightKnee.C0, RKnor, 1 / Animation_Speed)
- LeftKnee.C0 = Clerp(LeftKnee.C0, LKnor, 1 / Animation_Speed)
- RightAnkle.C0 = Clerp(RightAnkle.C0, RAnor, 1 / Animation_Speed)
- LeftAnkle.C0 = Clerp(LeftAnkle.C0, LAnor, 1 / Animation_Speed)
- end
- elseif Mode == "None" and Attack == true and OnlyHead == true then
- Waist.C0 = Clerp(Waist.C0, Waistnor * CFrame.new(0, 0 + 0.1 * Cos(sine / 12), 0), 0.5 / Animation_Speed)
- Root.C0 = Clerp(Root.C0, Rootnor * CFrame.new(0, 1.5 + 0.3 * Cos(sine / 12), 0), 0.5 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * CFrame.new(0, -0.5, 0) * CFrame.Angles(0, 0, 1), 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, LSnor * CFrame.Angles(Rad(-45), 0, Rad(45)), 1 / Animation_Speed)
- RightElbow.C0 = Clerp(RightElbow.C0, REnor * CFrame.Angles(0, 0, 0.5), 1 / Animation_Speed)
- LeftElbow.C0 = Clerp(LeftElbow.C0, LEnor * CFrame.Angles(0, 0, 0.1), 1 / Animation_Speed)
- RightWrist.C0 = Clerp(RightWrist.C0, RWnor * CFrame.Angles(0, 0, 1.5), 1 / Animation_Speed)
- LeftWrist.C0 = Clerp(LeftWrist.C0, LWnor * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, RHnor * CFrame.Angles(0, -0.5, 0), 1 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, LHnor * CFrame.Angles(0, 0.5, 0), 1 / Animation_Speed)
- RightKnee.C0 = Clerp(RightKnee.C0, RKnor, 1 / Animation_Speed)
- LeftKnee.C0 = Clerp(LeftKnee.C0, LKnor, 1 / Animation_Speed)
- RightAnkle.C0 = Clerp(RightAnkle.C0, RAnor, 1 / Animation_Speed)
- LeftAnkle.C0 = Clerp(LeftAnkle.C0, LAnor, 1 / Animation_Speed)
- elseif Mode == "Fight" and Attack == true and OnlyHead == true then
- end
- elseif TORSOVELOCITY > 1 and State ~= Enum.HumanoidStateType.Climbing and Attack == false then
- Pose = "Walk"
- if Mode == "None" and Attack == false then
- Neck.C0 = Clerp(Neck.C0, Necknor * CFrame.Angles(0 -Rad(TiltVelocity.z) * 3, 0, 0), 1 / Animation_Speed)
- Waist.C0 = Clerp(Waist.C0, Waistnor * CFrame.new(0, 0 + 0.1 * Cos(sine / 12), 0), 0.5 / Animation_Speed)
- Root.C0 = Clerp(Root.C0, Rootnor * CFrame.new(0, 1.5 + 0.3 * Cos(sine / 12), 0) * CFrame.Angles(0 +Rad(TiltVelocity.z) * 3, 0, 0), 0.5 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * CFrame.Angles(0 +Rad(TiltVelocity.z)*6, 0, 0), 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, LSnor * CFrame.Angles(0 +Rad(TiltVelocity.z)*6, 0, 0), 1 / Animation_Speed)
- RightElbow.C0 = Clerp(RightElbow.C0, REnor * CFrame.Angles(0, 0, -0.1 - 0.1 * Cos(sine / 4)), 1 / Animation_Speed)
- LeftElbow.C0 = Clerp(LeftElbow.C0, LEnor * CFrame.Angles(0, 0, 0.1 + 0.1 * Cos(sine / 4)), 1 / Animation_Speed)
- RightWrist.C0 = Clerp(RightWrist.C0, RWnor * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
- LeftWrist.C0 = Clerp(LeftWrist.C0, LWnor * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, RHnor * CFrame.Angles(0 +Rad(TiltVelocity.z) * 3, -0.5, 0), 1 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, LHnor * CFrame.Angles(0 +Rad(TiltVelocity.z) * 3, 0.5, 0), 1 / Animation_Speed)
- RightKnee.C0 = Clerp(RightKnee.C0, RKnor, 1 / Animation_Speed)
- LeftKnee.C0 = Clerp(LeftKnee.C0, LKnor, 1 / Animation_Speed)
- RightAnkle.C0 = Clerp(RightAnkle.C0, RAnor, 1 / Animation_Speed)
- LeftAnkle.C0 = Clerp(LeftAnkle.C0, LAnor, 1 / Animation_Speed)
- elseif Mode == "Fight" and Attack == false then
- end
- elseif State == Enum.HumanoidStateType.Climbing and Attack == false then
- Pose = "Climbing"
- Neck.C0 = Clerp(Neck.C0, Necknor, 1 / Animation_Speed)
- Waist.C0 = Clerp(Waist.C0, Waistnor, 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * CFrame.new(1, 0, 0) * CFrame.Angles(0, 0, 77 + 77), 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, LSnor * CFrame.new(-1, 0, 0) * CFrame.Angles(0, 0, -77 - 77), 1 / Animation_Speed)
- RightElbow.C0 = Clerp(RightElbow.C0, REnor, 1 / Animation_Speed)
- LeftElbow.C0 = Clerp(LeftElbow.C0, LEnor, 1 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, RHnor, 1 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, LHnor, 1 / Animation_Speed)
- RightKnee.C0 = Clerp(RightKnee.C0, RKnor, 1 / Animation_Speed)
- LeftKnee.C0 = Clerp(LeftKnee.C0, LKnor, 1 / Animation_Speed)
- RightAnkle.C0 = Clerp(RightAnkle.C0, RAnor, 1 / Animation_Speed)
- LeftAnkle.C0 = Clerp(LeftAnkle.C0, LAnor, 1 / Animation_Speed)
- end
- end
- ---------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement