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
- do
- print("FE Compatibility code by Mokiros")
- script.Parent = Player.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent and t.Function then
- t.Function(...)
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=Player then return end
- if io.isMouse then
- m.Target = io.Target
- m.Hit = io.Hit
- else
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local Mouse = Player:GetMouse()
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- end]==],Player.Character)
- Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
- end
- plr = owner
- Player = plr
- char = plr.Character
- local cap = Instance.new("Part",char)
- cap.CanCollide = false
- local mesh = Instance.new("FileMesh",cap)
- mesh.MeshId = "rbxassetid://1401768294"
- mesh.TextureId = "rbxassetid://1401768475"
- mesh.Scale = Vector3.new(0.02,0.02,0.02)
- local weld = Instance.new("Weld",cap)
- weld.Part0 = cap
- weld.Part1 = char.Head
- weld.C0 = CFrame.new(0.000736236572, -0.606394291, 0.0590667725, 1, 0, 0, 0, 0.999990702, 0, 0, 0, 1)
- local GrooveCubeRemix = Instance.new("Sound",char)
- GrooveCubeRemix.SoundId = "rbxassetid://493026875"
- GrooveCubeRemix.Volume = 4
- GrooveCubeRemix.Looped = true
- GrooveCubeRemix:Play()
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Accessory" or v.ClassName == "Shirt" or v.ClassName == "Pants" then
- v:Destroy()
- end
- end
- local shirt = Instance.new("Shirt",char)
- shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=329656762"
- local pants = Instance.new("Pants",char)
- pants.PantsTemplate = "http://www.roblox.com/asset/?id=329658414"
- char.Head.face.Texture = "http://www.roblox.com/asset/?id=851872681"
- local player = Player
- local chara = workspace:WaitForChild(player.Name)
- local human = chara.Humanoid
- local neck = Instance.new("Weld",char)
- neck.Part0 = char.Torso
- neck.Part1 = char.Head
- neck.C0 = CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- local human2 = Instance.new("Weld",char)
- human2.Part0 = char.HumanoidRootPart
- human2.Part1 = char.Torso
- human2co = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- necc = CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- local rhandweld = Instance.new("Weld", char.Torso)
- rhandweld.Part0 = char.Torso
- rhandweld.Part1 = char["Right Arm"]
- rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
- local lhandweld = Instance.new("Weld", char.Torso)
- lhandweld.Part0 = char.Torso
- lhandweld.Part1 = char["Left Arm"]
- lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
- local llegweld = Instance.new("Weld", char.Torso)
- llegweld.Part0 = char.Torso
- llegweld.Part1 = char["Left Leg"]
- llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.new(0,-1,0)
- local rlegclone = char.Torso["Right Hip"]:Clone()
- local rlegweld = Instance.new("Weld", char.Torso)
- rlegweld.Part0 = char.Torso
- rlegweld.Part1 = char["Right Leg"]
- rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) * CFrame.new(0,-1,0)
- pose = "Standing"
- cananimate = true
- abletolongjump = false
- crouching = false
- longjumping = false
- walking = false
- local speed = 0
- char.Humanoid.Running:connect(function(s)
- speed = s
- end)
- coroutine.wrap(function()
- while true do
- wait()
- local ray = Ray.new(chara.Torso.Position, (chara.Torso.Position - Vector3.new(0,9999999,0)).unit * 300)
- local p, position = game.Workspace:FindPartOnRay(ray, char, true, false)
- local dis = (chara.Torso.Position - position).magnitude
- if dis > 3.8 and chara.Torso.Velocity.Y > 0 then
- pose = "Jumping"
- char.Humanoid.WalkSpeed = 16
- end
- if dis> 3.8 and chara.Torso.Velocity.Y < 0 then
- pose = "Falling"
- char.Humanoid.WalkSpeed = 16
- end
- if dis < 3.8 and speed == 0 then
- pose = "Standing"
- char.Humanoid.WalkSpeed = 16
- end
- if dis < 3.8 and speed > 0 then
- pose = "Walking"
- char.Humanoid.WalkSpeed = 16
- end
- if longjumping and crouching and walking then
- pose = "LongJump"
- char.Humanoid.WalkSpeed = 16
- end
- if crouching and dis < 3.8 and speed == 0 and not longjumping then
- pose = "CrouchIdle"
- char.Humanoid.WalkSpeed = 8
- end
- if crouching and dis < 3.8 and speed > 0 and not longjumping then
- pose = "CrouchWalk"
- char.Humanoid.WalkSpeed = 8
- end
- end
- end)()
- local Jump = Instance.new("Sound",char)
- Jump.SoundId = "rbxassetid://158309736"
- Jump.Volume = 4
- jumping = false
- sound = Jump
- stage = 1
- hum = char.Humanoid
- function onJump(val)
- jumping = val
- if jumping == true and stage > 1 and stage < 3 and not crouching then
- --print("Triple jump!")
- stage = 3
- char.Torso.Velocity = char.Torso.CFrame.upVector * 125
- sound:Play()
- wait(1)
- stage = 0
- elseif jumping == true and stage > 0 and stage < 2 and not crouching then
- --print("Double jump!")
- stage = 2
- char.Torso.Velocity = char.Torso.CFrame.upVector * 85
- sound:Play()
- elseif jumping == true and stage < 1 then
- --print("Normal jump!")
- stage = 1
- sound.Pitch = 1
- sound:Play()
- end
- end
- hum.Jumping:connect(onJump)
- -- Jump Timeout --
- function onFall(val)
- falling = val
- if val == false then --When player lands...
- wait(0.25) --Next jump times out after .2 seconds.
- if stage > 0 and falling == false then
- stage = 0 --Resets jumps.
- end
- end
- end
- hum.FreeFalling:connect(onFall)
- stomp = Instance.new("Sound",char)
- stomp.SoundId = "rbxassetid://140439666"
- stomp.Volume = 10
- -- Stomp
- char["Right Leg"].Touched:connect(function(part)
- local human = part.Parent:FindFirstChildOfClass("Humanoid")
- if human and human.Parent.Name ~= char.Name and part.Name == "Head" then
- human:Destroy()
- stomp:Play()
- char.Torso.Velocity = char.Torso.CFrame.upVector * 100
- char.Humanoid.Jump = true
- stage = 3
- pose = "Jumping"
- end
- end)
- char["Left Leg"].Touched:connect(function(part)
- local human = part.Parent:FindFirstChildOfClass("Humanoid")
- if human and human.Parent.Name ~= char.Name and part.Name == "Head" then
- human:Destroy()
- stomp:Play()
- char.Torso.Velocity = char.Torso.CFrame.upVector * 100
- char.Humanoid.Jump = true
- stage = 3
- pose = "Jumping"
- end
- end)
- local Jump3 = Instance.new("Sound",char)
- Jump3.SoundId = "rbxassetid://1555685807"
- Jump3.Volume = 10
- function crouch()
- if not crouching then
- abletolongjump = true
- crouching = true -- no anims yet but there will be soon
- end
- end
- function stopcrouching()
- if crouching then
- abletolongjump = false
- crouching = false
- end
- end
- function longjump()
- if not longjumping and abletolongjump and walking then
- Jump3:Play()
- char.Humanoid.Jump = true
- char.Torso.Velocity = char.Torso.CFrame.lookVector * 100
- char.Humanoid.JumpPower = 80
- longjumping = true
- wait(1)
- longjumping = false
- char.Humanoid.JumpPower = 50
- end
- end
- Mouse.KeyDown:connect(function(k)
- if string.byte(k) == 48 then
- crouch()
- end
- if k == "q" and crouching and abletolongjump then
- longjump()
- end
- end)
- Mouse.KeyUp:connect(function(k)
- if string.byte(k) == 48 then
- stopcrouching()
- end
- end)
- local health = Instance.new("ScreenGui",plr.PlayerGui)
- health.Name = "HealthGui"
- local text = Instance.new("TextLabel",health)
- text.Position = UDim2.new(-0.005, 0, 0.755, 0)
- text.Size = UDim2.new(0, 200, 0, 50)
- text.Text = char.Humanoid.Health .. "/" .. char.Humanoid.MaxHealth
- text.TextScaled = true
- text.BackgroundTransparency = 1
- text.TextColor3 = Color3.new(1,1,1)
- local Warning = Instance.new("TextLabel",health)
- Warning.Position = UDim2.new(-0.003, 0,0.618, 0)
- Warning.Size = UDim2.new(0, 200, 0, 50)
- Warning.BackgroundTransparency = 1
- Warning.TextScaled = true
- Warning.TextTransparency = 1
- Warning.Text = "WARNING! LOW HEALTH"
- Warning.TextColor3 = BrickColor.new("Really red").Color
- Warning.TextStrokeColor3 = BrickColor.new("Really red").Color
- char.Humanoid.Health = 50
- char.Humanoid.MaxHealth = 50
- ouch = Instance.new("Sound",char)
- ouch.SoundId = "rbxassetid://131358789"
- ouch.Volume = 10
- low = Instance.new("Sound",char)
- low.SoundId = "rbxassetid://1366726134"
- low.Volume = 10
- lowhealth = false
- coroutine.wrap(function()
- while true do
- wait()
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" and v.Name ~= "HumanoidRootPart" then
- v.BrickColor = BrickColor.new("Pastel brown")
- end
- end
- end
- end)()
- coroutine.wrap(function()
- while true do
- wait()
- text.Text = char.Humanoid.Health .. "/" .. char.Humanoid.MaxHealth
- if hum.Health < 10 then
- low:Play()
- lowhealth = true
- Warning.TextTransparency = 0
- end
- if hum.Health > 10 then
- lowhealth = false
- Warning.TextTransparency = 1
- end
- if hum.Health < 50 then
- ouch:Play()
- for i = 1,30 do
- wait()
- char.Head.face.Transparency = 1
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.Transparency = 1
- end
- end
- wait(0.05)
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.Transparency = 0
- end
- end
- char.HumanoidRootPart.Transparency = 1
- char.Head.face.Transparency = 0
- end
- char.Humanoid.Health = 50
- end
- end
- end)()
- while true do
- wait()
- if pose == "Standing" and cananimate then
- walking = false
- for i = 0,1 , 0.07 do
- lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i)
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.499999523, -2.00000048, -9.53674316e-07, 0.970465422, 0, -0.241240621, 0, 1, 0, 0.241240621, 0, 0.970465422),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.499999523, -2.00000048, 0, 0.825716197, -3.35415825e-06, -0.564085841, -0.00202200096, 0.999993622, -0.00296577741, 0.564082265, 0.00358947273, 0.825710893),i)
- human2.C0 = human2.C0:lerp(CFrame.new(0, 0, 0, 0.779511273, 0, 0.626388252, 0, 0.999997616, 0, -0.626388252, 0, 0.779511273):inverse(),i)
- neck.C0 = neck.C0:lerp(CFrame.new(0, 1.5, 0, 0.726146579, 0, 0.687539995, 0, 1, 0, -0.687539995, 0, 0.726146579),i)
- wait()
- end
- end
- if pose == "Walking" and cananimate then
- walking = true
- for i = 0,1 ,0.07 do
- lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.168842316, -0.374614239, 1, 0, 0, 0, 0.662306964, -0.74923259, 0, 0.74923259, 0.662307084),i)
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.12597847, 0.331827164, 1, 0, 0, 0, 0.748035073, 0.663659215, 0, -0.663659275, 0.748035014),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.67391682, -0.738807678, 0.99999994, 0, 0, 0, 0.673916757, -0.738807261, 0, 0.738807321, 0.673916817),i)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.67705727, 0.735931396, 1, 0, 0, 0, 0.677056909, 0.735930681, 0, -0.735930741, 0.677056968),i)
- human2.C0 = human2.C0:lerp(human2co,i)
- neck.C0 = neck.C0:lerp(necc,i)
- wait()
- end
- walking = true
- for i = 0,1 ,0.07 do
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.69855976, 0.715551376, 1, 0, 0, 0, 0.698559642, 0.715551734, 0, -0.715551794, 0.698559701),i)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.80723953, -0.590223312, 1, 0, 0, 0, 0.807239354, -0.590224087, 0, 0.590224147, 0.807239413),i)
- lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.216003418, 0.411518574, 1, 0, 0, 0, 0.567983389, 0.823040009, 0, -0.823040009, 0.567983389),i)
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.215018272, -0.41083622, 1, 0, 0, 0, 0.569954693, -0.821676135, 0, 0.821676135, 0.569954753),i)
- human2.C0 = human2.C0:lerp(human2co,i)
- neck.C0 = neck.C0:lerp(necc,i)
- wait()
- end
- walking = true
- end
- if pose == "Jumping" and cananimate and stage == 1 then
- walking = false
- for i = 0,1 , 0.07 do
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, -0.0720152855, 0.193100929, 1, 0, 0, 0, 0.896007597, 0.444038779, 0, -0.444038779, 0.896007597),i)
- lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.49999976, 0.95036602, -0.548690796, 1, 0, 0, 0, -0.866025984, -0.499998987, 0, 0.499998987, -0.866025984),i)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.98754525, -0.507376909, 1, 0, 0, 0, 0.878388762, -0.477946907, 0, 0.477946877, 0.878388762),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.91097617, 0.239589691, 1, 0, 0, 0, 0.93738246, 0.348301798, 0, -0.348301798, 0.93738246),i)
- human2.C0 = human2.C0:lerp(human2co,i)
- neck.C0 = neck.C0:lerp(necc,i)
- wait()
- end
- end
- if pose == "Jumping" and cananimate and stage == 2 then
- walking = false
- for i = 0,1 , 0.07 do
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.66472816, 0.166806221, 0, 0.840905726, -0.541181803, 0, 0.541181803, 0.840905726, 0, 0, 0, 1),i)
- lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.69600487, 0.110276461, 0, 0.871529698, 0.490342826, 0, -0.490342826, 0.871529698, 0, 0, 0, 1),i)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.3247503, -0.419755459, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i)
- human2.C0 = human2.C0:lerp(human2co,i)
- neck.C0 = neck.C0:lerp(CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 0.917574883, -0.397562951, 0, 0.397562951, 0.917574883),i)
- wait()
- end
- end
- if pose == "Jumping" and cananimate and stage == 3 then
- walking = false
- for i = 0,1 ,0.07 do
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.499996185, -0.302403927, -1.00209022, 0.998795688, 1.07394217e-05, 0.0490646139, 0.0144870952, 0.955350697, -0.295119137, -0.0468770824, 0.295474499, 0.954199851),i)
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.999998093, 0.401779056, -0.300704479, 0.995004237, 0.0998337567, 2.21675634e-07, -8.0173304e-05, 0.000801276532, -0.999999762, -0.0998337343, 0.995003879, 0.000805277436),i)
- lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.999984741, 0.403417826, -0.400689125, 0.978886008, -0.198669523, -0.0480909608, -0.0489091128, 0.000789985002, -0.99880302, 0.198469713, 0.98006618, -0.00894344598),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.499996185, -0.299546242, -1.00121045, 0.999991715, 1.10380352e-05, -3.05008143e-06, -1.13286078e-05, 0.955351293, -0.295472056, -2.51282472e-07, 0.295474589, 0.955343246),i)
- human2.C0 = human2.C0 * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0))
- neck.C0 = neck.C0:lerp(necc,i)
- wait()
- end
- end
- if pose == "Falling" and cananimate then
- walking = false
- for i = 0,1 , 0.07 do
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(2.00721169, 0.966965914, 0, -0.554754853, -0.832013845, 0, 0.832013845, -0.554754853, 0, 0, 0, 1),i)
- lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.87815094, 0.913155079, 0, -0.494452, 0.869204998, 0, -0.869204998, -0.494452, 0, 0, 0, 1),i)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i)
- human2.C0 = human2.C0:lerp(human2co,i)
- neck.C0 = neck.C0:lerp(CFrame.new(0, 1.50154519, -0.248991966, 1, 0, 0, 0, 0.852542579, 0.522657752, 0, -0.522657752, 0.852542579),i)
- wait()
- end
- end
- if pose == "LongJump" and cananimate then
- for i = 0,1 ,0.07 do
- lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.268796921, 0.378599167, 1, 0, 0, 0, 0.479244441, 0.877675295, 0, -0.877680123, 0.479247063),i)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.3865062, -0.938074112, 1, 0, 0, 0, 0.285262436, -0.958443761, 0, 0.958449006, 0.285263985),i)
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.49999988, 0.223083735, 0.169561386, 1, 0, 0, 0, 0.60511744, 0.796129346, 0, -0.796133697, 0.605120778),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.53550446, -0.961566925, 1, 0, 0, 0, 0.407492548, -0.913202584, 0, 0.913207591, 0.407494754),i)
- human2.C0 = human2.C0:lerp(human2co,i)
- neck.C0 = neck.C0:lerp(necc,i)
- wait()
- end
- end
- if pose == "CrouchIdle" and cananimate then
- walking = false
- for i = 0,1 ,0.07 do
- human2.C0 = human2.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.0382479317, -0.999268353, 0, 0.999266207, 0.0382480137):inverse(),i)
- lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.836666107, 1.21547508, 0.497126102, 0.782464266, -0.619657576, 0.0614301562, -0.106479198, -0.0359476209, 0.993664801, -0.61352396, -0.784048676, -0.0941083729),i)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.500001907, -0.912134171, -1.33790898, 0.999999821, 4.32133675e-07, 2.32458115e-06, 2.38418579e-06, 0.0123845953, -0.999923229, -4.60073352e-07, 0.999923527, 0.0123845842),i)
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.06795311, 1.25440025, 0.391194582, -0.887933075, 0.459972352, -1.25467777e-05, -0.0143302083, -0.0276902169, -0.999513805, -0.459749311, -0.887501359, 0.0311785322),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.499998093, -0.951980591, -1.32859886, 0.999999762, 3.56696546e-07, -6.85453415e-07, -6.85453415e-07, 0.0145149324, -0.999894559, -3.42726707e-07, 0.999894857, 0.0145149129),i)
- neck.C0 = neck.C0:lerp(necc,i)
- wait()
- end
- end
- if pose == "CrouchWalk" and cananimate then
- walking = true
- for i = 0,1, 0.07 do
- human2.C0 = human2.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.0382479317, -0.999268353, 0, 0.999266207, 0.0382480137):inverse(),i)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.08789825, -1.2466166, 0.999999821, -6.70552254e-07, 2.29477882e-06, 2.38418579e-06, 0.460938156, -0.887432218, -4.60073352e-07, 0.887432396, 0.460938305),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.499999046, 0.152124405, -1.14450228, 0.999999881, -5.96046448e-07, -1.16229057e-06, -1.22189522e-06, -0.641044497, -0.76750356, -3.22237611e-07, 0.767503738, -0.641044617),i)
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.06795311, 1.25440025, 0.391194582, -0.887933075, 0.459972352, -1.25467777e-05, -0.0143302083, -0.0276902169, -0.999513805, -0.459749311, -0.887501359, 0.0311785322),i)
- lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.836666107, 1.21547508, 0.497126102, 0.782464266, -0.619657576, 0.0614301562, -0.106479198, -0.0359476209, 0.993664801, -0.61352396, -0.784048676, -0.0941083729),i)
- neck.C0 = neck.C0:lerp(necc,i)
- wait()
- end
- for i = 0,1, 0.07 do
- human2.C0 = human2.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.0382479317, -0.999268353, 0, 0.999266207, 0.0382480137):inverse(),i)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.500027657, -0.210391998, -1.34505367, 0.999999762, 1.38282776e-05, 2.73883343e-05, 3.06665897e-05, -0.405213743, -0.914221942, -1.54413283e-06, 0.914222181, -0.405213833),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.500020981, -1.04758263, -1.2475245, 0.999999821, -2.4586916e-05, 5.15282154e-05, 5.70416451e-05, 0.470286787, -0.882513642, -2.55182385e-06, 0.882513881, 0.470286816),i)
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.06795311, 1.25440025, 0.391194582, -0.887933075, 0.459972352, -1.25467777e-05, -0.0143302083, -0.0276902169, -0.999513805, -0.459749311, -0.887501359, 0.0311785322),i)
- lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.836666107, 1.21547508, 0.497126102, 0.782464266, -0.619657576, 0.0614301562, -0.106479198, -0.0359476209, 0.993664801, -0.61352396, -0.784048676, -0.0941083729),i)
- neck.C0 = neck.C0:lerp(necc,i)
- wait()
- end
- end
- end
Add Comment
Please, Sign In to add comment