SHOW:
|
|
- or go back to the newest paste.
| 1 | -- by Theamazingnater | |
| 2 | -- a | |
| 3 | wait(1) | |
| 4 | plr = game.Players.LocalPlayer | |
| 5 | char = plr.Character | |
| 6 | ||
| 7 | local player = game.Players.LocalPlayer | |
| 8 | ||
| 9 | ||
| 10 | local chara = workspace:WaitForChild(player.Name) | |
| 11 | local human = chara.Humanoid | |
| 12 | local neck = Instance.new("Weld",char)
| |
| 13 | neck.Part0 = char.Torso | |
| 14 | neck.Part1 = char.Head | |
| 15 | neck.C0 = CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 16 | local human2 = Instance.new("Weld",char)
| |
| 17 | human2.Part0 = char.HumanoidRootPart | |
| 18 | human2.Part1 = char.Torso | |
| 19 | human2co = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 20 | necc = CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 21 | local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone() | |
| 22 | local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
| |
| 23 | rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
| 24 | rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"] | |
| 25 | rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1) | |
| 26 | local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone() | |
| 27 | local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
| |
| 28 | lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
| 29 | lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"] | |
| 30 | lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1) | |
| 31 | local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
| |
| 32 | llegweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
| 33 | llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"] | |
| 34 | llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.new(0,-1,0) | |
| 35 | local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone() | |
| 36 | game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove() | |
| 37 | local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
| |
| 38 | rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
| 39 | rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"] | |
| 40 | rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) * CFrame.new(0,-1,0) | |
| 41 | pose = "Standing" | |
| 42 | ||
| 43 | cananimate = true | |
| 44 | abletolongjump = false | |
| 45 | crouching = false | |
| 46 | longjumping = false | |
| 47 | walking = false | |
| 48 | ||
| 49 | local speed = 0 | |
| 50 | ||
| 51 | char.Humanoid.Running:connect(function(s) | |
| 52 | speed = s | |
| 53 | end) | |
| 54 | ||
| 55 | local update = game:GetService("RunService")
| |
| 56 | update.RenderStepped:connect(function() | |
| 57 | local ray = Ray.new(chara.Torso.Position, (chara.Torso.Position - Vector3.new(0,9999999,0)).unit * 300) | |
| 58 | local p, position = game.Workspace:FindPartOnRay(ray, char, true, false) | |
| 59 | local dis = (chara.Torso.Position - position).magnitude | |
| 60 | if dis > 3.8 and chara.Torso.Velocity.Y > 0 then | |
| 61 | pose = "Jumping" | |
| 62 | char.Humanoid.WalkSpeed = 16 | |
| 63 | end | |
| 64 | if dis> 3.8 and chara.Torso.Velocity.Y < 0 then | |
| 65 | pose = "Falling" | |
| 66 | char.Humanoid.WalkSpeed = 16 | |
| 67 | end | |
| 68 | if dis < 3.8 and speed == 0 then | |
| 69 | pose = "Standing" | |
| 70 | char.Humanoid.WalkSpeed = 16 | |
| 71 | end | |
| 72 | if dis < 3.8 and speed > 0 then | |
| 73 | pose = "Walking" | |
| 74 | char.Humanoid.WalkSpeed = 16 | |
| 75 | end | |
| 76 | if longjumping and crouching and walking then | |
| 77 | pose = "LongJump" | |
| 78 | char.Humanoid.WalkSpeed = 16 | |
| 79 | end | |
| 80 | if crouching and dis < 3.8 and speed == 0 and not longjumping then | |
| 81 | pose = "CrouchIdle" | |
| 82 | char.Humanoid.WalkSpeed = 8 | |
| 83 | end | |
| 84 | if crouching and dis < 3.8 and speed > 0 and not longjumping then | |
| 85 | pose = "CrouchWalk" | |
| 86 | char.Humanoid.WalkSpeed = 8 | |
| 87 | end | |
| 88 | end) | |
| 89 | local Jump = Instance.new("Sound",char)
| |
| 90 | Jump.SoundId = "rbxassetid://158309736" | |
| 91 | Jump.Volume = 4 | |
| 92 | jumping = false | |
| 93 | sound = Jump | |
| 94 | stage = 1 | |
| 95 | hum = char.Humanoid | |
| 96 | function onJump(val) | |
| 97 | jumping = val | |
| 98 | ||
| 99 | if jumping == true and stage > 1 and stage < 3 and not crouching then | |
| 100 | --print("Triple jump!")
| |
| 101 | stage = 3 | |
| 102 | char.Torso.Velocity = char.Torso.Velocity + Vector3.new(0, 125, 0) | |
| 103 | ||
| 104 | sound:Play() | |
| 105 | wait(1) | |
| 106 | stage = 0 | |
| 107 | elseif jumping == true and stage > 0 and stage < 2 and not crouching then | |
| 108 | --print("Double jump!")
| |
| 109 | stage = 2 | |
| 110 | char.Torso.Velocity = char.Torso.Velocity + Vector3.new(0, 85, 0) | |
| 111 | ||
| 112 | ||
| 113 | sound:Play() | |
| 114 | elseif jumping == true and stage < 1 then | |
| 115 | --print("Normal jump!")
| |
| 116 | stage = 1 | |
| 117 | ||
| 118 | sound.Pitch = 1 | |
| 119 | sound:Play() | |
| 120 | end | |
| 121 | end | |
| 122 | hum.Jumping:connect(onJump) | |
| 123 | ||
| 124 | ||
| 125 | -- Jump Timeout -- | |
| 126 | function onFall(val) | |
| 127 | falling = val | |
| 128 | if val == false then --When player lands... | |
| 129 | wait(0.25) --Next jump times out after .2 seconds. | |
| 130 | if stage > 0 and falling == false then | |
| 131 | stage = 0 --Resets jumps. | |
| 132 | end | |
| 133 | end | |
| 134 | end | |
| 135 | hum.FreeFalling:connect(onFall) | |
| 136 | stomp = Instance.new("Sound",char)
| |
| 137 | stomp.SoundId = "rbxassetid://140439666" | |
| 138 | stomp.Volume = 10 | |
| 139 | ||
| 140 | -- Stomp | |
| 141 | char["Right Leg"].Touched:connect(function(part) | |
| 142 | local human = part.Parent:FindFirstChildOfClass("Humanoid")
| |
| 143 | if human and human.Parent.Name ~= char.Name and part.Name == "Head" then | |
| 144 | human:Destroy() | |
| 145 | stomp:Play() | |
| 146 | char.Torso.Velocity = char.Torso.CFrame.upVector * 100 | |
| 147 | char.Humanoid.Jump = true | |
| 148 | stage = 3 | |
| 149 | pose = "Jumping" | |
| 150 | end | |
| 151 | end) | |
| 152 | ||
| 153 | ||
| 154 | char["Left Leg"].Touched:connect(function(part) | |
| 155 | local human = part.Parent:FindFirstChildOfClass("Humanoid")
| |
| 156 | if human and human.Parent.Name ~= char.Name and part.Name == "Head" then | |
| 157 | human:Destroy() | |
| 158 | stomp:Play() | |
| 159 | char.Torso.Velocity = char.Torso.CFrame.upVector * 100 | |
| 160 | char.Humanoid.Jump = true | |
| 161 | stage = 3 | |
| 162 | pose = "Jumping" | |
| 163 | end | |
| 164 | end) | |
| 165 | ||
| 166 | local Jump3 = Instance.new("Sound",char)
| |
| 167 | Jump3.SoundId = "rbxassetid://1555685807" | |
| 168 | Jump3.Volume = 10 | |
| 169 | function crouch() | |
| 170 | if not crouching then | |
| 171 | abletolongjump = true | |
| 172 | crouching = true -- no anims yet but there will be soon | |
| 173 | end | |
| 174 | end | |
| 175 | ||
| 176 | function stopcrouching() | |
| 177 | if crouching then | |
| 178 | abletolongjump = false | |
| 179 | crouching = false | |
| 180 | end | |
| 181 | end | |
| 182 | ||
| 183 | function longjump() | |
| 184 | if not longjumping and abletolongjump and walking then | |
| 185 | Jump3:Play() | |
| 186 | char.Humanoid.Jump = true | |
| 187 | char.Torso.Velocity = char.Torso.CFrame.lookVector * 100 | |
| 188 | char.Humanoid.JumpPower = 80 | |
| 189 | longjumping = true | |
| 190 | wait(1) | |
| 191 | longjumping = false | |
| 192 | char.Humanoid.JumpPower = 50 | |
| 193 | end | |
| 194 | end | |
| 195 | ||
| 196 | mouse = plr:GetMouse() | |
| 197 | ||
| 198 | ||
| 199 | mouse.KeyDown:connect(function(k) | |
| 200 | if string.byte(k) == 48 then | |
| 201 | crouch() | |
| 202 | end | |
| 203 | if k == "q" and crouching and abletolongjump then | |
| 204 | longjump() | |
| 205 | end | |
| 206 | end) | |
| 207 | ||
| 208 | mouse.KeyUp:connect(function(k) | |
| 209 | if string.byte(k) == 48 then | |
| 210 | stopcrouching() | |
| 211 | end | |
| 212 | end) | |
| 213 | ||
| 214 | local cap = Instance.new("Part",char)
| |
| 215 | cap.CanCollide = false | |
| 216 | local mesh = Instance.new("FileMesh",cap)
| |
| 217 | mesh.MeshId = "rbxassetid://1401768294" | |
| 218 | mesh.TextureId = "rbxassetid://1401768475" | |
| 219 | mesh.Scale = Vector3.new(0.02,0.02,0.02) | |
| 220 | local weld = Instance.new("Weld",cap)
| |
| 221 | weld.Part0 = cap | |
| 222 | weld.Part1 = char.Head | |
| 223 | weld.C0 = CFrame.new(0.000736236572, -0.606394291, 0.0590667725, 1, 0, 0, 0, 0.999990702, 0, 0, 0, 1) | |
| 224 | ||
| 225 | ||
| 226 | ||
| 227 | for i,v in pairs(char:GetChildren()) do | |
| 228 | if v.ClassName == "Accessory" or v.ClassName == "Shirt" or v.ClassName == "Pants" then | |
| 229 | v:Destroy() | |
| 230 | end | |
| 231 | end | |
| 232 | local shirt = Instance.new("Shirt",char)
| |
| 233 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=329656762" | |
| 234 | local pants = Instance.new("Pants",char)
| |
| 235 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=329658414" | |
| 236 | char.Head.face.Texture = "http://www.roblox.com/asset/?id=851872681" | |
| 237 | ||
| 238 | local music = Instance.new("Sound",char)
| |
| 239 | music.SoundId = "rbxassetid://427794811" | |
| 240 | music.Volume = 1 | |
| 241 | music.Looped = true | |
| 242 | music:Play() | |
| 243 | ||
| 244 | local health = Instance.new("ScreenGui",plr.PlayerGui)
| |
| 245 | health.Name = "HealthGui" | |
| 246 | local text = Instance.new("TextLabel",health)
| |
| 247 | text.Position = UDim2.new(-0.005, 0, 0.755, 0) | |
| 248 | text.Size = UDim2.new(0, 200, 0, 50) | |
| 249 | text.Text = char.Humanoid.Health .. "/" .. char.Humanoid.MaxHealth | |
| 250 | text.TextScaled = true | |
| 251 | text.BackgroundTransparency = 1 | |
| 252 | text.TextColor3 = Color3.new(1,1,1) | |
| 253 | local Warning = Instance.new("TextLabel",health)
| |
| 254 | Warning.Position = UDim2.new(-0.003, 0,0.618, 0) | |
| 255 | Warning.Size = UDim2.new(0, 200, 0, 50) | |
| 256 | Warning.BackgroundTransparency = 1 | |
| 257 | Warning.TextScaled = true | |
| 258 | Warning.TextTransparency = 1 | |
| 259 | Warning.Text = "WARNING! LOW HEALTH" | |
| 260 | Warning.TextColor3 = BrickColor.new("Really red").Color
| |
| 261 | Warning.TextStrokeColor3 = BrickColor.new("Really red").Color
| |
| 262 | char.Humanoid.Health = 50 | |
| 263 | char.Humanoid.MaxHealth = 50 | |
| 264 | ouch = Instance.new("Sound",char)
| |
| 265 | ouch.SoundId = "rbxassetid://131358789" | |
| 266 | ouch.Volume = 10 | |
| 267 | low = Instance.new("Sound",char)
| |
| 268 | low.SoundId = "rbxassetid://1366726134" | |
| 269 | low.Volume = 10 | |
| 270 | lowhealth = false | |
| 271 | game:GetService("RunService").RenderStepped:connect(function()
| |
| 272 | for i,v in pairs(char:GetChildren()) do | |
| 273 | if v.ClassName == "Part" and v.Name ~= "HumanoidRootPart" then | |
| 274 | v.BrickColor = BrickColor.new("Pastel brown")
| |
| 275 | end | |
| 276 | end | |
| 277 | end) | |
| 278 | coroutine.wrap(function() | |
| 279 | while true do | |
| 280 | wait() | |
| 281 | text.Text = char.Humanoid.Health .. "/" .. char.Humanoid.MaxHealth | |
| 282 | if hum.Health < 10 then | |
| 283 | low:Play() | |
| 284 | lowhealth = true | |
| 285 | Warning.TextTransparency = 0 | |
| 286 | end | |
| 287 | if hum.Health > 10 then | |
| 288 | lowhealth = false | |
| 289 | Warning.TextTransparency = 1 | |
| 290 | end | |
| 291 | if hum.Health < 50 then | |
| 292 | ouch:Play() | |
| 293 | for i = 1,30 do | |
| 294 | wait() | |
| 295 | char.Head.face.Transparency = 1 | |
| 296 | for i,v in pairs(char:GetChildren()) do | |
| 297 | if v.ClassName == "Part" then | |
| 298 | v.Transparency = 1 | |
| 299 | end | |
| 300 | end | |
| 301 | wait(0.05) | |
| 302 | for i,v in pairs(char:GetChildren()) do | |
| 303 | if v.ClassName == "Part" then | |
| 304 | v.Transparency = 0 | |
| 305 | end | |
| 306 | end | |
| 307 | char.HumanoidRootPart.Transparency = 1 | |
| 308 | char.Head.face.Transparency = 0 | |
| 309 | end | |
| 310 | char.Humanoid.Health = 50 | |
| 311 | end | |
| 312 | end | |
| 313 | end)() | |
| 314 | ||
| 315 | while true do | |
| 316 | wait() | |
| 317 | if pose == "Standing" and cananimate then | |
| 318 | walking = false | |
| 319 | for i = 0,1 , 0.05 do | |
| 320 | 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) | |
| 321 | 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) | |
| 322 | 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) | |
| 323 | 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) | |
| 324 | 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) | |
| 325 | 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) | |
| 326 | update.RenderStepped:wait() | |
| 327 | end | |
| 328 | end | |
| 329 | if pose == "Walking" and cananimate then | |
| 330 | walking = true | |
| 331 | for i = 0,1 ,0.05 do | |
| 332 | 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) | |
| 333 | 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) | |
| 334 | 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) | |
| 335 | 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) | |
| 336 | human2.C0 = human2.C0:lerp(human2co,i) | |
| 337 | neck.C0 = neck.C0:lerp(necc,i) | |
| 338 | game:GetService("RunService").RenderStepped:wait()
| |
| 339 | end | |
| 340 | walking = true | |
| 341 | for i = 0,1 ,0.05 do | |
| 342 | 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) | |
| 343 | 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) | |
| 344 | 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) | |
| 345 | 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) | |
| 346 | human2.C0 = human2.C0:lerp(human2co,i) | |
| 347 | neck.C0 = neck.C0:lerp(necc,i) | |
| 348 | game:GetService("RunService").RenderStepped:wait()
| |
| 349 | end | |
| 350 | walking = true | |
| 351 | end | |
| 352 | if pose == "Jumping" and cananimate and stage == 1 then | |
| 353 | walking = false | |
| 354 | for i = 0,1 , 0.03 do | |
| 355 | 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) | |
| 356 | 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) | |
| 357 | 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) | |
| 358 | 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) | |
| 359 | human2.C0 = human2.C0:lerp(human2co,i) | |
| 360 | neck.C0 = neck.C0:lerp(necc,i) | |
| 361 | update.RenderStepped:wait() | |
| 362 | end | |
| 363 | end | |
| 364 | if pose == "Jumping" and cananimate and stage == 2 then | |
| 365 | walking = false | |
| 366 | for i = 0,1 , 0.03 do | |
| 367 | 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) | |
| 368 | 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) | |
| 369 | llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.3247503, -0.419755459, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i) | |
| 370 | rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i) | |
| 371 | human2.C0 = human2.C0:lerp(human2co,i) | |
| 372 | 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) | |
| 373 | update.RenderStepped:wait() | |
| 374 | end | |
| 375 | end | |
| 376 | if pose == "Jumping" and cananimate and stage == 3 then | |
| 377 | walking = false | |
| 378 | for i = 0,1 ,0.03 do | |
| 379 | 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) | |
| 380 | 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) | |
| 381 | 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) | |
| 382 | 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) | |
| 383 | human2.C0 = human2.C0 * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)) | |
| 384 | neck.C0 = neck.C0:lerp(necc,i) | |
| 385 | game:GetService("RunService").RenderStepped:wait()
| |
| 386 | end | |
| 387 | end | |
| 388 | if pose == "Falling" and cananimate then | |
| 389 | walking = false | |
| 390 | for i = 0,1 , 0.05 do | |
| 391 | 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) | |
| 392 | 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) | |
| 393 | llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i) | |
| 394 | rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i) | |
| 395 | human2.C0 = human2.C0:lerp(human2co,i) | |
| 396 | 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) | |
| 397 | update.RenderStepped:wait() | |
| 398 | end | |
| 399 | end | |
| 400 | if pose == "LongJump" and cananimate then | |
| 401 | for i = 0,1 ,0.05 do | |
| 402 | 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) | |
| 403 | 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) | |
| 404 | 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) | |
| 405 | 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) | |
| 406 | human2.C0 = human2.C0:lerp(human2co,i) | |
| 407 | neck.C0 = neck.C0:lerp(necc,i) | |
| 408 | update.RenderStepped:wait() | |
| 409 | end | |
| 410 | end | |
| 411 | if pose == "CrouchIdle" and cananimate then | |
| 412 | walking = false | |
| 413 | for i = 0,1 ,0.05 do | |
| 414 | 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) | |
| 415 | 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) | |
| 416 | 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) | |
| 417 | 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) | |
| 418 | 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) | |
| 419 | neck.C0 = neck.C0:lerp(necc,i) | |
| 420 | update.RenderStepped:wait() | |
| 421 | end | |
| 422 | end | |
| 423 | if pose == "CrouchWalk" and cananimate then | |
| 424 | walking = true | |
| 425 | for i = 0,1, 0.05 do | |
| 426 | 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) | |
| 427 | 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) | |
| 428 | 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) | |
| 429 | 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) | |
| 430 | 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) | |
| 431 | neck.C0 = neck.C0:lerp(necc,i) | |
| 432 | update.RenderStepped:wait() | |
| 433 | end | |
| 434 | for i = 0,1, 0.05 do | |
| 435 | 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) | |
| 436 | 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) | |
| 437 | 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) | |
| 438 | 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) | |
| 439 | 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) | |
| 440 | neck.C0 = neck.C0:lerp(necc,i) | |
| 441 | update.RenderStepped:wait() | |
| 442 | end | |
| 443 | end | |
| 444 | end |