Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local p = game.Players.LocalPlayer
- local char = p.Character
- local mouse = p:GetMouse()
- local larm = char["Left Arm"]
- local rarm = char["Right Arm"]
- local lleg = char["Left Leg"]
- local rleg = char["Right Leg"]
- local hed = char.Head
- local torso = char.Torso
- rig = char.Torso
- local hum = char.Humanoid
- local cam = game.Workspace.CurrentCamera
- local root = char.HumanoidRootPart
- local deb = false
- local shot = 0
- local l = game:GetService("Lighting")
- local rs = game:GetService("RunService").RenderStepped
- local stanceToggle = "Normal"
- local rad = math.rad
- local GroundShake = false
- local GroundShake2 = false
- math.randomseed(os.time())
- hum.WalkSpeed = 5
- char.Health:Destroy()
- hum.MaxHealth = math.huge
- wait(0.1)
- hum.Health = math.huge
- repeat wait() until game.Players.LocalPlayer
- local Mouse = game.Players.LocalPlayer:GetMouse()
- local Plr = game.Players.LocalPlayer
- Mouse.KeyDown:connect(function(KeyDown)
- if KeyDown == "0" then
- Plr.Character.Humanoid.WalkSpeed = 25
- end
- end)
- Mouse.KeyUp:connect(function(KeyUp)
- if KeyUp == "0" then
- Plr.Character.Humanoid.WalkSpeed = 5
- end
- end)
- Face = 'rbxassetid://171964462'
- local face=hed:FindFirstChild'face'
- face.Texture = Face
- face=Instance.new("Decal",hed)
- face.Face="Front"
- face.Texture="rbxassetid://171964462"
- p:ClearCharacterAppearance()
- wait(0.1)
- p.Character.Head.BrickColor = BrickColor.new("Really black")
- p.Character.Torso.BrickColor = BrickColor.new("Really black")
- p.Character["Right Arm"].BrickColor = BrickColor.new("Really black")
- p.Character["Right Leg"].BrickColor = BrickColor.new("Really black")
- p.Character["Left Leg"].BrickColor = BrickColor.new("Really black")
- p.Character["Left Arm"].BrickColor = BrickColor.new("Really black")
- p.Character.Head.Material = "Granite"
- p.Character.Torso.Material = "Granite"
- p.Character["Right Arm"].Material = "Granite"
- p.Character["Right Leg"].Material = "Granite"
- p.Character["Left Leg"].Material = "Granite"
- p.Character["Left Arm"].Material = "Granite"
- larm1 = Instance.new("Part",char)
- larm1.CanCollide = false
- larm1.Transparency = 0.5
- larm1.BrickColor = BrickColor.new("White")
- larm1.Size = Vector3.new(1.1,2.1,1.1)
- larm1.Position = Vector3.new(999,999,999)
- larm1.Material = "SmoothPlastic"
- larmhold = Instance.new("Weld",char)
- larmhold.Part0 = larm
- larmhold.Part1 = larm1
- larmhold.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- rarm1 = Instance.new("Part",char)
- rarm1.Transparency = 0.5
- rarm1.CanCollide = false
- rarm1.BrickColor = BrickColor.new("White")
- rarm1.Size = Vector3.new(1.1,2.1,1.1)
- rarm1.Position = Vector3.new(999,999,999)
- rarm1.Material = "SmoothPlastic"
- rarmhold = Instance.new("Weld",char)
- rarmhold.Part0 = rarm
- rarmhold.Part1 = rarm1
- rarmhold.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- torso1 = Instance.new("Part",char)
- torso1.Transparency = 0.5
- torso1.BrickColor = BrickColor.new("White")
- torso1.Size = Vector3.new(2.1,2.1,1.1)
- torso1.CanCollide = false
- torso1.Position = Vector3.new(999,999,999)
- torso1.Material = "SmoothPlastic"
- torsohold = Instance.new("Weld",char)
- torsohold.Part0 = torso
- torsohold.Part1 = torso1
- torsohold.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- lleg1 = Instance.new("Part",char)
- lleg1.Transparency = 0.5
- lleg1.BrickColor = BrickColor.new("White")
- lleg1.Size = Vector3.new(1.1,2.1,1.1)
- lleg1.Position = Vector3.new(999,999,999)
- lleg1.Material = "SmoothPlastic"
- lleg1.CanCollide = false
- lleghold = Instance.new("Weld",char)
- lleghold.Part0 = lleg
- lleghold.Part1 = lleg1
- lleghold.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- rleg1 = Instance.new("Part",char)
- rleg1.Transparency = 0.5
- rleg1.BrickColor = BrickColor.new("White")
- rleg1.CanCollide = false
- rleg1.Size = Vector3.new(1.1,2.1,1.1)
- rleg1.Position = Vector3.new(999,999,999)
- rleg1.Material = "SmoothPlastic"
- rleghold = Instance.new("Weld",char)
- rleghold.Part0 = rleg
- rleghold.Part1 = rleg1
- rleghold.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- rhed1 = Instance.new("Part",char)
- rhed1.Transparency = 0.5
- rhed1.BrickColor = BrickColor.new("White")
- rhed1.Size = Vector3.new(2.3,1.6,1.6)
- rhed1.Position = Vector3.new(999,999,999)
- rhed1.Material = "SmoothPlastic"
- rhed1.CanCollide = false
- rhedhold = Instance.new("Weld",char)
- rhedhold.Part0 = hed
- rhedhold.Part1 = rhed1
- rhedhold.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- rhedmesh1 = Instance.new("SpecialMesh",rhed1)
- rhedmesh1.MeshType = "Head"
- rhedmesh1.Scale = Vector3.new(1,1,1)
- local animpose = "Idle"
- local lastanimpose = "Idle"
- local sine = 0
- local change = 1
- local val = 0
- local ffing = false
- x = Instance.new("Sound", char)
- x.SoundId = "http://www.roblox.com/asset/?id=198360408"
- x.Looped = true
- x.Volume = 30
- x.Pitch = 1
- local footsteps = false
- game:GetService("RunService").RenderStepped:connect(function()
- if char.Humanoid.Jump == true then
- jump = true
- else
- jump = false
- end
- char.Humanoid.FreeFalling:connect(function(f)
- if f then
- ffing = true
- else
- ffing = false
- end
- end)
- sine = sine + change
- if jumpn == true then
- animpose = "Jumping"
- elseif ffing == true then
- animpose = "Freefalling"
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
- animpose = "Idle"
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
- animpose = "Walking"
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
- animpose = "Running"
- end
- if animpose ~= lastanimpose then
- sine = 0
- if Debounces.NoIdl == false then
- if animpose == "Idle" then
- for i = 1, 2 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2)
- end
- elseif animpose == "Walking" then
- for i = 1, 2 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(0), math.rad(-10), math.rad(0)), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, .9, 0)*CFrame.Angles(0, math.rad(1), math.rad(-10)), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(-8), math.rad(0), math.rad(0)),0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-4), 0, math.rad(0)), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
- end
- elseif animpose == "Running" then
- for i = 1, 2 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 0.9, .5) * CFrame.Angles(math.rad(-0), math.rad(-40), math.rad(0)), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 1.2, 0-1*math.cos(sine/4)/2)*CFrame.Angles(math.rad(50-80*math.cos(sine/8)/2), math.rad(0), math.rad(0-70*math.cos(sine/8)/2)), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(6+8*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+4*math.cos(sine/4)/2), 0, math.rad(0)), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3+0.44*math.cos(sine/8)/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4)
- end
- wait()
- end
- else
- end
- end
- lastanimpose = animpose
- if Debounces.NoIdl == false then
- if animpose == "Idle" then
- if stanceToggle == "Normal" then
- change = 0.5
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(88+2*math.cos(sine/14)),math.rad(50),math.rad(0)), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(50),math.rad(-30),math.rad(-40-2*math.cos(sine/14))), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(40),0), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(-40), 0), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.15, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.15, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
- elseif stanceToggle == "Sitting" then
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(100-1*math.cos(sine/14)), math.rad(0), math.rad(20)), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2, .9, -1)*CFrame.Angles(math.rad(78+1*math.cos(sine/14)), math.rad(0), math.rad(50)), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -.3) * CFrame.Angles(math.rad(-14+1*math.cos(sine/14)), math.rad(0), math.rad(0)),0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(-10+1*math.cos(sine/14)), 0, math.rad(0)), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, -2) * CFrame.Angles(math.rad(-10-1*math.cos(sine/14)), 0, 0), 0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .6) * CFrame.Angles(math.rad(-50-1*math.cos(sine/14)), 0, 0), 0.2)
- end
- elseif animpose == "Walking" then
- if stanceToggle == "Normal" then
- change = 1
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9+.1*math.cos(sine/7), -math.sin(sine/14)/2)*CFrame.Angles(math.sin(sine/14)/-4, math.rad(1) + -math.sin(sine/14)/2, math.rad(30)), 0.1)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, .9+.1*math.cos(sine/7), -math.sin(sine/14)/2)*CFrame.Angles(math.sin(sine/14)/4, math.rad(1) + -math.sin(sine/14)/2, math.rad(-30)), 0.1)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/7)), math.rad(0), math.rad(0)),0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2+0.1*math.cos(sine/7), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/7)), 0, math.rad(0)), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3-0.3*math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/14)/2.3, 0, 0), .1)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3+0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/14)/2.3, 0, 0), .1)
- end
- elseif animpose == "Running" then
- change = 1
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 0.9, .5) * CFrame.Angles(math.rad(-10-20*math.cos(sine/4)/2), math.rad(-40+10*math.cos(sine/4)/2), math.rad(50-10*math.cos(sine/4)/2)), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 0.9, .5)*CFrame.Angles(math.rad(10+20*math.cos(sine/4)/2), math.rad(40-10*math.cos(sine/4)/2), math.rad(-50+10*math.cos(sine/4)/2)), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(6+6*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/4)/2), 0, math.rad(0)), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3+0.44*math.cos(sine/8)/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4)
- end
- end
- if animpose == "Walking" then
- if footsteps == false then
- x:Play()
- footsteps = true
- end
- x.Pitch = 0.9
- elseif animpose == "Idle" then
- x:Stop()
- footsteps = false
- elseif animpose == "Running" then
- x.Pitch = 1.2
- if footsteps == false then
- x:Play()
- footsteps = true
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement