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")
- Motor6D3 = Instance.new("Motor6D")
- Weld4 = Instance.new("Weld")
- Motor6D5 = Instance.new("Motor6D")
- Motor6D6 = Instance.new("Motor6D")
- Motor6D7 = Instance.new("Motor6D")
- Motor6D8 = Instance.new("Motor6D")
- Part9 = char.Head
- Sound10 = Instance.new("Sound")
- Sound11 = Instance.new("Sound")
- mouse.Button1Down:Connect(function()
- Sound10:Play()
- end)
- char.Torso.Touched:Connect(function(part)
- if Sound10.Playing == true then
- if part.Parent and part.Parent:FindFirstChildOfClass("Humanoid") then
- part.Parent:FindFirstChildOfClass("Humanoid").Health = part.Parent:FindFirstChildOfClass("Humanoid").Health - 25
- end
- end
- end)
- mouse.KeyDown:Connect(function(key)
- if key == "b" then
- Sound11:Play()
- end
- end)
- Part12 = char["Left Arm"]
- SpecialMesh13 = Instance.new("SpecialMesh")
- Part14 = char["Left Leg"]
- SpecialMesh15 = Instance.new("SpecialMesh")
- Part16 = char["Right Arm"]
- SpecialMesh17 = Instance.new("SpecialMesh")
- Part18 = char["Right Leg"]
- SpecialMesh19 = Instance.new("SpecialMesh")
- Part20 = Instance.new("Part")
- SpecialMesh21 = Instance.new("SpecialMesh")
- Humanoid22 = char.Humanoid
- Hat23 = Instance.new("Hat")
- Part1.Name = "Torso"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(27.1555939, 82.042984, -28.2461128, -0.161397934, -8.97734514e-22, 0.986889362, 2.31704841e-21, 1, 1.28859573e-21, -0.986889362, 2.49464728e-21, -0.161397934)
- Part1.Orientation = Vector3.new(0, 99.2900009, 0)
- Part1.Position = Vector3.new(27.1555939, 82.042984, -28.2461128)
- Part1.Rotation = Vector3.new(-180, 80.7099991, 180)
- Part1.Size = Vector3.new(1, 1.5, 3.75)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.Locked = true
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.FormFactor = Enum.FormFactor.Custom
- Part1.formFactor = Enum.FormFactor.Custom
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=257307222"
- SpecialMesh2.Scale = Vector3.new(1.10000002, 1, 1)
- SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=255486143"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- Motor6D3.Name = "Tail"
- Motor6D3.Parent = Part1
- Motor6D3.MaxVelocity = 0.15000000596046
- Motor6D3.C0 = CFrame.new(-0.0517863631, -0.0699996948, 1.72020686, 1, 0, 0, 0, -4.37113883e-08, -1, 0, 1, -4.37113883e-08)
- Motor6D3.C1 = CFrame.new(0.143782854, -0.172836304, 0.234024048, 0.965675592, -0.252551526, -0.0607320629, 0.0605338626, 0.446179628, -0.892893791, 0.25259909, 0.858569145, 0.446152657)
- Motor6D3.Part0 = Part1
- Motor6D3.Part1 = Part20
- Motor6D3.part1 = Part20
- Weld4.Name = "Neck"
- Weld4.Parent = Part1
- Weld4.C0 = CFrame.new(-5.28991222e-07, -49.9792976, -4.23192978e-06, 1, 2.50387147e-21, -1.16694232e-21, -2.50387147e-21, 1, 9.25738092e-22, 1.16694232e-21, -9.25738092e-22, 1)
- Weld4.C1 = CFrame.new(-5.28991222e-07, -50.8292961, 1.37499571, 1, 2.50387147e-21, -1.16694232e-21, -2.50387147e-21, 1, 9.25738092e-22, 1.16694232e-21, -9.25738092e-22, 1)
- Weld4.Part0 = Part1
- Weld4.Part1 = Part9
- Weld4.part1 = Part9
- Motor6D5.Name = "Left Hip"
- Motor6D5.Parent = Part1
- Motor6D5.MaxVelocity = 0.15000000596046
- Motor6D5.C0 = CFrame.new(-0.226999998, -1.01200867, 1.20399976, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
- Motor6D5.C1 = CFrame.new(0.125, 0.375, -0.199999928, -4.37113883e-08, -1.16027513e-42, -1, 0, 1, -4.22132457e-29, 1, 0, -4.37113883e-08)
- Motor6D5.Part0 = Part1
- Motor6D5.Part1 = Part14
- Motor6D5.part1 = Part14
- Motor6D6.Name = "Right Hip"
- Motor6D6.Parent = Part1
- Motor6D6.MaxVelocity = 0.15000000596046
- Motor6D6.C0 = CFrame.new(0.48300004, -1.01200867, 1.20399976, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)
- Motor6D6.C1 = CFrame.new(0.125, 0.375, -0.199999928, -4.37113883e-08, -1.16027513e-42, 1, 0, 1, -4.22132457e-29, -1, 0, -4.37113883e-08)
- Motor6D6.Part0 = Part1
- Motor6D6.Part1 = Part18
- Motor6D6.part1 = Part18
- Motor6D7.Name = "Right Shoulder"
- Motor6D7.Parent = Part1
- Motor6D7.MaxVelocity = 0.15000000596046
- Motor6D7.C0 = CFrame.new(0.52500093, -0.725003839, -0.654999971, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)
- Motor6D7.C1 = CFrame.new(0.12500003, 0.775001526, 0.0249999762, -4.37113883e-08, -1.05798034e-42, 1, 0, 1, -4.20018027e-29, -1, 0, -4.37113883e-08)
- Motor6D7.Part0 = Part1
- Motor6D7.Part1 = Part16
- Motor6D7.part1 = Part16
- Motor6D8.Name = "Left Shoulder"
- Motor6D8.Parent = Part1
- Motor6D8.MaxVelocity = 0.15000000596046
- Motor6D8.C0 = CFrame.new(-0.265000015, -0.725003839, -0.654999971, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
- Motor6D8.C1 = CFrame.new(0.125, 0.775001526, 0.0249999762, -4.37113883e-08, -1.05798034e-42, -1, 0, 1, -4.20018027e-29, 1, 0, -4.37113883e-08)
- Motor6D8.Part0 = Part1
- Motor6D8.Part1 = Part12
- Motor6D8.part1 = Part12
- Part9.Name = "Head"
- Part9.Parent = Model0
- Part9.CFrame = CFrame.new(25.7986202, 82.8929825, -28.0241909, -0.161397934, -8.97734514e-22, 0.986889362, 2.31704841e-21, 1, 1.28859573e-21, -0.986889362, 2.49464728e-21, -0.161397934)
- Part9.Orientation = Vector3.new(0, 99.2900009, 0)
- Part9.Position = Vector3.new(25.7986202, 82.8929825, -28.0241909)
- Part9.Rotation = Vector3.new(-180, 80.7099991, 180)
- Part9.Transparency = 1
- Part9.Size = Vector3.new(1, 0.200000003, 1)
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.Locked = true
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.FormFactor = Enum.FormFactor.Custom
- Part9.formFactor = Enum.FormFactor.Custom
- Sound10.Name = "Bark"
- Sound10.Parent = Part9
- Sound10.SoundId = "http://www.roblox.com/asset/?id=144016898"
- Sound10.Volume = 1
- Sound11.Name = "Wow"
- Sound11.Parent = Part9
- Sound11.SoundId = "http://www.roblox.com/asset/?id=257361046"
- Sound11.Volume = 1
- Part12.Name = "Left Arm"
- Part12.Parent = Model0
- Part12.CFrame = CFrame.new(26.5474548, 80.5429764, -27.7514763, -0.161397934, -8.97734514e-22, 0.986889362, 2.31704841e-21, 1, 1.28859573e-21, -0.986889362, 2.49464728e-21, -0.161397934)
- Part12.Orientation = Vector3.new(0, 99.2900009, 0)
- Part12.Position = Vector3.new(26.5474548, 80.5429764, -27.7514763)
- Part12.Rotation = Vector3.new(-180, 80.7099991, 180)
- Part12.Size = Vector3.new(0.5, 1.9000001, 0.5)
- Part12.BottomSurface = Enum.SurfaceType.Smooth
- Part12.CanCollide = false
- Part12.Locked = true
- Part12.TopSurface = Enum.SurfaceType.Smooth
- Part12.FormFactor = Enum.FormFactor.Custom
- Part12.formFactor = Enum.FormFactor.Custom
- SpecialMesh13.Parent = Part12
- SpecialMesh13.MeshId = "http://www.roblox.com/asset/?id=257307555"
- SpecialMesh13.Offset = Vector3.new(0.0250000004, 0.200000003, 0.75)
- SpecialMesh13.TextureId = "http://www.roblox.com/asset/?id=255486143"
- SpecialMesh13.MeshType = Enum.MeshType.FileMesh
- Part14.Name = "Left Leg"
- Part14.Parent = Model0
- Part14.CFrame = CFrame.new(28.5979977, 80.6559753, -28.12533, -0.161397934, -8.97734514e-22, 0.986889362, 2.31704841e-21, 1, 1.28859573e-21, -0.986889362, 2.49464728e-21, -0.161397934)
- Part14.Orientation = Vector3.new(0, 99.2900009, 0)
- Part14.Position = Vector3.new(28.5979977, 80.6559753, -28.12533)
- Part14.Rotation = Vector3.new(-180, 80.7099991, 180)
- Part14.Size = Vector3.new(0.5, 1.9000001, 0.5)
- Part14.BottomSurface = Enum.SurfaceType.Smooth
- Part14.CanCollide = false
- Part14.Locked = true
- Part14.TopSurface = Enum.SurfaceType.Smooth
- Part14.FormFactor = Enum.FormFactor.Custom
- Part14.formFactor = Enum.FormFactor.Custom
- SpecialMesh15.Parent = Part14
- SpecialMesh15.MeshId = "http://www.roblox.com/asset/?id=257316977"
- SpecialMesh15.Offset = Vector3.new(-0.075000003, -0.100000001, 0)
- SpecialMesh15.TextureId = "http://www.roblox.com/asset/?id=255486143"
- SpecialMesh15.MeshType = Enum.MeshType.FileMesh
- Part16.Name = "Right Arm"
- Part16.Parent = Model0
- Part16.CFrame = CFrame.new(26.4199505, 80.5429764, -28.5311184, -0.161397934, -8.97734514e-22, 0.986889362, 2.31704841e-21, 1, 1.28859573e-21, -0.986889362, 2.49464728e-21, -0.161397934)
- Part16.Orientation = Vector3.new(0, 99.2900009, 0)
- Part16.Position = Vector3.new(26.4199505, 80.5429764, -28.5311184)
- Part16.Rotation = Vector3.new(-180, 80.7099991, 180)
- Part16.Size = Vector3.new(0.5, 1.9000001, 0.5)
- Part16.BottomSurface = Enum.SurfaceType.Smooth
- Part16.CanCollide = false
- Part16.Locked = true
- Part16.TopSurface = Enum.SurfaceType.Smooth
- Part16.FormFactor = Enum.FormFactor.Custom
- Part16.formFactor = Enum.FormFactor.Custom
- SpecialMesh17.Parent = Part16
- SpecialMesh17.MeshId = "http://www.roblox.com/asset/?id=255485626"
- SpecialMesh17.Offset = Vector3.new(-0.0500000007, -0.0500000007, 0)
- SpecialMesh17.TextureId = "http://www.roblox.com/asset/?id=255486143"
- SpecialMesh17.MeshType = Enum.MeshType.FileMesh
- Part18.Name = "Right Leg"
- Part18.Parent = Model0
- Part18.CFrame = CFrame.new(28.4834061, 80.6559753, -28.8260212, -0.161397934, -8.97734514e-22, 0.986889362, 2.31704841e-21, 1, 1.28859573e-21, -0.986889362, 2.49464728e-21, -0.161397934)
- Part18.Orientation = Vector3.new(0, 99.2900009, 0)
- Part18.Position = Vector3.new(28.4834061, 80.6559753, -28.8260212)
- Part18.Rotation = Vector3.new(-180, 80.7099991, 180)
- Part18.Size = Vector3.new(0.5, 1.9000001, 0.5)
- Part18.BottomSurface = Enum.SurfaceType.Smooth
- Part18.CanCollide = false
- Part18.Locked = true
- Part18.TopSurface = Enum.SurfaceType.Smooth
- Part18.FormFactor = Enum.FormFactor.Custom
- Part18.formFactor = Enum.FormFactor.Custom
- SpecialMesh19.Parent = Part18
- SpecialMesh19.MeshId = "http://www.roblox.com/asset/?id=257317035"
- SpecialMesh19.Offset = Vector3.new(0.075000003, -0.100000001, 0)
- SpecialMesh19.TextureId = "http://www.roblox.com/asset/?id=255486143"
- SpecialMesh19.MeshType = Enum.MeshType.FileMesh
- Part20.Name = "Tail"
- Part20.Parent = Model0
- Part20.CFrame = CFrame.new(28.8055172, 82.2229843, -28.2734795, -0.405098438, 0.430559933, 0.806543767, 0.0607320741, 0.892893791, -0.446152687, -0.912253678, -0.1317527, -0.387858629)
- Part20.Orientation = Vector3.new(26.5, 115.68, 3.8900001)
- Part20.Position = Vector3.new(28.8055172, 82.2229843, -28.2734795)
- Part20.Rotation = Vector3.new(131, 53.7599983, -133.25)
- Part20.Size = Vector3.new(0.75, 1, 0.75)
- Part20.BottomSurface = Enum.SurfaceType.Smooth
- Part20.Locked = true
- Part20.TopSurface = Enum.SurfaceType.Smooth
- Part20.FormFactor = Enum.FormFactor.Custom
- Part20.formFactor = Enum.FormFactor.Custom
- SpecialMesh21.Parent = Part20
- SpecialMesh21.MeshId = "http://www.roblox.com/asset/?id=255485601"
- SpecialMesh21.TextureId = "http://www.roblox.com/asset/?id=255486143"
- SpecialMesh21.MeshType = Enum.MeshType.FileMesh
- Humanoid22.Parent = Model0
- Humanoid22.LeftLeg = Part14
- Humanoid22.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid22.RightLeg = Part18
- Humanoid22.Torso = Part1
- Hat23.Name = "NoHat"
- Hat23.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 = Motor6D8
- RightShoulder = Motor6D7
- LeftHip = Motor6D5
- 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)
Add Comment
Please, Sign In to add comment