Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Meme Thing Man 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
- ------------------
- --Decals.--
- function AddDecal(Part, Id, Face)
- local Decal = IT("Decal")
- Decal.Parent = Part
- Decal.Texture = "rbxassetid://" ..Id
- Decal.Face = Face
- end
- -----------
- --Welds.--
- ezweld = function(p, a, b, cf)
- local weld = Instance.new("Weld",p)
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = cf
- return weld
- end
- ----------
- --Attacks.--
- function yourefat()
- Attack = true
- local Fatty = NewSound(Head, 135997023, 1, 10, false)
- Fatty.TimePosition = 1.256
- Debris:AddItem(Fatty, 1.356)
- Speed = 0
- for i = 1,55 do
- Swait()
- Neck.C0 = Clerp(Neck.C0, Necknor * CFrame.Angles(0 + 0.1 * Cos(sine / 5), 0, 0), 1 / Animation_Speed)
- Waist.C0 = Clerp(Waist.C0, Waistnor * CFrame.new(0, 0 + 0.1 * Cos(sine / 12), 0), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * CFrame.Angles(77 + 0.1 * Cos(sine / 5), 0, 0), 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, LSnor * CFrame.Angles(0, 0, 0 - 0.1 * Cos(sine / 12)), 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 - 0.1 * Cos(sine / 12)), 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
- Speed = 16
- Attack = false
- end
- function hellothere()
- Attack = true
- NewSound(Head, 2205772835, 1, 10, false)
- Speed = 0
- for i = 1,55 do
- Swait()
- Neck.C0 = Clerp(Neck.C0, Necknor * CFrame.Angles(0 + 0.1 * Cos(sine / 5), 0, 0), 1 / Animation_Speed)
- Waist.C0 = Clerp(Waist.C0, Waistnor * CFrame.new(0, 0 + 0.1 * Cos(sine / 12), 0), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * CFrame.Angles(77 + 77, 0, 1), 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, LSnor * CFrame.Angles(0, 0, 0 - 0.1 * Cos(sine / 12)), 1 / Animation_Speed)
- RightElbow.C0 = Clerp(RightElbow.C0, REnor * CFrame.Angles(0, 0, -0.25 + 0.5 * Cos(sine / 8)), 1 / Animation_Speed)
- LeftElbow.C0 = Clerp(LeftElbow.C0, LEnor * CFrame.Angles(0, 0, 0 - 0.1 * Cos(sine / 12)), 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
- Speed = 16
- Attack = false
- end
- function nou()
- Attack = true
- NewSound(Head, 1543318456, 1, 10, false)
- Speed = 0
- for i = 1,37 do
- Swait()
- Neck.C0 = Clerp(Neck.C0, Necknor * CFrame.Angles(0.15, 0, 0), 1 / Animation_Speed)
- Waist.C0 = Clerp(Waist.C0, Waistnor * CFrame.new(0, 0 + 0.1 * Cos(sine / 12), 0), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * CFrame.Angles(91 + 0.1 * Cos(sine / 12), 0, 0), 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, LSnor * CFrame.Angles(0, 0, 0 - 0.1 * Cos(sine / 12)), 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 - 0.1 * Cos(sine / 12)), 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
- for i = 1,36 do
- Swait()
- Neck.C0 = Clerp(Neck.C0, Necknor * CFrame.Angles(0.15, 0, 0), 1 / Animation_Speed)
- Waist.C0 = Clerp(Waist.C0, Waistnor * CFrame.new(0, 0 + 0.1 * Cos(sine / 12), 0) * CFrame.Angles(-0.15, 0, 0), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * CFrame.Angles(77.15 + 0.1 * Cos(sine / 12), 0, 0), 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, LSnor * CFrame.Angles(0, 0, 0 - 0.1 * Cos(sine / 12)), 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 - 0.1 * Cos(sine / 12)), 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
- Speed = 16
- Attack = false
- end
- function gotaletter()
- Attack = true
- local wejustgot = NewSound(Head, 246440224, 1, 10, false)
- Speed = 0
- local Letter = Instance.new("Part",Character)
- Letter.Transparency = 1
- Letter.CanCollide = false
- Letter.Size = Vector3.new(2, 2, 0.01)
- Letter.Anchored = false
- local Front = AddDecal(Letter, 61998057, "Front")
- local Back = AddDecal(Letter, 61998057, "Back")
- local LetWeld = ezweld(Letter, Letter, RootPart, CFrame.new(0, -4.5, 0))
- local Spin = 0.5
- coroutine.resume(coroutine.create(function()
- while true do
- wait(0.5)
- if Spin == 0.25 then
- Spin = -0.25
- else
- Spin = 0.25
- end
- LetWeld.C0 = CFrame.new(0, -4.5, 0) * CFrame.Angles(0, 0, Spin)
- end
- end))
- repeat
- Swait()
- Letter.Transparency = 1
- Letter.CanCollide = false
- Neck.C0 = Clerp(Neck.C0, Necknor * CFrame.Angles(77, 0, 0), 1 / Animation_Speed)
- Waist.C0 = Clerp(Waist.C0, Waistnor * CFrame.new(0, 0 + 0.1 * Cos(sine / 12), 0), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * CFrame.new(0.25, -0.75, 0) * CFrame.Angles(0, 0, 2), 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, LSnor * CFrame.new(-0.25, -0.76, 0) * CFrame.Angles(0, 0, -2), 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)
- 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)
- until wejustgot.Playing == false
- Speed = 16
- Attack = false
- Letter:Destroy()
- end
- function oraora()
- Attack = true
- for i = 1,55 do
- Swait()
- Neck.C0 = Clerp(Neck.C0, Necknor * CFrame.Angles(0 + 0.1 * Cos(sine / 5), 0, 0), 1 / Animation_Speed)
- Waist.C0 = Clerp(Waist.C0, Waistnor * CFrame.new(0, 0 + 0.1 * Cos(sine / 12), 0), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * CFrame.Angles(77 + 77, 0, 1), 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, LSnor * CFrame.Angles(0, 0, 0 - 0.1 * Cos(sine / 12)), 1 / Animation_Speed)
- RightElbow.C0 = Clerp(RightElbow.C0, REnor * CFrame.Angles(0, 0, -0.25 + 0.5 * Cos(sine / 8)), 1 / Animation_Speed)
- LeftElbow.C0 = Clerp(LeftElbow.C0, LEnor * CFrame.Angles(0, 0, 0 - 0.1 * Cos(sine / 12)), 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
- Attack = false
- end
- ------------
- --Assign keys.--
- local Remote = Instance.new("RemoteEvent",Character)
- Remote.Name = "remotey"
- function KeyDo(name)
- if name == "yourefat" and Attack == false then
- yourefat()
- end
- if name == "hellothere" and Attack == false then
- hellothere()
- end
- if name == "nou" and Attack == false then
- nou()
- end
- if name == "gotaletter" and Attack == false then
- gotaletter()
- end
- if name == "ora" and Attack == false then
- oraora()
- end
- if name == "unhold" then
- Hold = false
- 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 == "f" then
- Remote:FireServer("yourefat")
- end
- if key == "h" then
- Remote:FireServer("hellothere")
- end
- if key == "q" then
- Remote:FireServer("nou")
- end
- if key == "e" then
- Remote:FireServer("gotaletter")
- end
- end)
- ]],Character)
- Remote.OnServerEvent:Connect(function(PlayerSendit,Button) KeyDo(Button) end)
- ----------------
- --Anti-Delete--
- SpareCharacter = Character:Clone()
- SpareCharacter.Parent = nil
- function CheckIfNil()
- if not Character then
- print("Getting new character..")
- Character = nil
- Character = SpareCharacter:Clone()
- Character.Parent = workspace
- print("Complete")
- end
- end
- ---------------
- --Animations.--
- print("By youngmacka123.")
- while true do
- Swait()
- Animator.Parent = nil
- Character.Parent = script
- State = Humanoid:GetState()
- sine = sine + 1
- Humanoid.MaxHealth = "inf"
- Humanoid.Health = "inf"
- 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 AntiNil == true then
- CheckIfNil()
- end
- if not Character:FindFirstChildOfClass("ForceField") then
- local Force = Instance.new("ForceField",Character)
- Force.Visible = false
- end
- if not Player.Character:FindFirstChild("HumanoidRootPart") then
- print("Getting new character..")
- Character.Parent = nil
- Character = SpareCharacter:Clone()
- Character.Parent = script
- Character.HumanoidRootPart.CFrame = CFrame.new(0, 0, 0)
- Player.Character = Character
- print("Complete")
- return Character
- end
- if TORSOVELOCITY < 1 and State ~= Enum.HumanoidStateType.Climbing and Attack == false then
- Pose = "Idle"
- 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), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * CFrame.Angles(0, 0, 0 + 0.1 * Cos(sine / 12)), 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, LSnor * CFrame.Angles(0, 0, 0 - 0.1 * Cos(sine / 12)), 1 / Animation_Speed)
- RightElbow.C0 = Clerp(RightElbow.C0, REnor * CFrame.Angles(0, 0, 0 + 0.1 * Cos(sine / 12)), 1 / Animation_Speed)
- LeftElbow.C0 = Clerp(LeftElbow.C0, LEnor * CFrame.Angles(0, 0, 0 - 0.1 * Cos(sine / 12)), 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)
- elseif TORSOVELOCITY > 1 and State ~= Enum.HumanoidStateType.Climbing and Attack == false then
- Pose = "Walk"
- Neck.C0 = Clerp(Neck.C0, Necknor * CFrame.Angles(-Rad(TiltVelocity.z), -Rad(TiltVelocity.x), 0), 1 / Animation_Speed)
- Waist.C0 = Clerp(Waist.C0, Waistnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 12), 0) * CFrame.Angles(-0 +Rad(TiltVelocity.z), 0-Rad(TiltVelocity.x), 0), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * CFrame.Angles(0 + 1 * Cos(sine / WALKSPEEDVALUE), 0, 0), 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, LSnor * CFrame.Angles(0 - 1 * Cos(sine / WALKSPEEDVALUE), 0, 0), 1 / Animation_Speed)
- RightElbow.C0 = Clerp(RightElbow.C0, REnor * CFrame.Angles(0.25, 0, 0), 1 / Animation_Speed)
- LeftElbow.C0 = Clerp(LeftElbow.C0, LEnor * CFrame.Angles(0.25, 0, 0), 1 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, RHnor * CFrame.Angles(0 - 1 * Cos(sine / WALKSPEEDVALUE), 0, 0-Rad(TiltVelocity.x)), 1 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, LHnor * CFrame.Angles(0 + 1 * Cos(sine / WALKSPEEDVALUE), 0, 0-Rad(TiltVelocity.x)), 1 / Animation_Speed)
- RightKnee.C0 = Clerp(RightKnee.C0, RKnor * CFrame.Angles(-0.25, 0, 0), 1 / Animation_Speed)
- LeftKnee.C0 = Clerp(LeftKnee.C0, LKnor * CFrame.Angles(-0.25, 0, 0), 1 / Animation_Speed)
- RightAnkle.C0 = Clerp(RightAnkle.C0, RAnor, 1 / Animation_Speed)
- LeftAnkle.C0 = Clerp(LeftAnkle.C0, LAnor, 1 / Animation_Speed)
- 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