Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- i was bored
- -- by Theamazingnater
- plr = game.Players.LocalPlayer
- repeat wait() until plr.Character
- char = plr.Character
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.Transparency = 1
- end
- end
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Accessory" then
- v.Handle.Transparency = 1
- end
- end
- char.Torso.Transparency = 0
- char["Right Leg"].Transparency = 0
- char["Left Leg"].Transparency = 0
- char.Head.face.Transparency = 1
- local block = Instance.new("BlockMesh",char.Torso)
- block.Offset = Vector3.new(0, -0.5, 0)
- block.Scale = Vector3.new(1.4, 1.4, 2.8)
- local block2 = Instance.new("BlockMesh",char["Right Leg"])
- block2.Offset = Vector3.new(0.15, -0.5, 0)
- block2.Scale = Vector3.new(1.2, 0.5, 2)
- local block3 = Instance.new("BlockMesh",char["Left Leg"])
- block3.Offset = Vector3.new(-0.15, -0.5, 0)
- block3.Scale = Vector3.new(1.2, 0.5, 2)
- char["Right Leg"].BrickColor = BrickColor.new("Reddish brown")
- char["Left Leg"].BrickColor = BrickColor.new("Reddish brown")
- char.Torso.BrickColor = BrickColor.new("Dark orange")
- local decal = Instance.new("Decal",char.Torso)
- decal.Texture = "http://www.roblox.com/asset/?id=29336734"
- decal.Face = "Front"
- stomp = Instance.new("Sound",char)
- stomp.SoundId = "rbxassetid://140439666"
- stomp.Volume = 10
- running = false
- char.Head.Touched:connect(function(p)
- local human = p.Parent:FindFirstChildOfClass("Humanoid")
- if human and human.Parent.Name ~= char.Name and p.Name ~= "Head" and not running then
- block.Scale = Vector3.new(1.4, 0.35, 2.8)
- block.Offset = Vector3.new(0, -1.55, 0)
- stomp:Play()
- wait(1)
- char.Humanoid.Health = 0
- end
- end)
- char.Torso.Touched:connect(function(p)
- local human = p.Parent:FindFirstChildOfClass("Humanoid")
- if human and human.Parent.Name ~= char.Name then
- human.Health = 0
- end
- end)
- 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 rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
- local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
- rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
- rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
- rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
- local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
- local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
- lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
- lhandweld.Part1 = game.Players.LocalPlayer.Character["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", game.Players.LocalPlayer.Character.Torso)
- llegweld.Part0 = game.Players.LocalPlayer.Character.Torso
- llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"]
- llegweld.C0 = CFrame.new(-0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1)
- local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
- game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove()
- local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
- rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso
- rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"]
- rlegweld.C0 = CFrame.new(0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1)
- chara = char
- cananimate = true
- pose = "Standing"
- local speed = 0
- char.Humanoid.Running:connect(function(s)
- speed = s
- end)
- local update = game:GetService("RunService")
- update.RenderStepped:connect(function()
- 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"
- end
- if dis> 3.8 and chara.Torso.Velocity.Y < 0 then
- pose = "Falling"
- end
- if dis < 3.8 and speed == 0 then
- pose = "Standing"
- end
- if dis < 3.8 and speed > 0 then
- pose = "Walking"
- end
- if running and dis < 3.8 and speed > 0 then
- pose = "Running"
- end
- end)
- canuse = true
- function sprint()
- if canuse then
- canuse = false
- running = true
- char.Humanoid.WalkSpeed = 30
- wait(3)
- running = false
- char.Humanoid.WalkSpeed = 16
- canuse = true
- end
- end
- mouse = plr:GetMouse()
- mouse.KeyDown:connect(function(k)
- if k == "e" then
- sprint()
- end
- end)
- coroutine.wrap(function()
- while true do
- wait()
- char["Right Leg"].BrickColor = BrickColor.new("Reddish brown")
- char["Left Leg"].BrickColor = BrickColor.new("Reddish brown")
- char.Torso.BrickColor = BrickColor.new("Dark orange")
- end
- end)()
- while true do
- wait()
- if pose == "Standing" and cananimate then
- walking = false
- for i = 0,1 , 0.05 do
- lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 2.38418579e-07, 0, 0.901208401, -0.433386177, 0, 0.433385074, 0.901205897, 0, 0, 0, 1),i)
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.58996058, -0.0167350769, 9.53674316e-07, 0.933032632, 0.359789908, 0, -0.359790921, 0.933025062, 0, 0, 0, 1),i)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
- human2.C0 = human2.C0:lerp(human2co,i)
- neck.C0 = neck.C0:lerp(necc,i)
- update.RenderStepped:wait()
- end
- end
- if pose == "Walking" and cananimate then
- walking = true
- for i = 0,1 ,0.05 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)
- game:GetService("RunService").RenderStepped:wait()
- end
- walking = true
- for i = 0,1 ,0.05 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)
- game:GetService("RunService").RenderStepped:wait()
- end
- walking = true
- end
- if pose == "Running" and cananimate then
- walking = true
- for i = 0,1 ,0.05 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(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.906151652, -0.422950864, 0, 0.422950327, 0.906152725):inverse(),i)
- neck.C0 = neck.C0:lerp(necc,i)
- game:GetService("RunService").RenderStepped:wait()
- end
- walking = true
- for i = 0,1 ,0.05 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(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.906151652, -0.422950864, 0, 0.422950327, 0.906152725):inverse(),i)
- neck.C0 = neck.C0:lerp(necc,i)
- game:GetService("RunService").RenderStepped:wait()
- end
- walking = true
- end
- if pose == "Jumping" and cananimate then
- walking = false
- for i = 0,1 , 0.05 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)
- update.RenderStepped:wait()
- end
- end
- if pose == "Falling" and cananimate then
- walking = false
- for i = 0,1 , 0.05 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)
- update.RenderStepped:wait()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement