Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- local a=RealPlayer;char=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer
- mas = owner
- player = owner
- mouse = player:GetMouse()
- char = owner.Character
- wait()
- coroutine.resume(coroutine.create(function()
- while true do
- for i,v in pairs(char.Animate:GetChildren()) do
- for i,animation in pairs(v:GetChildren()) do
- animation.AnimationId = "rbxassetid://0"
- dooo = char.Humanoid:LoadAnimation(animation)
- dooo:Stop()
- end
- end
- wait(0.0001)
- end
- end))
- Model0 = char
- Part1 = char.Torso
- SpecialMesh2 = Instance.new("SpecialMesh")
- Weld3 = Instance.new("Weld")
- Motor6D4 = Instance.new("Motor6D")
- Motor6D5 = Instance.new("Motor6D")
- Motor6D6 = Instance.new("Motor6D")
- Motor6D7 = Instance.new("Motor6D")
- Part8 = char.Head
- mouse.Button1Down:Connect(function()
- Sound9:Play()
- end)
- Sound9 = Instance.new("Sound")
- Part10 = char["Left Arm"]
- SpecialMesh11 = Instance.new("SpecialMesh")
- Part12 = char["Left Leg"]
- SpecialMesh13 = Instance.new("SpecialMesh")
- Part14 = char["Right Arm"]
- SpecialMesh15 = Instance.new("SpecialMesh")
- Part16 = char["Right Leg"]
- SpecialMesh17 = Instance.new("SpecialMesh")
- Part18 = Instance.new("Part")
- SpecialMesh19 = Instance.new("SpecialMesh")
- WeldConstraint20 = Instance.new("WeldConstraint")
- Humanoid21 = char.Humanoid
- Hat22 = Instance.new("Hat")
- Part1.Name = "Torso"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(19.217514, 1.32589602, -19.8199348, -0.476602882, -1.40832712e-28, -0.879118741, 2.95492759e-28, 1, 2.10648588e-35, 0.879118741, 2.59773186e-28, -0.476602882)
- Part1.Orientation = Vector3.new(0, -118.459999, 0)
- Part1.Position = Vector3.new(19.217514, 1.32589602, -19.8199348)
- Part1.Rotation = Vector3.new(-180, -61.5400009, 180)
- Part1.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Part1.Size = Vector3.new(0.541177154, 0.81176573, 2.02941442)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Dirt brown")
- Part1.Material = Enum.Material.Granite
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Dirt brown")
- Part1.FormFactor = Enum.FormFactor.Custom
- Part1.formFactor = Enum.FormFactor.Custom
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "rbxassetid://1485742207"
- SpecialMesh2.Scale = Vector3.new(0.0135294292, 0.0135294292, 0.0124470731)
- SpecialMesh2.TextureId = "rbxassetid://1485746693"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- Weld3.Name = "Neck"
- Weld3.Parent = Part1
- Weld3.C0 = CFrame.new(-2.86277952e-07, -27.0476532, -2.29022362e-06, 1, 2.50387147e-21, -1.16694232e-21, -2.50387147e-21, 1, 9.25738092e-22, 1.16694232e-21, -9.25738092e-22, 1)
- Weld3.C1 = CFrame.new(-2.86277952e-07, -27.5076542, 0.744116247, 1, 2.50387147e-21, -1.16694232e-21, -2.50387147e-21, 1, 9.25738092e-22, 1.16694232e-21, -9.25738092e-22, 1)
- Weld3.Part0 = Part1
- Weld3.Part1 = Part8
- Weld3.part1 = Part8
- Motor6D4.Name = "Left Hip"
- Motor6D4.Parent = Part1
- Motor6D4.MaxVelocity = 0.15000000596046
- Motor6D4.C0 = CFrame.new(-0.122847214, -0.547675967, 0.651577175, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
- Motor6D4.C1 = CFrame.new(0.0676471442, 0.202941433, -0.108235389, -4.37113883e-08, -1.16027513e-42, -1, 0, 1, -4.22132457e-29, 1, 0, -4.37113883e-08)
- Motor6D4.Part0 = Part1
- Motor6D4.Part1 = Part12
- Motor6D4.part1 = Part12
- Motor6D5.Name = "Left Shoulder"
- Motor6D5.Parent = Part1
- Motor6D5.MaxVelocity = 0.15000000596046
- Motor6D5.C0 = CFrame.new(-0.143411949, -0.392355502, -0.354471028, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
- Motor6D5.C1 = CFrame.new(0.0676471442, 0.41941312, 0.0135294162, -4.37113883e-08, -1.05798034e-42, -1, 0, 1, -4.20018027e-29, 1, 0, -4.37113883e-08)
- Motor6D5.Part0 = Part1
- Motor6D5.Part1 = Part10
- Motor6D5.part1 = Part10
- Motor6D6.Name = "Right Hip"
- Motor6D6.Parent = Part1
- Motor6D6.MaxVelocity = 0.15000000596046
- Motor6D6.C0 = CFrame.new(0.2613886, -0.547675967, 0.651577175, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)
- Motor6D6.C1 = CFrame.new(0.0676471442, 0.202941433, -0.108235389, -4.37113883e-08, -1.16027513e-42, 1, 0, 1, -4.22132457e-29, -1, 0, -4.37113883e-08)
- Motor6D6.Part0 = Part1
- Motor6D6.Part1 = Part16
- Motor6D6.part1 = Part16
- Motor6D7.Name = "Right Shoulder"
- Motor6D7.Parent = Part1
- Motor6D7.MaxVelocity = 0.15000000596046
- Motor6D7.C0 = CFrame.new(0.284118503, -0.392355502, -0.354471028, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)
- Motor6D7.C1 = CFrame.new(0.0676471591, 0.41941312, 0.0135294162, -4.37113883e-08, -1.05798034e-42, 1, 0, 1, -4.20018027e-29, -1, 0, -4.37113883e-08)
- Motor6D7.Part0 = Part1
- Motor6D7.Part1 = Part14
- Motor6D7.part1 = Part14
- Part8.Name = "Head"
- Part8.Parent = Model0
- Part8.CFrame = CFrame.new(19.8716831, 1.78589702, -19.4652863, -0.476602882, -1.40832712e-28, -0.879118741, 2.95492759e-28, 1, 2.10648588e-35, 0.879118741, 2.59773186e-28, -0.476602882)
- Part8.Orientation = Vector3.new(0, -118.459999, 0)
- Part8.Position = Vector3.new(19.8716831, 1.78589702, -19.4652863)
- Part8.Rotation = Vector3.new(-180, -61.5400009, 180)
- Part8.Transparency = 1
- Part8.Size = Vector3.new(0.541177154, 0.108235434, 0.541177154)
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part8.FormFactor = Enum.FormFactor.Custom
- Part8.formFactor = Enum.FormFactor.Custom
- Sound9.Name = "Bark"
- Sound9.Parent = Part8
- Sound9.EmitterSize = 0
- Sound9.MinDistance = 0
- Sound9.SoundId = "http://www.roblox.com/asset/?id=1091083826"
- Sound9.Volume = 1
- Part10.Name = "Left Arm"
- Part10.Parent = Model0
- Part10.CFrame = CFrame.new(19.6416206, 0.514127374, -19.8300915, -0.476602882, -1.60850888e-28, -0.879118741, 2.95492759e-28, 1, 2.10648588e-35, 0.879118741, 2.96697765e-28, -0.476602882)
- Part10.Orientation = Vector3.new(0, -118.459999, 0)
- Part10.Position = Vector3.new(19.6416206, 0.514127374, -19.8300915)
- Part10.Rotation = Vector3.new(-180, -61.5400009, 180)
- Part10.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Part10.Size = Vector3.new(0.270588577, 1.02823663, 0.270588577)
- Part10.BottomSurface = Enum.SurfaceType.Smooth
- Part10.BrickColor = BrickColor.new("Dirt brown")
- Part10.CanCollide = false
- Part10.TopSurface = Enum.SurfaceType.Smooth
- Part10.brickColor = BrickColor.new("Dirt brown")
- Part10.FormFactor = Enum.FormFactor.Custom
- Part10.formFactor = Enum.FormFactor.Custom
- SpecialMesh11.Parent = Part10
- SpecialMesh11.MeshId = "http://www.roblox.com/asset/?id=257307555"
- SpecialMesh11.Offset = Vector3.new(0.0135294292, 0.108235434, 0.405882835)
- SpecialMesh11.Scale = Vector3.new(0.541177213, 0.541177213, 0.541177213)
- SpecialMesh11.TextureId = "rbxassetid://1486205565"
- SpecialMesh11.MeshType = Enum.MeshType.FileMesh
- Part12.Name = "Left Leg"
- Part12.Parent = Model0
- Part12.CFrame = CFrame.new(18.6403389, 0.57527864, -20.3495312, -0.476602882, -1.60951663e-28, -0.879118741, 2.95492759e-28, 1, 2.10648588e-35, 0.879118741, 2.96883642e-28, -0.476602882)
- Part12.Orientation = Vector3.new(0, -118.459999, 0)
- Part12.Position = Vector3.new(18.6403389, 0.57527864, -20.3495312)
- Part12.Rotation = Vector3.new(-180, -61.5400009, 180)
- Part12.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Part12.Size = Vector3.new(0.270588577, 1.02823663, 0.270588577)
- Part12.BottomSurface = Enum.SurfaceType.Smooth
- Part12.BrickColor = BrickColor.new("Dirt brown")
- Part12.CanCollide = false
- Part12.TopSurface = Enum.SurfaceType.Smooth
- Part12.brickColor = BrickColor.new("Dirt brown")
- Part12.FormFactor = Enum.FormFactor.Custom
- Part12.formFactor = Enum.FormFactor.Custom
- SpecialMesh13.Parent = Part12
- SpecialMesh13.MeshId = "http://www.roblox.com/asset/?id=257316977"
- SpecialMesh13.Offset = Vector3.new(-0.0405883007, -0.0541177168, 0)
- SpecialMesh13.Scale = Vector3.new(0.541177213, 0.541177213, 0.541177213)
- SpecialMesh13.TextureId = "rbxassetid://1486205565"
- SpecialMesh13.MeshType = Enum.MeshType.FileMesh
- Part14.Name = "Right Arm"
- Part14.Parent = Model0
- Part14.CFrame = CFrame.new(19.4378586, 0.514127374, -19.4542408, -0.476602882, -1.20814536e-28, -0.879118741, 2.95492759e-28, 1, 2.10648588e-35, 0.879118741, 2.22848608e-28, -0.476602882)
- Part14.Orientation = Vector3.new(0, -118.459999, 0)
- Part14.Position = Vector3.new(19.4378586, 0.514127374, -19.4542408)
- Part14.Rotation = Vector3.new(-180, -61.5400009, 180)
- Part14.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Part14.Size = Vector3.new(0.270588577, 1.02823663, 0.270588577)
- Part14.BottomSurface = Enum.SurfaceType.Smooth
- Part14.BrickColor = BrickColor.new("Dirt brown")
- Part14.CanCollide = false
- Part14.TopSurface = Enum.SurfaceType.Smooth
- Part14.brickColor = BrickColor.new("Dirt brown")
- Part14.FormFactor = Enum.FormFactor.Custom
- Part14.formFactor = Enum.FormFactor.Custom
- SpecialMesh15.Parent = Part14
- SpecialMesh15.MeshId = "http://www.roblox.com/asset/?id=255485626"
- SpecialMesh15.Offset = Vector3.new(-0.0270588584, -0.0270588584, 0)
- SpecialMesh15.Scale = Vector3.new(0.541177213, 0.541177213, 0.541177213)
- SpecialMesh15.TextureId = "rbxassetid://1486205565"
- SpecialMesh15.MeshType = Enum.MeshType.FileMesh
- Part16.Name = "Right Leg"
- Part16.Parent = Model0
- Part16.CFrame = CFrame.new(18.4572105, 0.57527864, -20.0117416, -0.476602882, -1.20713762e-28, -0.879118741, 2.95492759e-28, 1, 2.10648588e-35, 0.879118741, 2.22662731e-28, -0.476602882)
- Part16.Orientation = Vector3.new(0, -118.459999, 0)
- Part16.Position = Vector3.new(18.4572105, 0.57527864, -20.0117416)
- Part16.Rotation = Vector3.new(-180, -61.5400009, 180)
- Part16.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Part16.Size = Vector3.new(0.270588577, 1.02823663, 0.270588577)
- Part16.BottomSurface = Enum.SurfaceType.Smooth
- Part16.BrickColor = BrickColor.new("Dirt brown")
- Part16.CanCollide = false
- Part16.TopSurface = Enum.SurfaceType.Smooth
- Part16.brickColor = BrickColor.new("Dirt brown")
- Part16.FormFactor = Enum.FormFactor.Custom
- Part16.formFactor = Enum.FormFactor.Custom
- SpecialMesh17.Parent = Part16
- SpecialMesh17.MeshId = "http://www.roblox.com/asset/?id=257317035"
- SpecialMesh17.Offset = Vector3.new(0.0405883007, -0.0541177168, 0)
- SpecialMesh17.Scale = Vector3.new(0.541177213, 0.541177213, 0.541177213)
- SpecialMesh17.TextureId = "rbxassetid://1486205565"
- SpecialMesh17.MeshType = Enum.MeshType.FileMesh
- Part18.Name = "Tail"
- Part18.Parent = Model0
- Part18.CFrame = CFrame.new(18.4908447, 1.40913272, -20.3286877, -0.359611541, -0.126505762, -0.924489379, 0.0417008884, 0.9875983, -0.151362568, 0.932172477, -0.0929837003, -0.349876434)
- Part18.Orientation = Vector3.new(8.71000004, -110.730003, 2.42000008)
- Part18.Position = Vector3.new(18.4908447, 1.40913272, -20.3286877)
- Part18.Rotation = Vector3.new(156.610001, -67.5899963, 160.619995)
- Part18.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part18.Size = Vector3.new(0.405882865, 0.541177154, 0.405882865)
- Part18.BottomSurface = Enum.SurfaceType.Smooth
- Part18.BrickColor = BrickColor.new("Really black")
- Part18.TopSurface = Enum.SurfaceType.Smooth
- Part18.brickColor = BrickColor.new("Really black")
- Part18.FormFactor = Enum.FormFactor.Custom
- Part18.formFactor = Enum.FormFactor.Custom
- SpecialMesh19.Parent = Part18
- SpecialMesh19.MeshId = "rbxassetid://1486120861"
- SpecialMesh19.Offset = Vector3.new(0.100000001, 0.389999986, 0.5)
- SpecialMesh19.Scale = Vector3.new(0.00350000011, 0.00350000011, 0.00350000011)
- SpecialMesh19.TextureId = "rbxassetid://1491398236"
- SpecialMesh19.MeshType = Enum.MeshType.FileMesh
- WeldConstraint20.Parent = Part18
- WeldConstraint20.Part0 = Part18
- WeldConstraint20.Part1 = Part1
- Humanoid21.Parent = Model0
- Humanoid21.LeftLeg = Part12
- Humanoid21.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid21.RightLeg = Part16
- Humanoid21.Torso = Part1
- Humanoid21.WalkSpeed = 9
- Hat22.Name = "NoHat"
- Hat22.Parent = Model0
- --Made by Luckymaxer
- Figure = char
- RunService = game:GetService("RunService")
- Humanoid = Figure:WaitForChild("Humanoid")
- Head = Figure:WaitForChild("Head")
- Torso = Figure:WaitForChild("Torso")
- Neck = Torso:WaitForChild("Neck")
- LeftShoulder = Motor6D5
- RightShoulder = Motor6D7
- LeftHip = Motor6D4
- RightHip = Motor6D6
- for i, v in pairs({--[[Neck, ]]LeftShoulder, RightShoulder, LeftHip, RightHip}) do
- if v and v.Parent then
- v.DesiredAngle = 0
- v.CurrentAngle = 0
- end
- end
- Pose = "None"
- LastPose = Pose
- PoseTime = tick()
- ToolAnimTime = 0
- function SetPose(pose)
- LastPose = Pose
- Pose = pose
- PoseTime = tick()
- end
- function OnRunning(Speed)
- if Speed > 0 then
- SetPose("Running")
- else
- SetPose("Standing")
- end
- end
- function OnDied()
- SetPose("Dead")
- end
- function OnJumping()
- SetPose("Jumping")
- end
- function OnClimbing()
- SetPose("Climbing")
- end
- function OnGettingUp()
- SetPose("GettingUp")
- end
- function OnFreeFall()
- SetPose("FreeFall")
- end
- function OnFallingDown()
- SetPose("FallingDown")
- end
- function OnSeated()
- SetPose("Seated")
- end
- function OnPlatformStanding()
- SetPose("PlatformStanding")
- end
- function OnSwimming(Speed)
- return OnRunning(Speed)
- end
- function MoveJump()
- RightShoulder.MaxVelocity = 0.15
- LeftShoulder.MaxVelocity = 0.15
- RightShoulder.DesiredAngle = 0.5
- LeftShoulder.DesiredAngle = -0.5
- RightHip.DesiredAngle = -0.5
- LeftHip.DesiredAngle = 0.5
- end
- function MoveFreeFall()
- RightShoulder.MaxVelocity = 0.15
- LeftShoulder.MaxVelocity = 0.15
- RightShoulder.DesiredAngle = 0.5
- LeftShoulder.DesiredAngle = -0.5
- RightHip.DesiredAngle = -0.5
- LeftHip.DesiredAngle = 0.5
- end
- function MoveSit()
- RightShoulder.MaxVelocity = 0.15
- LeftShoulder.MaxVelocity = 0.15
- RightShoulder.DesiredAngle = (math.pi / 2)
- LeftShoulder.DesiredAngle = -(math.pi / 2)
- RightHip.DesiredAngle = 1
- LeftHip.DesiredAngle = -1
- end
- function GetTool()
- for i, v in pairs(Figure:GetChildren()) do
- if v:IsA("Tool") then
- return v
- end
- end
- end
- function GetToolAnim(Tool)
- for i, v in pairs(Tool:GetChildren()) do
- if v:IsA("StringValue") and v.Name == "ToolAnim" then
- return v
- end
- end
- return nil
- end
- function AnimateTool()
- if (ToolAnim == "None") then
- return
- end
- if (ToolAnim == "Slash") then
- RightShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = 0
- return
- end
- if (ToolAnim == "Lunge") then
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightHip.MaxVelocity = 0.5
- LeftHip.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = (math.pi / 2)
- LeftShoulder.DesiredAngle = 0
- RightHip.DesiredAngle = (math.pi / 2)
- LeftHip.DesiredAngle = 1
- return
- end
- end
- function Move(Time)
- local LimbAmplitude
- local LimbFrequency
- local NeckAmplitude
- local NeckFrequency
- local NeckDesiredAngle
- if (Pose == "Jumping") then
- MoveJump()
- return
- elseif (Pose == "FreeFall") then
- MoveFreeFall()
- return
- elseif (Pose == "Seated") then
- MoveSit()
- return
- end
- local ClimbFudge = 0
- if (Pose == "Running") then
- RightShoulder.MaxVelocity = 0.15
- LeftShoulder.MaxVelocity = 0.15
- LimbAmplitude = 1
- LimbFrequency = 9
- NeckAmplitude = 0
- NeckFrequency = 0
- NeckDesiredAngle = 0
- --[[if Creator and Creator.Value and Creator.Value:IsA("Player") and Creator.Value.Character then
- local CreatorCharacter = Creator.Value.Character
- local CreatorHead = CreatorCharacter:FindFirstChild("Head")
- if CreatorHead then
- local TargetPosition = CreatorHead.Position
- local Direction = Torso.CFrame.lookVector
- local HeadPosition = Head.Position
- NeckDesiredAngle = ((((HeadPosition - TargetPosition).Unit):Cross(Direction)).Y / 4)
- end
- end]]
- elseif (Pose == "Climbing") then
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- LimbAmplitude = 1
- LimbFrequency = 9
- NeckAmplitude = 0
- NeckFrequency = 0
- NeckDesiredAngle = 0
- ClimbFudge = math.pi
- else
- LimbAmplitude = 0.1
- LimbFrequency = 1
- NeckAmplitude = 0.25
- NeckFrequency = 1.25
- end
- NeckDesiredAngle = ((not NeckDesiredAngle and (NeckAmplitude * math.sin(Time * NeckFrequency))) or NeckDesiredAngle)
- LimbDesiredAngle = (LimbAmplitude * math.sin(Time * LimbFrequency))
- --Neck.DesiredAngle = NeckDesiredAngle
- RightShoulder.DesiredAngle = (LimbDesiredAngle + ClimbFudge)
- LeftShoulder.DesiredAngle = (LimbDesiredAngle - ClimbFudge)
- RightHip.DesiredAngle = -LimbDesiredAngle
- LeftHip.DesiredAngle = -LimbDesiredAngle
- local Tool = GetTool()
- if Tool then
- AnimStringValueObject = GetToolAnim(Tool)
- if AnimStringValueObject then
- ToolAnim = AnimStringValueObject.Value
- if AnimStringValueObject and AnimStringValueObject.Parent then
- AnimStringValueObject:Destroy()
- end
- ToolAnimTime = (Time + 0.3)
- end
- if Time > ToolAnimTime then
- ToolAnimTime = 0
- ToolAnim = "None"
- end
- AnimateTool()
- else
- ToolAnim = "None"
- ToolAnimTime = 0
- end
- end
- Humanoid.Died:connect(OnDied)
- Humanoid.Running:connect(OnRunning)
- Humanoid.Jumping:connect(OnJumping)
- Humanoid.Climbing:connect(OnClimbing)
- Humanoid.GettingUp:connect(OnGettingUp)
- Humanoid.FreeFalling:connect(OnFreeFall)
- Humanoid.FallingDown:connect(OnFallingDown)
- Humanoid.Seated:connect(OnSeated)
- Humanoid.PlatformStanding:connect(OnPlatformStanding)
- Humanoid.Swimming:connect(OnSwimming)
- Humanoid:ChangeState(Enum.HumanoidStateType.None)
- RunService.Stepped:connect(function()
- local _, Time = wait(0.1)
- Move(Time)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement