null nil RBX1 0 0 0 0 1 0 0 0 1 0 0 0 1 Workspace null 0 0 0 1 0 0 0 1 0 0 0 1 Player91 RBX3 false -0.5 0.5 0 0 -0.5 0.5 4 0 107 40.9375 8.91243744 -67.5625 5.36441803e-005 0 -0.99999994 0 1 0 0.99999994 0 5.36441803e-005 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.56368491e-007 -0.0121540548 1.85456159e-007 0 1 2 1 1 0 0 0 2 2 Mesh 0 0.0500000007 0 0.560000002 1.10000002 1.10000002 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=7074932 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.75 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX3 RBX7 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.70000005 -1.39999998 1 0 0 0 1 0 0 0 1 HeadWeld RBX3 RBX9 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3 RBX11 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.75 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX3 RBX7 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.70000005 -1.39999998 1 0 0 0 1 0 0 0 1 HeadWeld RBX3 RBX9 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3 RBX11 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.75 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX3 RBX7 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.70000005 -1.39999998 1 0 0 0 1 0 0 0 1 HeadWeld RBX3 RBX9 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3 RBX11 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.75 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX3 RBX7 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.70000005 -1.39999998 1 0 0 0 1 0 0 0 1 HeadWeld RBX3 RBX9 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3 RBX11 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.75 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX3 RBX7 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.70000005 -1.39999998 1 0 0 0 1 0 0 0 1 HeadWeld RBX3 RBX9 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3 RBX11 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.75 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX3 RBX7 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.70000005 -1.39999998 1 0 0 0 1 0 0 0 1 HeadWeld RBX3 RBX9 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3 RBX11 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.75 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX3 RBX7 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.70000005 -1.39999998 1 0 0 0 1 0 0 0 1 HeadWeld RBX3 RBX9 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3 RBX11 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.75 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX3 RBX7 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.70000005 -1.39999998 1 0 0 0 1 0 0 0 1 HeadWeld RBX3 RBX9 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3 RBX11 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 40.9375 7.41243744 -67.5625 5.36441803e-005 -0 -0.99999994 0 1 -0 0.99999994 0 5.36441803e-005 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -5.56368491e-007 -0.0121540548 1.85456159e-007 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=51619387 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX33 RBX36 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX33 RBX38 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX33 RBX40 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX33 RBX42 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX33 RBX3 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 40.9374199 7.41243744 -69.0625 5.36441803e-005 0 -0.99999994 0 1 0 0.99999994 0 5.36441803e-005 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.56368491e-007 -0.0121540548 1.85456159e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 40.9375801 7.41243744 -66.0625 5.36441803e-005 0 -0.99999994 0 1 0 0.99999994 0 5.36441803e-005 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.56368491e-007 -0.0121540548 1.85456159e-007 0 1 1 2 1 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -2.5 0 1 0 0 0 0 -1 0 1 0 RightGrip RBX36 RBX45 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -2.5 0 1 0 0 0 0 -1 0 1 0 RightGrip RBX36 RBX45 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -2.5 0 1 0 0 0 0 -1 0 1 0 RightGrip RBX36 RBX45 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -2.5 0 1 0 0 0 0 -1 0 1 0 RightGrip RBX36 RBX45 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -2.5 0 1 0 0 0 0 -1 0 1 0 RightGrip RBX36 RBX45 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -2.5 0 1 0 0 0 0 -1 0 1 0 RightGrip RBX36 RBX45 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -2.5 0 1 0 0 0 0 -1 0 1 0 RightGrip RBX36 RBX45 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -2.5 0 1 0 0 0 0 -1 0 1 0 RightGrip RBX36 RBX45 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 40.9374733 5.41243744 -68.0625 5.36441803e-005 0 -0.99999994 0 1 0 0.99999994 0 5.36441803e-005 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.56368491e-007 -0.0121540548 1.85456159e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 40.9375267 5.41243744 -67.0625 5.36441803e-005 0 -0.99999994 0 1 0 0.99999994 0 5.36441803e-005 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.56368491e-007 -0.0121540548 1.85456159e-007 0 1 1 2 1 100 100 Humanoid 0 0 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 true true 0 -2.5 0 1 0 0 0 0 -1 0 1 0 OlympicFoil http://www.watrbx.wtf/asset/?id=88117398 false -0.5 0.5 0 0 -0.5 0.5 0 0 199 40.9375801 3.91243744 -66.0625 5.36441803e-005 0 0.99999994 0 -1 0 0.99999994 0 -5.36441803e-005 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 816 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.56368491e-007 -0.0121540548 1.85456159e-007 3 1 0.550000012 6.52000046 0.660002112 2 2 http://www.watrbx.wtf/asset/?id=88117535 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=88117461 1 1 1 false SwordScript 51 http://www.watrbx.wtf/asset/?ID=87986341 AdvancingAnim http://www.watrbx.wtf/asset/?ID=88013940 IdleAnim http://www.watrbx.wtf/asset/?ID=88029282 LungeAnim false AnimateScript -- For the purpose of animations local function waitForChild(parent, instance) while parent:FindFirstChild(instance) == nil do print(instance) wait() end return parent:FindFirstChild(instance) end local Tool = script.Parent local Handle = Tool.Handle local vCharacter local vPlayer local vTorso local vHumanoid local AdvancingAnim local LungeAnim local IdleAnim local HeadPosition local OnRunConn local origCameraType local vMouse local RBX_Debris = game:GetService("Debris") local aDown = false local dDown = false function onEquipped(mouse) vCharacter = Tool.Parent vPlayer = game.Players:GetPlayerFromCharacter(vCharacter) vHumanoid = vCharacter:FindFirstChild("Humanoid") vTorso = vCharacter:FindFirstChild("Torso") if vTorso then vTorso.CFrame = vTorso.CFrame * CFrame.Angles(0, 0.5 * math.pi, 0) end if not IdleAnim then IdleAnim = vHumanoid:LoadAnimation(Tool.IdleAnim) end if IdleAnim then IdleAnim:Play() end if not HeadPosition then HeadPosition = vHumanoid:LoadAnimation(Tool.HeadPosition) end if HeadPosition then HeadPosition:Play() end origCameraType = Workspace.CurrentCamera.CameraType Workspace.CurrentCamera.CameraType = Enum.CameraType.Attach OnRunConn = vHumanoid.Running:connect(onRun) if mouse then vMouse = mouse mouse.KeyDown:connect(onKeyDown) mouse.KeyUp:connect(onKeyUp) end end function onUnequipped() if AdvancingAnim then AdvancingAnim:Stop() AdvancingAnim = nil end if IdleAnim then IdleAnim:Stop() IdleAnim = nil end if HeadPosition then HeadPosition:Stop() HeadPosition = nil end if OnRunConn then --print('Disconnecting on run') OnRunConn:disconnect() OnRunConn = nil end aDown = false dDown = false Workspace.CurrentCamera.CameraType = origCameraType end function lungeAttack(backwards) if onCooldown then return end onCooldown = true if Tool:FindFirstChild('DoLunge') then Tool.DoLunge.Value = true wait(0.1) Tool.DoLunge.Value = false end if vTorso then wait(0.1) local rightVector = vTorso.CFrame.lookVector:Cross(Vector3.new(0, 1, 0)) local jumpVel = Instance.new('BodyVelocity', vTorso) RBX_Debris:AddItem(jumpVel, 0.5) -- make them jump to the side and up a little jumpVel.velocity = rightVector * 45 if backwards then jumpVel.velocity = jumpVel.velocity * -1 end jumpVel.velocity = jumpVel.velocity --+ Vector3.new(0, 15, 0) jumpVel.maxForce = Vector3.new(5000000, 4500, 5000000) vHumanoid.Jump = true end wait(0.7) onCooldown = false end function onActivate() lungeAttack(false) end function lunge(value) if not value then return end if not LungeAnim then LungeAnim = vHumanoid:LoadAnimation(Tool.LungeAnim) end if LungeAnim then LungeAnim:Play() end end function rotateLeft() while aDown and Tool.Enabled do --print('Rotating left') vCharacter.Torso.CFrame = vCharacter.Torso.CFrame * CFrame.Angles(0, 0.04, 0) wait(0.2) end end function rotateRight() while dDown and Tool.Enabled do --print('Rotating Right') vCharacter.Torso.CFrame = vCharacter.Torso.CFrame * CFrame.Angles(0, -0.04, 0) wait(0.2) end end function onKeyUp(key) local keyLower = string.lower(key) if keyLower == 'a' or key == '' then aDown = false end if keyLower == 'd' or key == '' then dDown = false end end function onKeyDown(key) if string.lower(key) == 'w' or key == '' then --  --rotateTorsoToMouse(vMouse) lungeAttack(false) end if string.lower(key) == 's' or key == '' then --  --rotateTorsoToMouse(vMouse) lungeAttack(true) end if string.lower(key) == 'a' or key == '' then --  if not aDown then aDown = true coroutine.resume(coroutine.create(rotateLeft)) end end if string.lower(key) =='d' or key == '' then --  if not dDown then dDown = true coroutine.resume(coroutine.create(rotateRight)) end end end function onRun(speed) if not AdvancingAnim then AdvancingAnim = vHumanoid:LoadAnimation(Tool.AdvancingAnim) end if AdvancingAnim then if speed == 0 then AdvancingAnim:Stop() else AdvancingAnim:Play() end end end Tool.Equipped:connect(onEquipped) Tool.Unequipped:connect(onUnequipped) Tool.Activated:connect(onActivate) -- bind the lunge animation if waitForChild(Tool, 'DoLunge') then Tool.DoLunge.Changed:connect(lunge) end http://www.watrbx.wtf/asset/?ID=88016955 HeadPosition DoLunge false ServerLunge false false WhistleSound 1 false http://www.watrbx.wtf/asset/?ID=88134056 0.5 false CheerSound 1 false http://www.watrbx.wtf/asset/?ID=88102491 0.5 false Health 7 false HealthScript v3.1 8 0 -0.75 0.200000003 1 0 0 0 1 0 0 0 1 SilverthornAntlers false -0.5 0.5 0 0 -0.5 0.5 0 0 194 41.1375008 10.1624374 -67.5625076 5.36441803e-005 0 -0.99999994 0 1 0 0.99999994 0 5.36441803e-005 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.56368491e-007 -0.0121540548 1.85456159e-007 2 1 1 2 1 2 2 http://www.watrbx.wtf/asset/?id=1271547 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=9254947 1 1 1 0 1.70000005 -1.39999998 1 0 0 0 1 0 0 0 1 Batwings false -0.5 0.5 0 0 -0.5 0.5 0 0 194 39.5374985 7.71243763 -67.5624237 5.36441803e-005 0 -0.99999994 0 1 0 0.99999994 0 5.36441803e-005 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.56368491e-007 -0.0121540548 1.85456159e-007 0 1 5 2 2 2 2 http://www.watrbx.wtf/asset/?id=19367744 5 Mesh 0 0 0 1.04999995 1.04999995 1.04999995 http://www.watrbx.wtf/asset/?id=19367734 1 1 1 0 1 32332055 Slinger Torso 0 0 0 0.0500000007 1 0 0 0 1 0 0 0 1 Robot false -0.5 0.5 0 0 -0.5 0.5 0 0 194 40.9874992 9.41243744 -67.5625 5.36441803e-005 0 -0.99999994 0 1 0 0.99999994 0 5.36441803e-005 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.56368491e-007 -0.0121540548 1.85456159e-007 0 1 2 3 2 2 2 http://www.watrbx.wtf/asset/?id=15853431 5 Mesh 0 0 0 1.10000002 1.10000002 1.10000002 http://www.watrbx.wtf/asset/?id=15853419 1 1 1 0 2 55913549 KingLeft Arm 55913575 30252089 5 30241817 Samurai Right Leg 30254703 107 1003 1003 Body Colors 1003 1003 1003 0 3 55913499 KingRight Arm 55913575 30252089 4 30241734 Samurai Left Leg 30254703 Shirt http://www.watrbx.wtf/asset/?id=82275375 http://www.watrbx.wtf/asset/?id=51619387 Shirt Graphic Pants http://www.watrbx.wtf/asset/?id=3422179 0 0 0 1 0 0 0 1 0 0 0 1 Player92 RBX87 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 31.9375 5.1125021 -61.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -4.19274613e-007 -0.00915919337 -4.19274613e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=7074749 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.48000002 -0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX87 RBX91 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX87 RBX93 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX87 RBX95 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.48000002 -0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX87 RBX91 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX87 RBX93 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX87 RBX95 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.48000002 -0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX87 RBX91 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX87 RBX93 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX87 RBX95 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.48000002 -0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX87 RBX91 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX87 RBX93 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX87 RBX95 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.48000002 -0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX87 RBX91 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX87 RBX93 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX87 RBX95 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.48000002 -0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX87 RBX91 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX87 RBX93 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX87 RBX95 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.48000002 -0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX87 RBX91 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX87 RBX93 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX87 RBX95 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.48000002 -0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX87 RBX91 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX87 RBX93 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX87 RBX95 false -0.5 0.5 0 0 -0.5 0.5 4 0 194 31.9375 3.61250234 -61.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -4.19274613e-007 -0.00915919337 -4.19274613e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX117 RBX120 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX117 RBX122 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX117 RBX124 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX117 RBX126 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX117 RBX87 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 33.4375 3.61250234 -61.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -4.19274613e-007 -0.00915919337 -4.19274613e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 30.4375 3.61250234 -61.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -4.19274613e-007 -0.00915919337 -4.19274613e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 194 32.4375 1.61250234 -61.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -4.19274613e-007 -0.00915919337 -4.19274613e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 194 31.4375 1.61250234 -61.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -4.19274613e-007 -0.00915919337 -4.19274613e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 1.48000002 -0.0199999996 1 0 0 0 1 0 0 0 1 GoldenEggBeaters false -0.5 0.5 0 0 -0.5 0.5 0 0 194 31.9375 4.13250208 -61.5825005 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -4.19274613e-007 -0.00915919337 -4.19274613e-007 2 1 1 2 1 2 2 http://www.watrbx.wtf/asset/?id=25089828 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=25089803 1 1 1 Shirt http://www.watrbx.wtf/asset/?id=32400654 Pants http://www.watrbx.wtf/asset/?id=32403886 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 Vet's Medal false -0.5 0.5 0 0 -0.5 0.5 0 0 194 31.2374992 4.1125021 -60.9625015 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -4.19274613e-007 -0.00915919337 -4.19274613e-007 0 1 1 1 1 2 2 http://www.watrbx.wtf/asset/?id=42157374 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=42157349 1 1 1 0 0.200000003 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 DisneyXDHelmet1 false -0.5 0.5 0 0 -0.5 0.5 0 0 194 31.9374943 5.41349506 -61.5425949 -1 2.89589861e-005 -3.19997998e-005 3.19997998e-005 0.995035768 -0.0995167717 2.89589861e-005 -0.0995167717 -0.995035768 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -4.19274613e-007 -0.00915919337 -4.19274613e-007 0 1 1 1 2 2 2 http://www.watrbx.wtf/asset/?id=23153206 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=23153203 1 1 1 1030 1030 194 Body Colors 1030 194 194 0 0 0 1 0 0 0 1 0 0 0 1 Player96 RBX144 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 20.9375 5.17500257 -65.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.37091773e-007 0.0139174825 -6.37091773e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=19398553 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX144 RBX148 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX144 RBX148 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX144 RBX148 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX144 RBX148 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX144 RBX148 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX144 RBX148 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX144 RBX148 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX144 RBX148 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 20.9375 3.67500257 -65.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -6.37091773e-007 0.0139174825 -6.37091773e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX156 RBX159 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX156 RBX161 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX156 RBX163 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX156 RBX165 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX156 RBX144 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 22.4375 3.67500257 -65.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.37091773e-007 0.0139174825 -6.37091773e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 19.4375 3.67500257 -65.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.37091773e-007 0.0139174825 -6.37091773e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 26 21.4375 1.67500257 -65.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.37091773e-007 0.0139174825 -6.37091773e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 26 20.4375 1.67500257 -65.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.37091773e-007 0.0139174825 -6.37091773e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 Shirt http://www.watrbx.wtf/asset/?id=18063491 0 0.400000006 0 1 0 0 0 1 0 0 0 1 Skull Cap false -0.5 0.5 0 0 -0.5 0.5 0 0 194 20.9375 5.27500248 -65.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.37091773e-007 0.0139174825 -6.37091773e-007 0 1 1 1 2 2 2 http://www.watrbx.wtf/asset/?id=20256652 5 Mesh 0 0 0 1.04999995 1.04999995 1.04999995 http://www.watrbx.wtf/asset/?id=20256636 1 1 1 Pants http://www.watrbx.wtf/asset/?id=18070341 125 226 26 Body Colors 226 26 125 0 0 0 1 0 0 0 1 0 0 0 1 Player97 RBX179 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 -4.0625 5.14998055 -81.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -4.00330521e-007 0.00874535367 -4.00330521e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=10526794 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX179 RBX183 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX179 RBX185 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.430000007 -0.0250000004 1 0 0 0 1 0 0 0 1 HeadWeld RBX179 RBX187 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX179 RBX183 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX179 RBX185 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.430000007 -0.0250000004 1 0 0 0 1 0 0 0 1 HeadWeld RBX179 RBX187 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX179 RBX183 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX179 RBX185 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.430000007 -0.0250000004 1 0 0 0 1 0 0 0 1 HeadWeld RBX179 RBX187 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX179 RBX183 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX179 RBX185 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.430000007 -0.0250000004 1 0 0 0 1 0 0 0 1 HeadWeld RBX179 RBX187 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX179 RBX183 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX179 RBX185 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.430000007 -0.0250000004 1 0 0 0 1 0 0 0 1 HeadWeld RBX179 RBX187 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX179 RBX183 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX179 RBX185 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.430000007 -0.0250000004 1 0 0 0 1 0 0 0 1 HeadWeld RBX179 RBX187 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX179 RBX183 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX179 RBX185 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.430000007 -0.0250000004 1 0 0 0 1 0 0 0 1 HeadWeld RBX179 RBX187 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX179 RBX183 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX179 RBX185 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.430000007 -0.0250000004 1 0 0 0 1 0 0 0 1 HeadWeld RBX179 RBX187 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 -4.0625 3.64998078 -81.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -4.00330521e-007 0.00874535367 -4.00330521e-007 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=7558477 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX209 RBX212 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX209 RBX214 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX209 RBX216 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX209 RBX218 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX209 RBX179 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 -2.5625 3.64998078 -81.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -4.00330521e-007 0.00874535367 -4.00330521e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 -5.5625 3.64998055 -81.5125046 -1 -0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -4.00330521e-007 0.00874535367 -4.00330521e-007 0 1 1 2 1 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -0.600000024 -0.550000012 1 0 0 0 0 -1 0 1 0 RightGrip RBX212 RBX221 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -0.600000024 -0.550000012 1 0 0 0 0 -1 0 1 0 RightGrip RBX212 RBX221 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -0.600000024 -0.550000012 1 0 0 0 0 -1 0 1 0 RightGrip RBX212 RBX221 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -0.600000024 -0.550000012 1 0 0 0 0 -1 0 1 0 RightGrip RBX212 RBX221 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -0.600000024 -0.550000012 1 0 0 0 0 -1 0 1 0 RightGrip RBX212 RBX221 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -0.600000024 -0.550000012 1 0 0 0 0 -1 0 1 0 RightGrip RBX212 RBX221 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -0.600000024 -0.550000012 1 0 0 0 0 -1 0 1 0 RightGrip RBX212 RBX221 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -0.600000024 -0.550000012 1 0 0 0 0 -1 0 1 0 RightGrip RBX212 RBX221 false -0.5 0.5 0 0 -0.5 0.5 0 0 226 -3.5625 1.64998078 -81.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -4.00330521e-007 0.00874535367 -4.00330521e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 226 -4.5625 1.64998078 -81.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -4.00330521e-007 0.00874535367 -4.00330521e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 1 226 226 Body Colors 226 226 226 false Health 7 false HealthScript v3.1 8 0 0.400000006 0 1 0 0 0 1 0 0 0 1 NinjaMaskOfShadows false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -4.0625 5.24998045 -81.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -4.00330521e-007 0.00874535367 -4.00330521e-007 2 1 1 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=1286427 5 Mesh 0 0 0 1.10000002 1.10000002 1.10000002 http://www.watrbx.wtf/asset/?id=1309894 1 1 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 Swordpack false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -4.0625 4.24998045 -82.3625031 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -4.00330521e-007 0.00874535367 -4.00330521e-007 0 1 3 3 2 2 2 http://www.watrbx.wtf/asset/?id=19367813 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=19367808 1 1 1 true true 0 -0.600000024 -0.550000012 1 0 0 0 0 -1 0 1 0 SuperGDisruptor http://www.watrbx.wtf/asset/?id=13505853 false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -5.5625 2.04998064 -80.9625015 -1 0 -0 0 -1 0 0 0 1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 false 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -4.00330521e-007 0.00874535367 -4.00330521e-007 2 1 1 2 1 false EquipSound 1 false http://www.watrbx.wtf/asset/?id=10756118 0.5 2 2 http://www.watrbx.wtf/asset/?id=13505848 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=13505861 1 1 1 true LaserBlast 48 false RayGun 49 false Local Gui local Tool = script.Parent; enabled = true function onButton1Down(mouse) if not enabled then return end enabled = false mouse.Icon = "rbxasset://textures\\GunWaitCursor.png" wait(.2) mouse.Icon = "rbxasset://textures\\GunCursor.png" enabled = true end function onEquippedLocal(mouse) if mouse == nil then print("Mouse not found") return end mouse.Icon = "rbxasset://textures\\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end Tool.Equipped:connect(onEquippedLocal) 0 0.430000007 -0.0250000004 1 0 0 0 1 0 0 0 1 Bandana false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -4.0625 5.21998072 -81.5875015 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -4.00330521e-007 0.00874535367 -4.00330521e-007 2 1 1 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=1369333 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=1369332 1 1 1 Shirt http://www.watrbx.wtf/asset/?id=7580766 Pants http://www.watrbx.wtf/asset/?id=7744987 http://www.watrbx.wtf/asset/?id=7558477 Shirt Graphic 0 0 0 1 0 0 0 1 0 0 0 1 Player98 RBX252 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 22.9375 5.18747854 -90.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -9.76822321e-007 0.0213390086 -9.76822321e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=14083319 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX252 RBX256 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX252 RBX258 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX252 RBX256 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX252 RBX258 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX252 RBX256 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX252 RBX258 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX252 RBX256 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX252 RBX258 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX252 RBX256 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX252 RBX258 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX252 RBX256 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX252 RBX258 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX252 RBX256 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX252 RBX258 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX252 RBX256 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX252 RBX258 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 22.9375 3.68747854 -90.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -9.76822321e-007 0.0213390086 -9.76822321e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX273 RBX276 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX273 RBX278 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX273 RBX280 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX273 RBX282 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX273 RBX252 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 24.4375 3.68747854 -90.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.76822321e-007 0.0213390086 -9.76822321e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 21.4375 3.68747854 -90.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.76822321e-007 0.0213390086 -9.76822321e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 226 23.4375 1.68747854 -90.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.76822321e-007 0.0213390086 -9.76822321e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 226 22.4375 1.68747854 -90.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.76822321e-007 0.0213390086 -9.76822321e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 Sideswept Bangs Brown false -0.5 0.5 0 0 -0.5 0.5 0 0 194 23.0414467 5.38747263 -90.6546478 -0.980608702 2.73636051e-005 -0.195971295 3.33735225e-005 1 -2.73636051e-005 0.195971295 -3.33735225e-005 -0.980608702 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -9.76822321e-007 0.0213390086 -9.76822321e-007 0 1 1 1 2 2 2 http://www.watrbx.wtf/asset/?id=19999424 5 Mesh 0 0 0 1.07000005 1.07000005 1.07000005 http://www.watrbx.wtf/asset/?id=20571982 1 1 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 Vet's Medal false -0.5 0.5 0 0 -0.5 0.5 0 0 194 22.2374992 4.18747854 -89.9625015 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -9.76822321e-007 0.0213390086 -9.76822321e-007 0 1 1 1 1 2 2 http://www.watrbx.wtf/asset/?id=42157374 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=42157349 1 1 1 Pants http://www.watrbx.wtf/asset/?id=29619156 Shirt http://www.watrbx.wtf/asset/?id=29619137 226 226 226 Body Colors 226 226 226 0 0 0 1 0 0 0 1 0 0 0 1 Player99 RBX298 false -0.5 0.5 0 0 -0.5 0.5 4 0 104 11 5.112463 -99.625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.85884629e-007 -0.00499445945 -6.85884629e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=7074780 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX298 RBX302 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX298 RBX304 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX298 RBX302 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX298 RBX304 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX298 RBX302 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX298 RBX304 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX298 RBX302 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX298 RBX304 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX298 RBX302 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX298 RBX304 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX298 RBX302 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX298 RBX304 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX298 RBX302 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX298 RBX304 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX298 RBX302 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX298 RBX304 false -0.5 0.5 0 0 -0.5 0.5 4 0 208 11 3.61246276 -99.625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -6.85884629e-007 -0.00499445945 -6.85884629e-007 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?version=1&id=1139734 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX319 RBX322 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX319 RBX324 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX319 RBX326 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX319 RBX328 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX319 RBX298 false -0.5 0.5 0 0 -0.5 0.5 4 0 21 12.5 3.61246276 -99.625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.85884629e-007 -0.00499445945 -6.85884629e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 23 9.5 3.61246276 -99.625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.85884629e-007 -0.00499445945 -6.85884629e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1 11.5 1.61246276 -99.625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.85884629e-007 -0.00499445945 -6.85884629e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1 10.5 1.61246276 -99.625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.85884629e-007 -0.00499445945 -6.85884629e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.100000001 0 1 0 0 0 1 0 0 0 1 BCEgg false -0.5 0.5 0 0 -0.5 0.5 0 0 1 11 5.51246309 -99.625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.85884629e-007 -0.00499445945 -6.85884629e-007 0 0 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=1527559 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=1530169 1 1 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 GoldTetris false -0.5 0.5 0 0 -0.5 0.5 0 0 194 11 6.2124629 -99.625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.85884629e-007 -0.00499445945 -6.85884629e-007 2 1 1 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=5839207 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=5839168 1 1 1 Pants http://www.watrbx.wtf/asset/?id=1861788 http://www.watrbx.wtf/asset/?version=1&id=1139734 Shirt Graphic Shirt http://www.watrbx.wtf/asset/?id=8961746 104 21 1 Body Colors 23 1 208 false true -0.5 0.5 0 0 -0.5 0.5 4 0 194 93 1.20000005 53 1 0 0 0 1 0 0 0 1 true 10 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 false 256 SpawnLocation true 0 -0.5 0.5 0 0 0 0 0 194 -0.5 0.5 3 0 0 0 0 0 1 1 4 1.20000005 4 null 0 -30.2131996 60.6757889 130.397705 0.975160301 0.0629035756 -0.212380886 -7.4505806e-009 0.958827794 0.283988297 0.221500576 -0.276934117 0.935010672 70 -29.7884369 60.107811 128.527679 1 0 0 0 1 0 0 0 1 Camera true -0.5 0.5 0 0 -0.5 0.5 4 0 194 -2 126 -2 1 0 0 0 1 0 0 0 1 true 0.300000012 0.5 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Terrain 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 0 0 0 2044 252 2044 true -0.5 0.5 0 0 -0.5 0.5 4 0 194 0 0 0 1 0 0 0 1 0 0 0 1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 false 256 Floor 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 0 0 0 1 1 400 1.20000005 400 0 0 0 1 0 0 0 1 0 0 0 1 Player1 RBX348 false -0.5 0.5 0 0 -0.5 0.5 4 0 104 45 5.17499685 -29.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.63256999e-008 0.00106992107 -1.63256999e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX348 RBX352 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 -0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX348 RBX354 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX348 RBX356 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX348 RBX352 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 -0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX348 RBX354 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX348 RBX356 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX348 RBX352 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 -0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX348 RBX354 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX348 RBX356 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX348 RBX352 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 -0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX348 RBX354 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX348 RBX356 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX348 RBX352 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 -0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX348 RBX354 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX348 RBX356 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX348 RBX352 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 -0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX348 RBX354 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX348 RBX356 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX348 RBX352 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 -0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX348 RBX354 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX348 RBX356 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX348 RBX352 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 -0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX348 RBX354 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX348 RBX356 false -0.5 0.5 0 0 -0.5 0.5 4 0 26 45 3.67499685 -29.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.63256999e-008 0.00106992107 -1.63256999e-008 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?version=1&id=1029247 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX378 RBX381 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX378 RBX383 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX378 RBX385 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX378 RBX387 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX378 RBX348 false -0.5 0.5 0 0 -0.5 0.5 4 0 104 46.5 3.67499685 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.63256999e-008 0.00106992107 -1.63256999e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 104 43.5 3.67499685 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.63256999e-008 0.00106992107 -1.63256999e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 104 45.5 1.67499685 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.63256999e-008 0.00106992107 -1.63256999e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 104 44.5 1.67499685 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.63256999e-008 0.00106992107 -1.63256999e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 0 -0.349999994 0 1 0 0 0 1 0 0 0 1 PirateHat false -0.5 0.5 0 0 -0.5 0.5 0 0 194 45 6.02499676 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.63256999e-008 0.00106992107 -1.63256999e-008 2 1 2 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=1028848 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=1028847 1 1 1 false Health 7 false HealthScript v3.1 8 0 4 32331927 Slinger Left Leg 0 0 0 -0.0299999993 1 0 0 0 1 0 0 0 1 ChineseWarriorHat false -0.5 0.5 0 0 -0.5 0.5 0 0 194 45 5.67499685 -29.5925007 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.63256999e-008 0.00106992107 -1.63256999e-008 0 1 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=31148653 5 Mesh 0 0 0 1 1 0.850000024 http://www.watrbx.wtf/asset/?id=31148658 1 1 1 104 104 104 Body Colors 104 104 26 0 1 32332055 Slinger Torso 0 0 2 32331863 Slinger Left Arm 0 0 5 32332020 Slinger Right Leg 0 0 3 32331968 Slinger Right Arm 0 http://www.watrbx.wtf/asset/?version=1&id=1029247 Shirt Graphic 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 SparkleTimeFedora false -0.5 0.5 0 0 -0.5 0.5 0 0 194 45 5.77499676 -29.5125008 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.63256999e-008 0.00106992107 -1.63256999e-008 2 1 1 0.400000006 1 2 2 http://www.watrbx.wtf/asset/?id=1285237 5 Mesh 0 0 0 1.10000002 1.10000002 1.10000002 http://www.watrbx.wtf/asset/?id=1285232 1 1 1 0 0 0 1 0 0 0 1 0 0 0 1 Player RBX409 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 -1.607831 5.1000967 4.64133835 -0.129382372 2.57748534e-014 -0.991594672 -1.03274323e-014 1 2.7340848e-014 0.991594672 1.37780539e-014 -0.129382372 true 0.5 0 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 0 0 0 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 false -0.5 0.5 0 0 -0.5 0.5 4 0 23 -1.607831 3.60009694 4.64133835 -0.129382372 2.57748534e-014 -0.991594672 -1.03274323e-014 1 2.7340848e-014 0.991594672 1.37780539e-014 -0.129382372 true 0.5 0 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 0 0 0 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0.0412750728 0.150000006 Right Shoulder RBX412 RBX415 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0.0412750728 0.150000006 Left Shoulder RBX412 RBX417 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 -0.0412750728 0.100000001 Right Hip RBX412 RBX419 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 -0.0412750728 0.100000001 Left Hip RBX412 RBX421 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX412 RBX409 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 -1.41375744 3.60009694 3.1539464 -0.129382372 2.57748534e-014 -0.991594672 -1.03274323e-014 1 2.7340848e-014 0.991594672 1.37780539e-014 -0.129382372 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 0 0 0 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 -1.80190456 3.60009694 6.1287303 -0.129382372 2.57748534e-014 -0.991594672 -1.03274323e-014 1 2.7340848e-014 0.991594672 1.37780539e-014 -0.129382372 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 0 0 0 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 119 -1.54313982 1.60009694 4.14554119 -0.129382372 2.57748534e-014 -0.991594672 -1.03274323e-014 1 2.7340848e-014 0.991594672 1.37780539e-014 -0.129382372 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 0 0 0 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 119 -1.67252219 1.60009694 5.13713551 -0.129382372 2.57748534e-014 -0.991594672 -1.03274323e-014 1 2.7340848e-014 0.991594672 1.37780539e-014 -0.129382372 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 0 0 0 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0 0 1 0 0 0 1 0 0 0 1 Player10 RBX430 false -0.5 0.5 0 0 -0.5 0.5 4 0 135 16.9375 5.17499638 -17.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.63682099e-008 -0.001072707 -1.63682099e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.980000019 0.550000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX430 RBX434 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.980000019 0.550000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX430 RBX434 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.980000019 0.550000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX430 RBX434 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.980000019 0.550000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX430 RBX434 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.980000019 0.550000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX430 RBX434 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.980000019 0.550000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX430 RBX434 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.980000019 0.550000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX430 RBX434 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.980000019 0.550000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX430 RBX434 false -0.5 0.5 0 0 -0.5 0.5 4 0 28 16.9375 3.67499638 -17.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.63682099e-008 -0.001072707 -1.63682099e-008 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX442 RBX445 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX442 RBX447 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX442 RBX449 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX442 RBX451 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX442 RBX430 false -0.5 0.5 0 0 -0.5 0.5 4 0 26 18.4375 3.67499638 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.63682099e-008 -0.001072707 -1.63682099e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 26 15.4375 3.67499638 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.63682099e-008 -0.001072707 -1.63682099e-008 0 1 1 2 1 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -0.600000024 1 0 0 0 0 -1 0 1 0 RightGrip RBX445 RBX454 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -0.600000024 1 0 0 0 0 -1 0 1 0 RightGrip RBX445 RBX454 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -0.600000024 1 0 0 0 0 -1 0 1 0 RightGrip RBX445 RBX454 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -0.600000024 1 0 0 0 0 -1 0 1 0 RightGrip RBX445 RBX454 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -0.600000024 1 0 0 0 0 -1 0 1 0 RightGrip RBX445 RBX454 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -0.600000024 1 0 0 0 0 -1 0 1 0 RightGrip RBX445 RBX454 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -0.600000024 1 0 0 0 0 -1 0 1 0 RightGrip RBX445 RBX454 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -0.600000024 1 0 0 0 0 -1 0 1 0 RightGrip RBX445 RBX454 false -0.5 0.5 0 0 -0.5 0.5 0 0 26 17.4375 1.67499638 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.63682099e-008 -0.001072707 -1.63682099e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 26 16.4375 1.67499638 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.63682099e-008 -0.001072707 -1.63682099e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 true true 0 0 -0.600000024 1 0 0 0 0 -1 0 1 0 SkullTrident http://www.watrbx.wtf/asset/?id=62667458 false -0.5 0.5 0 0 -0.5 0.5 0 0 199 15.4375 2.67499638 -16.9624996 -1 0 0 0 -1 0 0 0 1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.63682099e-008 -0.001072707 -1.63682099e-008 3 1 1.44000196 0.200000003 8.77000046 2 2 http://www.watrbx.wtf/asset/?id=62667311 5 Mesh 0 0 0 1.79999995 1.79999995 1.79999995 http://www.watrbx.wtf/asset/?id=62667434 1 1 1 false Local Gui Tool = script.Parent local stillEquipped = false function onEquippedLocal(mouse) stillEquipped = true if mouse == nil then print("Mouse not found") return end while stillEquipped do print("Setting Mouse to go") mouse.Icon = "rbxasset://textures\\GunCursor.png" while Tool.Enabled and stillEquipped do wait(0.01) end print("Setting Mouse to wait") mouse.Icon = "rbxasset://textures\\GunWaitCursor.png" while not Tool.Enabled and stillEquipped do wait(0.01) end end end function onUnequippedLocal() stillEquipped = false end Tool.Equipped:connect(onEquippedLocal) Tool.Unequipped:connect(onUnequippedLocal) false LocalTridentScript local Tool = script.Parent local Trident = Tool.Handle local stabAnim local slashAnim local vCharacter local myHumanoid local myTorso local debris = game:GetService("Debris") local bodyVelocity = Instance.new("BodyVelocity") bodyVelocity.P = 10000 bodyVelocity.Name = "QuakeVel" bodyVelocity.maxForce = Vector3.new(10000, 10000, 10000) local AOE = Vector3.new(15, 15, 15) local slashAnim = Tool:FindFirstChild("SlashAnim") local stabAnim = Tool:FindFirstChild("StabAnim") local anim local allAnims = {stabAnim, slashAnim} local damage = 20 -- Form Skeleton local skeleton = {} skeleton["Hat"] = game:GetService("InsertService"):LoadAsset(36883367):GetChildren()[1] skeleton["Torso"] = game:GetService("InsertService"):LoadAsset(36781360):GetChildren()[1] skeleton["Left Arm"] = game:GetService("InsertService"):LoadAsset(36781447):GetChildren()[1] skeleton["Right Arm"] = game:GetService("InsertService"):LoadAsset(36781407):GetChildren()[1] skeleton["Left Leg"] = game:GetService("InsertService"):LoadAsset(36781481):GetChildren()[1] skeleton["Right Leg"] = game:GetService("InsertService"):LoadAsset(36781518):GetChildren()[1] -- function blow(hit) local character local nameCheck local foundIt = false if hit and hit.Parent then character = hit.Parent if hit.Parent.className == "Hat" then humanoid = hit.Parent.Parent:FindFirstChild("Humanoid") else humanoid = hit.Parent:FindFirstChild("Humanoid") end end vCharacter = Tool.Parent myHumanoid = vCharacter:FindFirstChild("Humanoid") vPlayer = game.Players:GetPlayerFromCharacter(vCharacter) if humanoid ~= nil and myHumanoid ~= nil and humanoid ~= myHumanoid then rightArm = vCharacter:FindFirstChild("Right Arm") if rightArm then rightGrip = rightArm:FindFirstChild("RightGrip") if rightGrip and (rightGrip.Part0 == Trident or rightGrip.Part1 == Trident) then tagHumanoid(humanoid, vPlayer) humanoid:TakeDamage(damage) if hit.Name == "Left Arm" then nameCheck = Enum.BodyPart.LeftArm elseif hit.Name == "Right Arm" then nameCheck = Enum.BodyPart.RightArm elseif hit.Name == "Right Leg" then nameCheck = Enum.BodyPart.RightLeg elseif hit.Name == "Left Leg" then nameCheck = Enum.BodyPart.LeftLeg elseif hit.Name == "Torso" then nameCheck = Enum.BodyPart.Torso elseif hit.Name == "Head" or (hit.Name == "Handle" and hit.Parent and hit.Parent.className == "Hat") then nameCheck = "Hat" end local children = character:GetChildren() for i = 1, #children do if children[i].className == "CharacterMesh" and children[i].BodyPart == nameCheck then foundIt = true print("Removing ", children[i]) children[i]:Remove() if skeleton[hit.Name] then skeleton[hit.Name]:Clone().Parent = character end end if children[i].className == "Hat" and nameCheck == "Hat" then children[i]:Remove() if skeleton[nameCheck] then skeleton[nameCheck]:Clone().Parent = character end end end if foundIt == false then if hit.Name =="Head" or (hit.Name == "Handle" and hit.Parent and hit.Parent.className == "Hat") then if skeleton[nameCheck] then skeleton[nameCheck]:Clone().Parent = character end else if skeleton[hit.Name] then skeleton[hit.Name]:Clone().Parent = character end end end myHumanoid.MaxHealth = myHumanoid.MaxHealth + 1 end end end end function tagHumanoid(humanoid, player) if humanoid ~= nil then creatorTag = Instance.new("ObjectValue") creatorTag.Name = "creator" creatorTag.Value = player creatorTag.Parent = humanoid debris:AddItem(creatorTag, 1) end end function onActivated() if Tool.Enabled == false then return end vCharacter = Tool.Parent myHumanoid = vCharacter:FindFirstChild("Humanoid") if myHumanoid == nil then return end tick() local rand = math.random(1, 2) anim = myHumanoid:LoadAnimation(allAnims[rand]) if anim then anim:Play() end if rand == 2 then Tool.GripPos = Vector3.new(0, 0, -2.8) wait(1.2) Tool.GripPos = Vector3.new(0, 0, -0.6) else wait(0.2) Tool.GripUp = Vector3.new(0, 0, -1) Tool.GripPos = Vector3.new(0, 0, -3.0) wait(0.7) Tool.GripPos = Vector3.new(0, 0, -0.6) Tool.GripUp = Vector3.new(0, 0, 1) end end function onEquipped(mouse) vCharacter = Tool.Parent end function onUnequipped() if anim then anim:Stop() end end Tool.Activated:connect(onActivated) Tool.Equipped:connect(onEquipped) Tool.Unequipped:connect(onUnequipped) Trident.Touched:connect(blow) true TridentScript 17 false QuakeSound 1 false http://www.watrbx.wtf/asset/?id=54120656 1 http://www.watrbx.wtf/asset/?ID=54121922 SlashAnim http://www.watrbx.wtf/asset/?ID=54124170 StabAnim 0 0.980000019 0.550000012 1 0 0 0 1 0 0 0 1 ElephantEarsnTrunk false -0.5 0.5 0 0 -0.5 0.5 0 0 194 16.9375 4.69499636 -17.0125008 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.63682099e-008 -0.001072707 -1.63682099e-008 0 1 3 2 1 2 2 http://www.watrbx.wtf/asset/?id=32241559 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=32241567 1 1 1 135 26 26 Body Colors 26 26 28 0 0 0 1 0 0 0 1 0 0 0 1 Player100 RBX480 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 39.9375 5.1124649 -22.5 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -9.04260901e-007 -0.0197538808 -3.014203e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=7074780 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX480 RBX484 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX480 RBX484 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX480 RBX484 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX480 RBX484 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX480 RBX484 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX480 RBX484 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX480 RBX484 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX480 RBX484 false -0.5 0.5 0 0 -0.5 0.5 4 0 199 39.9375 3.6124649 -22.5 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -9.04260901e-007 -0.0197538808 -3.014203e-007 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=5244856 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX492 RBX495 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX492 RBX497 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX492 RBX499 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX492 RBX501 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX492 RBX480 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 41.4375 3.6124649 -22.5 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.04260901e-007 -0.0197538808 -3.014203e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 38.4375 3.6124649 -22.5 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.04260901e-007 -0.0197538808 -3.014203e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 102 40.4375 1.6124649 -22.5 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.04260901e-007 -0.0197538808 -3.014203e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 102 39.4375 1.6124649 -22.5 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.04260901e-007 -0.0197538808 -3.014203e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 Fedora false -0.5 0.5 0 0 -0.5 0.5 0 0 194 39.9375076 5.8612237 -22.5248795 -1 2.89589861e-005 -3.19997998e-005 3.19997998e-005 0.995035768 -0.0995167717 2.89589861e-005 -0.0995167717 -0.995035768 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -9.04260901e-007 -0.0197538808 -3.014203e-007 2 1 2 0.800000012 2 2 2 http://www.watrbx.wtf/asset/?id=13640868 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=18987684 1 1 1 Shirt http://www.watrbx.wtf/asset/?id=2707718 Pants http://www.watrbx.wtf/asset/?id=1814846 http://www.watrbx.wtf/asset/?id=5244856 Shirt Graphic 24 24 102 Body Colors 24 102 199 0 0 0 1 0 0 0 1 0 0 0 1 Player11 RBX516 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 4.9375 5.17500353 -29.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -7.62769261e-008 0.00499888463 -7.62769261e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=19398553 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25999999 0.150000006 1 0 0 0 1 0 0 0 1 HeadWeld RBX516 RBX520 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX516 RBX522 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25999999 0.150000006 1 0 0 0 1 0 0 0 1 HeadWeld RBX516 RBX520 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX516 RBX522 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25999999 0.150000006 1 0 0 0 1 0 0 0 1 HeadWeld RBX516 RBX520 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX516 RBX522 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25999999 0.150000006 1 0 0 0 1 0 0 0 1 HeadWeld RBX516 RBX520 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX516 RBX522 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25999999 0.150000006 1 0 0 0 1 0 0 0 1 HeadWeld RBX516 RBX520 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX516 RBX522 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25999999 0.150000006 1 0 0 0 1 0 0 0 1 HeadWeld RBX516 RBX520 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX516 RBX522 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25999999 0.150000006 1 0 0 0 1 0 0 0 1 HeadWeld RBX516 RBX520 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX516 RBX522 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25999999 0.150000006 1 0 0 0 1 0 0 0 1 HeadWeld RBX516 RBX520 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX516 RBX522 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 4.9375 3.67500353 -29.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -7.62769261e-008 0.00499888463 -7.62769261e-008 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX537 RBX540 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX537 RBX542 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX537 RBX544 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX537 RBX546 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX537 RBX516 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 6.4375 3.67500353 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -7.62769261e-008 0.00499888463 -7.62769261e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 3.4375 3.67500353 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -7.62769261e-008 0.00499888463 -7.62769261e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 5.4375 1.67500353 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -7.62769261e-008 0.00499888463 -7.62769261e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 4.4375 1.67500353 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -7.62769261e-008 0.00499888463 -7.62769261e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 Pants http://www.watrbx.wtf/asset/?id=3369925 0 0.25999999 0.150000006 1 0 0 0 1 0 0 0 1 ClockworksShades false -0.5 0.5 0 0 -0.5 0.5 0 0 194 4.9375 5.41500378 -29.4125004 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -7.62769261e-008 0.00499888463 -7.62769261e-008 2 1 1 1.60000002 1 2 2 http://www.watrbx.wtf/asset/?id=1577360 5 Mesh 0 0 0 1 1.29999995 1 http://www.watrbx.wtf/asset/?id=1577349 1 1 1 Shirt http://www.watrbx.wtf/asset/?id=29958574 0 -0.100000001 0.0299999993 1 0 0 0 1 0 0 0 1 RedSparkletimeFedora false -0.5 0.5 0 0 -0.5 0.5 0 0 194 4.9375 5.77500343 -29.5324993 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -7.62769261e-008 0.00499888463 -7.62769261e-008 3 1 1.59999919 0.599999845 1.80000019 2 2 http://www.watrbx.wtf/asset/?id=72081410 5 Mesh 0 0 0 1.10000002 1.10000002 1.10000002 http://www.watrbx.wtf/asset/?id=72081397 1 1 1 125 125 1003 Body Colors 125 1003 1003 0 0 0 1 0 0 0 1 0 0 0 1 Player12 RBX562 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 10.9375 5.17502689 -6.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -9.26015105e-008 0.00606873259 -9.26015105e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=13038247 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.170000002 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX562 RBX566 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.170000002 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX562 RBX566 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.170000002 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX562 RBX566 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.170000002 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX562 RBX566 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.170000002 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX562 RBX566 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.170000002 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX562 RBX566 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.170000002 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX562 RBX566 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.170000002 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX562 RBX566 false -0.5 0.5 0 0 -0.5 0.5 4 0 21 10.9375 3.67502713 -6.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -9.26015105e-008 0.00606873259 -9.26015105e-008 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=14866369 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX574 RBX577 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX574 RBX579 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX574 RBX581 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX574 RBX583 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX574 RBX562 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 12.4375 3.67502713 -6.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.26015105e-008 0.00606873259 -9.26015105e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 9.4375 3.67502713 -6.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.26015105e-008 0.00606873259 -9.26015105e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 23 11.4375 1.67502713 -6.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.26015105e-008 0.00606873259 -9.26015105e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 23 10.4375 1.67502713 -6.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.26015105e-008 0.00606873259 -9.26015105e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 -0.170000002 0 1 0 0 0 1 0 0 0 1 Winter Cap false -0.5 0.5 0 0 -0.5 0.5 0 0 194 10.9375 5.84502697 -6.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -9.26015105e-008 0.00606873259 -9.26015105e-008 0 1 1 1 2 2 2 http://www.watrbx.wtf/asset/?id=13030731 5 Mesh 0 0 0 0.949999988 0.949999988 0.949999988 http://www.watrbx.wtf/asset/?id=21024861 1 1 1 http://www.watrbx.wtf/asset/?id=14866369 Shirt Graphic Pants http://www.watrbx.wtf/asset/?id=22604481 Shirt http://www.watrbx.wtf/asset/?id=22647567 125 125 23 Body Colors 125 23 21 0 0 0 1 0 0 0 1 0 0 0 1 Player13 RBX598 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 -6.0625 5.17499638 -17.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.64024492e-008 0.00107495091 -1.64024492e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.270000011 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX598 RBX602 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.900000036 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX598 RBX604 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.270000011 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX598 RBX602 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.900000036 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX598 RBX604 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.270000011 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX598 RBX602 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.900000036 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX598 RBX604 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.270000011 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX598 RBX602 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.900000036 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX598 RBX604 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.270000011 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX598 RBX602 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.900000036 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX598 RBX604 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.270000011 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX598 RBX602 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.900000036 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX598 RBX604 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.270000011 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX598 RBX602 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.900000036 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX598 RBX604 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.270000011 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX598 RBX602 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.900000036 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX598 RBX604 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 -6.0625 3.67499638 -17.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.64024492e-008 0.00107495091 -1.64024492e-008 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX619 RBX622 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX619 RBX624 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX619 RBX626 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX619 RBX628 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX619 RBX598 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 -4.5625 3.67499638 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.64024492e-008 0.00107495091 -1.64024492e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 -7.5625 3.67499638 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.64024492e-008 0.00107495091 -1.64024492e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 102 -5.5625 1.67499638 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.64024492e-008 0.00107495091 -1.64024492e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 102 -6.5625 1.67499638 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.64024492e-008 0.00107495091 -1.64024492e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 -0.270000011 0 1 0 0 0 1 0 0 0 1 KittyEars false -0.5 0.5 0 0 -0.5 0.5 0 0 226 -6.0625 5.94499636 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.64024492e-008 0.00107495091 -1.64024492e-008 2 1 1 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=1374148 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=1374132 1 1 1 0 0.900000036 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 LongHairHeadBand false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -6.06252623 4.77946424 -17.4729347 -1 2.89589861e-005 -3.19997998e-005 3.19997998e-005 0.995035768 -0.0995167717 2.89589861e-005 -0.0995167717 -0.995035768 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.64024492e-008 0.00107495091 -1.64024492e-008 2 1 1 2.4000001 2 2 2 http://www.watrbx.wtf/asset/?id=13070796 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=13070807 1 1 1 Pants http://www.watrbx.wtf/asset/?id=33041716 Shirt http://www.watrbx.wtf/asset/?id=39034228 125 125 102 Body Colors 125 102 125 0 0 0 1 0 0 0 1 0 0 0 1 Player14 RBX644 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 -48.0012665 5.09919739 8.49941635 -1 0 0 0 1 0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.64146101e-008 -0.00107574789 -1.64146101e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=20722053 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX644 RBX648 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX644 RBX650 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.10000002 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX644 RBX652 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX644 RBX648 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX644 RBX650 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.10000002 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX644 RBX652 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX644 RBX648 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX644 RBX650 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.10000002 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX644 RBX652 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX644 RBX648 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX644 RBX650 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.10000002 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX644 RBX652 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX644 RBX648 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX644 RBX650 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.10000002 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX644 RBX652 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX644 RBX648 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX644 RBX650 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.10000002 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX644 RBX652 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX644 RBX648 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX644 RBX650 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.10000002 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX644 RBX652 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX644 RBX648 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX644 RBX650 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.10000002 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX644 RBX652 false -0.5 0.5 0 0 -0.5 0.5 4 0 21 -48.0012665 3.59919739 8.49941635 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.64146101e-008 -0.00107574789 -1.64146101e-008 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=61219771 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX674 RBX677 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX674 RBX679 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX674 RBX681 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX674 RBX683 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX674 RBX644 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 -46.5012665 3.59919739 8.49941635 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.64146101e-008 -0.00107574789 -1.64146101e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 -49.5012665 3.59919739 8.49941635 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.64146101e-008 -0.00107574789 -1.64146101e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 21 -47.5012665 1.59919739 8.49941635 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.64146101e-008 -0.00107574789 -1.64146101e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 21 -48.5012665 1.59919739 8.49941635 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.64146101e-008 -0.00107574789 -1.64146101e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 Nerd Glasses false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -48.0012665 5.2991972 8.74941635 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.64146101e-008 -0.00107574789 -1.64146101e-008 2 1 1 0.400000006 1 2 2 http://www.watrbx.wtf/asset/?id=11419729 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=11419678 1 1 1 http://www.watrbx.wtf/asset/?id=61219771 Shirt Graphic 0 -0.25 0 1 0 0 0 1 0 0 0 1 RedTopHat false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -48.0012665 5.84919739 8.49941635 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.64146101e-008 -0.00107574789 -1.64146101e-008 2 1 2 0.800000012 2 2 2 http://www.watrbx.wtf/asset/?id=1028713 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=2972260 1 1 1 0 1.10000002 0.600000024 1 0 0 0 1 0 0 0 1 Red Bowtie false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -48.0012665 4.49919748 9.09941673 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.64146101e-008 -0.00107574789 -1.64146101e-008 0 1 1 1 1 2 2 http://www.watrbx.wtf/asset/?id=16593970 5 Mesh 0 0 0 0.600000024 0.600000024 0.600000024 http://www.watrbx.wtf/asset/?id=16596716 1 1 1 Pants http://www.watrbx.wtf/asset/?id=1804738 226 226 21 Body Colors 226 21 21 0 0 0 1 0 0 0 1 0 0 0 1 Player15 RBX701 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 -60.0625 5.11250162 38.4375 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.27578345e-008 0.00137096574 -6.27578345e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=16132434 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX701 RBX705 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX701 RBX707 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX701 RBX709 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX701 RBX705 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX701 RBX707 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX701 RBX709 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX701 RBX705 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX701 RBX707 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX701 RBX709 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX701 RBX705 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX701 RBX707 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX701 RBX709 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX701 RBX705 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX701 RBX707 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX701 RBX709 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX701 RBX705 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX701 RBX707 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX701 RBX709 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX701 RBX705 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX701 RBX707 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX701 RBX709 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX701 RBX705 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX701 RBX707 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX701 RBX709 false -0.5 0.5 0 0 -0.5 0.5 4 0 199 -60.0625 3.61250162 38.4375 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -6.27578345e-008 0.00137096574 -6.27578345e-008 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=38121527 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX731 RBX734 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX731 RBX736 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX731 RBX738 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX731 RBX740 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX731 RBX701 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 -58.5625 3.61250162 38.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.27578345e-008 0.00137096574 -6.27578345e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 -61.5625 3.61250162 38.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.27578345e-008 0.00137096574 -6.27578345e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 26 -59.5625 1.61250162 38.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.27578345e-008 0.00137096574 -6.27578345e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 26 -60.5625 1.61250162 38.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.27578345e-008 0.00137096574 -6.27578345e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.800000012 0 1 0 0 0 1 0 0 0 1 Bandana false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -60.0625 4.81250143 38.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.27578345e-008 0.00137096574 -6.27578345e-008 0 1 1 1 1 2 2 http://www.watrbx.wtf/asset/?id=20637493 5 Mesh 0 0 0 1 0.899999976 1 http://www.watrbx.wtf/asset/?id=20637003 1 1 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 Koala false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -60.0625 5.21250153 38.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.27578345e-008 0.00137096574 -6.27578345e-008 0 1 1 2 2 2 2 http://www.watrbx.wtf/asset/?id=44106450 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=44106410 1 1 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 Swordpack false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -60.0625 4.21250153 37.6375008 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.27578345e-008 0.00137096574 -6.27578345e-008 0 1 3 3 2 2 2 http://www.watrbx.wtf/asset/?id=19367813 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=19367808 1 1 1 http://www.watrbx.wtf/asset/?id=38121527 Shirt Graphic 1 1 26 Body Colors 1 26 199 0 0 0 1 0 0 0 1 0 0 0 1 Player16 RBX757 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 -46.0625 5.11249733 36.4375 -1 0 0 0 1 0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.60911942e-008 0.0010545525 -1.60911942e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX761 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX763 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 -0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX765 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX767 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX757 RBX769 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.370000005 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX771 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0900000036 0.180000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX773 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX775 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0900000036 0.180000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX777 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX761 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX763 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 -0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX765 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX767 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX757 RBX769 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.370000005 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX771 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0900000036 0.180000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX773 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX775 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0900000036 0.180000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX777 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX761 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX763 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 -0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX765 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX767 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX757 RBX769 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.370000005 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX771 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0900000036 0.180000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX773 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX775 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0900000036 0.180000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX777 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX761 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX763 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 -0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX765 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX767 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX757 RBX769 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.370000005 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX771 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0900000036 0.180000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX773 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX775 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0900000036 0.180000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX777 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX761 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX763 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 -0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX765 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX767 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX757 RBX769 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.370000005 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX771 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0900000036 0.180000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX773 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX775 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0900000036 0.180000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX777 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX761 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX763 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 -0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX765 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX767 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX757 RBX769 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.370000005 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX771 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0900000036 0.180000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX773 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX775 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0900000036 0.180000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX777 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX761 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX763 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 -0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX765 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX767 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX757 RBX769 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.370000005 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX771 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0900000036 0.180000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX773 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX775 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0900000036 0.180000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX777 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX761 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX763 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 -0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX765 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX767 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX757 RBX769 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.370000005 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX771 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0900000036 0.180000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX773 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX775 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0900000036 0.180000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX757 RBX777 false -0.5 0.5 0 0 -0.5 0.5 4 0 141 -46.0625 3.61249757 36.4375 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.60911942e-008 0.0010545525 -1.60911942e-008 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX841 RBX844 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX841 RBX846 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX841 RBX848 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX841 RBX850 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX841 RBX757 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 -44.5625 3.61249757 36.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.60911942e-008 0.0010545525 -1.60911942e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 -47.5625 3.61249757 36.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.60911942e-008 0.0010545525 -1.60911942e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 102 -45.5625 1.61249757 36.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.60911942e-008 0.0010545525 -1.60911942e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 102 -46.5625 1.61249757 36.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.60911942e-008 0.0010545525 -1.60911942e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 226 226 102 Body Colors 226 102 141 false Health 7 false HealthScript v3.1 8 0 0.100000001 0 1 0 0 0 1 0 0 0 1 BCEgg false -0.5 0.5 0 0 -0.5 0.5 0 0 1 -46.0625 5.51249743 36.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.60911942e-008 0.0010545525 -1.60911942e-008 0 0 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=1527559 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=1530169 1 1 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 PinkRibbons false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -46.0625 5.51249743 36.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.60911942e-008 0.0010545525 -1.60911942e-008 2 1 1 1.20000005 1 2 2 http://www.watrbx.wtf/asset/?id=1090788 5 Mesh 0 0 0 1.20000005 1.20000005 1.20000005 http://www.watrbx.wtf/asset/?id=1090789 1 1 1 0 0.100000001 -0.300000012 1 0 0 0 1 0 0 0 1 Backwards Cap Blue false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -46.0625 5.51249743 36.1375008 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.60911942e-008 0.0010545525 -1.60911942e-008 0 1 1 1 2 2 2 http://www.watrbx.wtf/asset/?id=17424204 5 Mesh 0 0 0 1.04999995 1.04999995 1.04999995 http://www.watrbx.wtf/asset/?id=17424198 1 1 1 0 0.349999994 0 1 0 0 0 1 0 0 0 1 Chainmail false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -46.0625 5.26249743 36.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.60911942e-008 0.0010545525 -1.60911942e-008 0 1 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=17420255 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=17420251 1 1 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 Fedora false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -46.0624924 5.86125612 36.4126205 -1 2.89589861e-005 -3.19997998e-005 3.19997998e-005 0.995035768 -0.0995167717 2.89589861e-005 -0.0995167717 -0.995035768 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.60911942e-008 0.0010545525 -1.60911942e-008 2 1 2 0.800000012 2 2 2 http://www.watrbx.wtf/asset/?id=13640868 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=18987684 1 1 1 0 0.370000005 0 1 0 0 0 1 0 0 0 1 Parka false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -46.0625 5.24249744 36.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.60911942e-008 0.0010545525 -1.60911942e-008 0 1 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=18010902 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=18010897 1 1 1 0 0.0900000036 0.180000007 1 0 0 0 1 0 0 0 1 YellowROBLOXVisor false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -46.0625 5.52249718 36.6175003 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.60911942e-008 0.0010545525 -1.60911942e-008 2 1 1 0.400000006 1 2 2 http://www.watrbx.wtf/asset/?id=1081088 5 Mesh 0 0 0 1.01999998 1.01999998 1.01999998 http://www.watrbx.wtf/asset/?id=7135943 1 1 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 StainlessGift false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -46.0625 6.41249752 36.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.60911942e-008 0.0010545525 -1.60911942e-008 2 1 2 1.60000002 2 2 2 http://www.watrbx.wtf/asset/?id=1237207 5 Mesh 0 0 0 1.5 1.5 1.5 http://www.watrbx.wtf/asset/?id=19906004 1 1 1 0 0.0900000036 0.180000007 1 0 0 0 1 0 0 0 1 GreenVisor false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -46.0625 5.52249718 36.6175003 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.60911942e-008 0.0010545525 -1.60911942e-008 2 1 1 0.400000006 1 2 2 http://www.watrbx.wtf/asset/?id=1081088 5 Mesh 0 0 0 1.01999998 1.01999998 1.01999998 http://www.watrbx.wtf/asset/?id=20264549 1 1 1 0 0 0 1 0 0 0 1 0 0 0 1 Player17 RBX878 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 -44.0005951 5.0941267 56.4990158 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.44442333e-007 -0.0160197727 -2.44442333e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=16132434 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX878 RBX882 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX878 RBX882 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX878 RBX882 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX878 RBX882 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX878 RBX882 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX878 RBX882 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX878 RBX882 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX878 RBX882 false -0.5 0.5 0 0 -0.5 0.5 4 0 199 -44.0005951 3.59412694 56.4990158 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -2.44442333e-007 -0.0160197727 -2.44442333e-007 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=48490217 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX890 RBX893 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX890 RBX895 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX890 RBX897 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX890 RBX899 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX890 RBX878 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 -42.5005951 3.59412694 56.4990158 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.44442333e-007 -0.0160197727 -2.44442333e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 -45.5005951 3.59412694 56.4990158 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.44442333e-007 -0.0160197727 -2.44442333e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 -43.5005951 1.59412694 56.4990158 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.44442333e-007 -0.0160197727 -2.44442333e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 -44.5005951 1.59412694 56.4990158 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.44442333e-007 -0.0160197727 -2.44442333e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 Fedora false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -44.0005951 5.69412661 56.549015 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.44442333e-007 -0.0160197727 -2.44442333e-007 2 1 1 0.400000006 1 2 2 http://www.watrbx.wtf/asset/?id=1029012 5 Mesh 0 0 0 1.10000002 1.10000002 1.10000002 http://www.watrbx.wtf/asset/?id=1028814 0.180000007 0.180000007 0.180000007 http://www.watrbx.wtf/asset/?id=48490217 Shirt Graphic 226 226 1003 Body Colors 226 1003 199 0 0 0 1 0 0 0 1 0 0 0 1 Player18 RBX912 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -78.0625 5.17500114 14.375 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.29307613e-007 -0.0115629006 -5.29307613e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=16101613 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.340000004 -0.239999995 1 3.41884443e-005 -2.63400671e-005 -2.63400671e-005 0.966930389 0.255040765 3.41884443e-005 -0.255040765 0.966930389 HeadWeld RBX912 RBX916 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.899999976 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX912 RBX918 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25999999 0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX912 RBX920 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.340000004 -0.239999995 1 3.41884443e-005 -2.63400671e-005 -2.63400671e-005 0.966930389 0.255040765 3.41884443e-005 -0.255040765 0.966930389 HeadWeld RBX912 RBX916 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.899999976 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX912 RBX918 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25999999 0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX912 RBX920 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.340000004 -0.239999995 1 3.41884443e-005 -2.63400671e-005 -2.63400671e-005 0.966930389 0.255040765 3.41884443e-005 -0.255040765 0.966930389 HeadWeld RBX912 RBX916 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.899999976 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX912 RBX918 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25999999 0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX912 RBX920 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.340000004 -0.239999995 1 3.41884443e-005 -2.63400671e-005 -2.63400671e-005 0.966930389 0.255040765 3.41884443e-005 -0.255040765 0.966930389 HeadWeld RBX912 RBX916 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.899999976 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX912 RBX918 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25999999 0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX912 RBX920 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.340000004 -0.239999995 1 3.41884443e-005 -2.63400671e-005 -2.63400671e-005 0.966930389 0.255040765 3.41884443e-005 -0.255040765 0.966930389 HeadWeld RBX912 RBX916 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.899999976 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX912 RBX918 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25999999 0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX912 RBX920 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.340000004 -0.239999995 1 3.41884443e-005 -2.63400671e-005 -2.63400671e-005 0.966930389 0.255040765 3.41884443e-005 -0.255040765 0.966930389 HeadWeld RBX912 RBX916 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.899999976 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX912 RBX918 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25999999 0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX912 RBX920 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.340000004 -0.239999995 1 3.41884443e-005 -2.63400671e-005 -2.63400671e-005 0.966930389 0.255040765 3.41884443e-005 -0.255040765 0.966930389 HeadWeld RBX912 RBX916 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.899999976 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX912 RBX918 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25999999 0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX912 RBX920 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.340000004 -0.239999995 1 3.41884443e-005 -2.63400671e-005 -2.63400671e-005 0.966930389 0.255040765 3.41884443e-005 -0.255040765 0.966930389 HeadWeld RBX912 RBX916 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.899999976 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX912 RBX918 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25999999 0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX912 RBX920 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 -78.0625 3.67500091 14.375 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -5.29307613e-007 -0.0115629006 -5.29307613e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX942 RBX945 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX942 RBX947 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX942 RBX949 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX942 RBX951 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX942 RBX912 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -76.5625 3.67500091 14.375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.29307613e-007 -0.0115629006 -5.29307613e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -79.5625 3.67500091 14.375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.29307613e-007 -0.0115629006 -5.29307613e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1004 -77.5625 1.67500091 14.375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.29307613e-007 -0.0115629006 -5.29307613e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1004 -78.5625 1.67500091 14.375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.29307613e-007 -0.0115629006 -5.29307613e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 1030 1030 1004 Body Colors 1030 1004 24 false Health 7 false HealthScript v3.1 8 0 1 27111894 Roblox 2.0 torso 0 0 3 27111864 Roblox 2.0 Right Arm 0 0 2 27111419 Roblox 2.0 Left Arm 0 0 4 27111857 Roblox 2.0 Left Leg 0 0 5 27111882 Roblox 2.0 Right Leg 0 0 -0.340000004 -0.239999995 1 3.41884443e-005 -2.63400671e-005 -2.63400671e-005 0.966930389 0.255040765 3.41884443e-005 -0.255040765 0.966930389 ValkyrieHelm false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -78.0625 5.9425478 14.0562229 -1 2.63400671e-005 -3.41884443e-005 3.41884443e-005 0.966930389 -0.255040765 2.63400671e-005 -0.255040765 -0.966930389 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.29307613e-007 -0.0115629006 -5.29307613e-007 2 1 1 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=1365696 5 Mesh 0 0 0 1 1 1.14999998 http://www.watrbx.wtf/asset/?id=1365693 1 1 1 Shirt http://www.watrbx.wtf/asset/?id=14961756 0 -0.899999976 0.0500000007 1 0 0 0 1 0 0 0 1 Atom false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -78.0625 6.57500124 14.4250002 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.29307613e-007 -0.0115629006 -5.29307613e-007 2 1 1 0.400000006 1 2 2 http://www.watrbx.wtf/asset/?id=10913794 5 Mesh 0 0 0 0.75 0.75 0.75 http://www.watrbx.wtf/asset/?id=10913771 1 1 1 Pants http://www.watrbx.wtf/asset/?id=14961767 0 -0.25999999 0.0299999993 1 0 0 0 1 0 0 0 1 Monopoly false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -78.0625 5.93500137 14.4049997 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.29307613e-007 -0.0115629006 -5.29307613e-007 0 1 2 1 2 2 2 http://www.watrbx.wtf/asset/?id=13647378 5 Mesh 0 0 0 0.949999988 0.899999976 0.949999988 http://www.watrbx.wtf/asset/?id=13647390 1 1 1 0 0 0 1 0 0 0 1 0 0 0 1 Player19 RBX974 false -0.5 0.5 0 0 -0.5 0.5 4 0 21 -72.0625 5.17499781 -44.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.30610739e-008 0.00216669054 -3.30610739e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX974 RBX978 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX974 RBX978 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX974 RBX978 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX974 RBX978 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX974 RBX978 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX974 RBX978 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX974 RBX978 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX974 RBX978 false -0.5 0.5 0 0 -0.5 0.5 4 0 26 -72.0625 3.67499781 -44.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -3.30610739e-008 0.00216669054 -3.30610739e-008 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX986 RBX989 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX986 RBX991 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX986 RBX993 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX986 RBX995 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX986 RBX974 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 -70.5625 3.67499781 -44.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.30610739e-008 0.00216669054 -3.30610739e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 -73.5625 3.67499781 -44.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.30610739e-008 0.00216669054 -3.30610739e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 26 -71.5625 1.67499781 -44.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.30610739e-008 0.00216669054 -3.30610739e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 -72.5625 1.67499781 -44.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.30610739e-008 0.00216669054 -3.30610739e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.100000001 0 1 0 0 0 1 0 0 0 1 BCEgg false -0.5 0.5 0 0 -0.5 0.5 0 0 1 -72.0625 5.5749979 -44.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.30610739e-008 0.00216669054 -3.30610739e-008 0 0 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=1527559 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=1530169 1 1 1 21 1003 26 Body Colors 1003 1003 26 0 0 0 1 0 0 0 1 0 0 0 1 Player2 RBX1007 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -19.0625 5.17499733 -9.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.55774704e-007 -0.036423251 -5.55774704e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=14861556 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0500000007 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1007 RBX1011 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0500000007 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1007 RBX1011 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0500000007 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1007 RBX1011 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0500000007 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1007 RBX1011 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0500000007 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1007 RBX1011 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0500000007 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1007 RBX1011 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0500000007 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1007 RBX1011 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0500000007 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1007 RBX1011 false -0.5 0.5 0 0 -0.5 0.5 4 0 1031 -19.0625 3.67499709 -9.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -5.55774704e-007 -0.036423251 -5.55774704e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX1019 RBX1022 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX1019 RBX1024 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX1019 RBX1026 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX1019 RBX1028 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX1019 RBX1007 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -17.5625 3.67499709 -9.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.55774704e-007 -0.036423251 -5.55774704e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -20.5625 3.67499709 -9.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.55774704e-007 -0.036423251 -5.55774704e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1030 -18.5625 1.67499709 -9.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.55774704e-007 -0.036423251 -5.55774704e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1030 -19.5625 1.67499709 -9.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.55774704e-007 -0.036423251 -5.55774704e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 -0.0500000007 0 1 0 0 0 1 0 0 0 1 CeruleanCrownOfOzymandias false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -19.0625 5.72499752 -9.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.55774704e-007 -0.036423251 -5.55774704e-007 2 1 1 0.400000006 1 2 2 http://www.watrbx.wtf/asset/?id=9461129 5 Mesh 0 0 0 2.5999999 2.5999999 2.5999999 http://www.watrbx.wtf/asset/?id=13370261 1 1 1 Shirt http://www.watrbx.wtf/asset/?id=15890599 Pants http://www.watrbx.wtf/asset/?id=26104567 1030 1030 1030 Body Colors 1030 1030 1031 0 0 0 1 0 0 0 1 0 0 0 1 Player20 RBX1042 false -0.5 0.5 0 0 -0.5 0.5 4 0 1004 -88.0014038 5.09670115 -39.5024071 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.00293967e-007 0.00657286542 -1.00293967e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 -88.0014038 3.59670115 -39.5024071 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.00293967e-007 0.00657286542 -1.00293967e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX1045 RBX1048 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX1045 RBX1050 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX1045 RBX1052 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX1045 RBX1054 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX1045 RBX1042 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 -86.5014038 3.59670115 -39.5024071 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.00293967e-007 0.00657286542 -1.00293967e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 -89.5014038 3.59670115 -39.5024071 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.00293967e-007 0.00657286542 -1.00293967e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 102 -87.5014038 1.59670115 -39.5024071 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.00293967e-007 0.00657286542 -1.00293967e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 102 -88.5014038 1.59670115 -39.5024071 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.00293967e-007 0.00657286542 -1.00293967e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 1004 1003 102 Body Colors 1003 102 1003 0 0 0 1 0 0 0 1 0 0 0 1 Player21 RBX1064 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 53.9375 5.11250257 -90.5625 -0.999938965 0 -0.0110483747 0 1 0 0.0110483747 0 -0.999938965 true 0.5 0 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.60735482e-007 0.00210679206 -1.60735482e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=15054328 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX1064 RBX1068 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1064 RBX1070 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1064 RBX1072 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX1064 RBX1068 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1064 RBX1070 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1064 RBX1072 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX1064 RBX1068 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1064 RBX1070 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1064 RBX1072 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX1064 RBX1068 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1064 RBX1070 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1064 RBX1072 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX1064 RBX1068 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1064 RBX1070 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1064 RBX1072 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX1064 RBX1068 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1064 RBX1070 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1064 RBX1072 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX1064 RBX1068 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1064 RBX1070 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1064 RBX1072 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX1064 RBX1068 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1064 RBX1070 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1064 RBX1072 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 53.9375 3.61250257 -90.5625 -0.999938965 0 -0.0110483747 -0 1 0 0.0110483747 0 -0.999938965 true 0.5 0 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.60735482e-007 0.00210679206 -1.60735482e-007 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=20383438 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX1094 RBX1097 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX1094 RBX1099 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX1094 RBX1101 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX1094 RBX1103 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX1094 RBX1064 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 55.4374084 3.61250257 -90.579071 -0.999938965 0 -0.0110483747 0 1 0 0.0110483747 0 -0.999938965 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.60735482e-007 0.00210679206 -1.60735482e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 52.4375916 3.61250257 -90.545929 -0.999938965 0 -0.0110483747 0 1 -0 0.0110483747 0 -0.999938965 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.60735482e-007 0.00210679206 -1.60735482e-007 0 1 1 2 1 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 0 -1 0 0 0 1 0 0 0 -1 RightGrip RBX1097 RBX1106 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 0 -1 0 0 0 1 0 0 0 -1 RightGrip RBX1097 RBX1106 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 0 -1 0 0 0 1 0 0 0 -1 RightGrip RBX1097 RBX1106 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 0 -1 0 0 0 1 0 0 0 -1 RightGrip RBX1097 RBX1106 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 0 -1 0 0 0 1 0 0 0 -1 RightGrip RBX1097 RBX1106 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 0 -1 0 0 0 1 0 0 0 -1 RightGrip RBX1097 RBX1106 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 0 -1 0 0 0 1 0 0 0 -1 RightGrip RBX1097 RBX1106 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 0 -1 0 0 0 1 0 0 0 -1 RightGrip RBX1097 RBX1106 false -0.5 0.5 0 0 -0.5 0.5 0 0 1030 54.4374695 1.61250257 -90.5680237 -0.999938965 0 -0.0110483747 0 1 0 0.0110483747 0 -0.999938965 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.60735482e-007 0.00210679206 -1.60735482e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1030 53.4375305 1.61250257 -90.5569763 -0.999938965 0 -0.0110483747 0 1 0 0.0110483747 0 -0.999938965 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.60735482e-007 0.00210679206 -1.60735482e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 true true 0 0 0 -1 0 0 0 1 0 0 0 -1 ZombieStaff http://www.watrbx.wtf/asset/?id=26337878 false -0.5 0.5 0 0 -0.5 0.5 4 0 194 52.4375916 2.61250257 -90.545929 0.999938965 0.0110483747 0 0 0 -1 -0.0110483747 0.999938965 0 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.60735482e-007 0.00210679206 -1.60735482e-007 1 1 1 6 1 2 2 http://www.watrbx.wtf/asset/?id=25922532 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=25922670 1 1 1 false SummonZombies! 18 false ChaseScript 19 false Robot 20 false PlaySounds 21 false Timer 22 false WeldScript 23 false Sound 1 false http://www.watrbx.wtf/asset/?id=25954372 1 false Sound 1 false http://www.watrbx.wtf/asset/?id=25954392 1 false Sound 1 false http://www.watrbx.wtf/asset/?id=25954407 1 false Health 7 false HealthScript v3.1 8 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 Swordpack false -0.5 0.5 0 0 -0.5 0.5 0 0 194 53.9286613 4.21250248 -91.3624496 -0.999938965 0 -0.0110483747 0 1 0 0.0110483747 0 -0.999938965 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.60735482e-007 0.00210679206 -1.60735482e-007 0 1 3 3 2 2 2 http://www.watrbx.wtf/asset/?id=19367813 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=19367808 1 1 1 1030 1030 1030 Body Colors 1030 1030 1030 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HoodOfTheInternationalFellowshipOfBuilders false -0.5 0.5 0 0 -0.5 0.5 0 0 194 53.9375 5.51250267 -90.5625 -0.999938965 0 -0.0110483747 0 1 0 0.0110483747 0 -0.999938965 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.60735482e-007 0.00210679206 -1.60735482e-007 0 1 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=16952952 5 Mesh 0 0 0 1.04999995 1.04999995 1.04999995 http://www.watrbx.wtf/asset/?id=17388648 1 1 1 Pants http://www.watrbx.wtf/asset/?id=5303018 Shirt http://www.watrbx.wtf/asset/?id=4881867 0 0.200000003 0 1 0 0 0 1 0 0 0 1 Fantasy 20 false -0.5 0.5 0 0 -0.5 0.5 0 0 194 53.9375 5.41250277 -90.5625 -0.999938965 0 -0.0110483747 0 1 0 0.0110483747 0 -0.999938965 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.60735482e-007 0.00210679206 -1.60735482e-007 0 1 1 2 2 2 2 http://www.watrbx.wtf/asset/?id=18817072 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=18817057 1 1 1 http://www.watrbx.wtf/asset/?id=20383438 Shirt Graphic 0 0 0 1 0 0 0 1 0 0 0 1 Player22 RBX1142 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 57.9375 5.11250019 -33.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.00203309e-007 0.00656692404 -1.00203309e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=7074780 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1142 RBX1146 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0500000007 0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX1142 RBX1148 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1142 RBX1150 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1142 RBX1146 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0500000007 0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX1142 RBX1148 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1142 RBX1150 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1142 RBX1146 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0500000007 0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX1142 RBX1148 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1142 RBX1150 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1142 RBX1146 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0500000007 0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX1142 RBX1148 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1142 RBX1150 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1142 RBX1146 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0500000007 0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX1142 RBX1148 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1142 RBX1150 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1142 RBX1146 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0500000007 0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX1142 RBX1148 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1142 RBX1150 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1142 RBX1146 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0500000007 0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX1142 RBX1148 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1142 RBX1150 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1142 RBX1146 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0500000007 0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX1142 RBX1148 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1142 RBX1150 false -0.5 0.5 0 0 -0.5 0.5 4 0 1031 57.9375 3.61249995 -33.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.00203309e-007 0.00656692404 -1.00203309e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX1172 RBX1175 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX1172 RBX1177 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX1172 RBX1179 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX1172 RBX1181 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX1172 RBX1142 false -0.5 0.5 0 0 -0.5 0.5 4 0 1031 59.4375 3.61249995 -33.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.00203309e-007 0.00656692404 -1.00203309e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1031 56.4375 3.61249995 -33.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.00203309e-007 0.00656692404 -1.00203309e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1031 58.4375 1.61249995 -33.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.00203309e-007 0.00656692404 -1.00203309e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1031 57.4375 1.61249995 -33.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.00203309e-007 0.00656692404 -1.00203309e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.100000001 0 1 0 0 0 1 0 0 0 1 BCEgg false -0.5 0.5 0 0 -0.5 0.5 0 0 1 57.9375 5.51250029 -33.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.00203309e-007 0.00656692404 -1.00203309e-007 0 0 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=1527559 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=1530169 1 1 1 0 -0.0500000007 0.100000001 1 0 0 0 1 0 0 0 1 Robloxclassicred false -0.5 0.5 0 0 -0.5 0.5 0 0 194 57.9375 5.66250038 -33.4625015 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.00203309e-007 0.00656692404 -1.00203309e-007 0 1 1 1 2 2 2 http://www.watrbx.wtf/asset/?id=46834172 5 Mesh 0 0 0 1.04999995 1.04999995 1.04999995 http://www.watrbx.wtf/asset/?id=47991609 1 1 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 GoldTetris false -0.5 0.5 0 0 -0.5 0.5 0 0 194 57.9375 6.2125001 -33.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.00203309e-007 0.00656692404 -1.00203309e-007 2 1 1 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=5839207 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=5839168 1 1 1 Pants http://www.watrbx.wtf/asset/?id=50712408 226 1031 1031 Body Colors 1031 1031 1031 0 0 0 1 0 0 0 1 0 0 0 1 Player23 RBX1198 false -0.5 0.5 0 0 -0.5 0.5 4 0 5 68.9375 5.11250114 -64.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.28443051e-008 -0.00215248438 -3.28443051e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=8329434 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1198 RBX1202 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX1198 RBX1204 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1198 RBX1202 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX1198 RBX1204 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1198 RBX1202 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX1198 RBX1204 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1198 RBX1202 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX1198 RBX1204 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1198 RBX1202 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX1198 RBX1204 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1198 RBX1202 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX1198 RBX1204 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1198 RBX1202 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX1198 RBX1204 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1198 RBX1202 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX1198 RBX1204 false -0.5 0.5 0 0 -0.5 0.5 4 0 5 68.9375 3.61250091 -64.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -3.28443051e-008 -0.00215248438 -3.28443051e-008 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=33323723 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX1219 RBX1222 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX1219 RBX1224 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX1219 RBX1226 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX1219 RBX1228 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX1219 RBX1198 false -0.5 0.5 0 0 -0.5 0.5 4 0 5 70.4375 3.61250091 -64.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.28443051e-008 -0.00215248438 -3.28443051e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 5 67.4375 3.61250091 -64.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.28443051e-008 -0.00215248438 -3.28443051e-008 0 1 1 2 1 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -0.699999988 -0.200000003 1 0 0 0 0 -1 0 1 0 RightGrip RBX1222 RBX1231 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -0.699999988 -0.200000003 1 0 0 0 0 -1 0 1 0 RightGrip RBX1222 RBX1231 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -0.699999988 -0.200000003 1 0 0 0 0 -1 0 1 0 RightGrip RBX1222 RBX1231 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -0.699999988 -0.200000003 1 0 0 0 0 -1 0 1 0 RightGrip RBX1222 RBX1231 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -0.699999988 -0.200000003 1 0 0 0 0 -1 0 1 0 RightGrip RBX1222 RBX1231 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -0.699999988 -0.200000003 1 0 0 0 0 -1 0 1 0 RightGrip RBX1222 RBX1231 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -0.699999988 -0.200000003 1 0 0 0 0 -1 0 1 0 RightGrip RBX1222 RBX1231 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -0.699999988 -0.200000003 1 0 0 0 0 -1 0 1 0 RightGrip RBX1222 RBX1231 false -0.5 0.5 0 0 -0.5 0.5 0 0 5 69.4375 1.61250091 -64.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.28443051e-008 -0.00215248438 -3.28443051e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 5 68.4375 1.61250091 -64.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.28443051e-008 -0.00215248438 -3.28443051e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.800000012 0 1 0 0 0 1 0 0 0 1 Bandana false -0.5 0.5 0 0 -0.5 0.5 0 0 194 68.9375 4.81250095 -64.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.28443051e-008 -0.00215248438 -3.28443051e-008 0 1 1 1 1 2 2 http://www.watrbx.wtf/asset/?id=20637493 5 Mesh 0 0 0 1 0.899999976 1 http://www.watrbx.wtf/asset/?id=20637003 1 1 1 http://www.watrbx.wtf/asset/?id=33323723 Shirt Graphic Pants http://www.watrbx.wtf/asset/?id=38257920 true true 0 -0.699999988 -0.200000003 1 0 0 0 0 -1 0 1 0 Revolver http://www.watrbx.wtf/asset/?id=25301918 false -0.5 0.5 0 0 -0.5 0.5 0 0 26 67.4375 1.91250086 -64.3625031 -1 0 0 0 -1 0 0 0 1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 false 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.28443051e-008 -0.00215248438 -3.28443051e-008 0 1 1 2 1 false EquipSound 1 false http://www.watrbx.wtf/asset/?id=13510737 1 2 2 http://www.watrbx.wtf/asset/?id=25298496 5 Mesh 0 0 0 1.5 1.5 1.5 http://www.watrbx.wtf/asset/?id=25298514 1 1 1 false reloadSound 1 false http://www.watrbx.wtf/asset/?id=25299064 1 true LaserBlast 24 false RayGun 25 false Local Gui local Tool = script.Parent; enabled = true function onButton1Down(mouse) if not enabled then return end enabled = false mouse.Icon = "rbxasset://textures\\GunWaitCursor.png" wait(.2) mouse.Icon = "rbxasset://textures\\GunCursor.png" enabled = true end function onEquippedLocal(mouse) if mouse == nil then print("Mouse not found") return end mouse.Icon = "rbxasset://textures\\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end Tool.Equipped:connect(onEquippedLocal) 0 -0.200000003 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 Modern Cowboy false -0.5 0.5 0 0 -0.5 0.5 0 0 194 68.9375076 5.81150818 -64.5824051 -1 2.89589861e-005 -3.19997998e-005 3.19997998e-005 0.995035768 -0.0995167717 2.89589861e-005 -0.0995167717 -0.995035768 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.28443051e-008 -0.00215248438 -3.28443051e-008 2 1 2 0.800000012 2 2 2 http://www.watrbx.wtf/asset/?id=23635642 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=23635643 1 1 1 Shirt http://www.watrbx.wtf/asset/?id=38258294 5 5 5 Body Colors 5 5 5 0 0 0 1 0 0 0 1 0 0 0 1 Player24 RBX1261 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 29.9375 5.1750021 -47.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.00977424e-007 0.00661765644 -1.00977424e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1261 RBX1265 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1261 RBX1265 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1261 RBX1265 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1261 RBX1265 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1261 RBX1265 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1261 RBX1265 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1261 RBX1265 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1261 RBX1265 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 29.9375 3.67500186 -47.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.00977424e-007 0.00661765644 -1.00977424e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX1273 RBX1276 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX1273 RBX1278 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX1273 RBX1280 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX1273 RBX1282 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX1273 RBX1261 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 31.4375 3.67500186 -47.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.00977424e-007 0.00661765644 -1.00977424e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 28.4375 3.67500186 -47.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.00977424e-007 0.00661765644 -1.00977424e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 23 30.4375 1.67500186 -47.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.00977424e-007 0.00661765644 -1.00977424e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 23 29.4375 1.67500186 -47.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.00977424e-007 0.00661765644 -1.00977424e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 1 1 23 Body Colors 1 23 1 false Health 7 false HealthScript v3.1 8 0 0 0 1 0 0 0 1 0 0 0 1 Ultra-Fabulous Hair Pink false -0.5 0.5 0 0 -0.5 0.5 0 0 194 29.9375 5.6750021 -47.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.00977424e-007 0.00661765644 -1.00977424e-007 0 1 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=16627529 5 Mesh 0 0 0 1.04999995 1.04999995 1.04999995 http://www.watrbx.wtf/asset/?id=20980000 1 1 1 0 1 27493004 Alien torso 27493193 0 5 27493073 Alien Right Leg 27493193 0 3 27493061 Alien Right Arm 27493193 0 2 27492984 Alien Left Arm 27493193 0 4 27493033 Alien Left Leg 27493193 0 0 0 1 0 0 0 1 0 0 0 1 Player90 RBX1299 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 16.9375 5.15000057 -80.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.91649656e-007 0.00637118425 -2.91649656e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1299 RBX1303 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.75 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX1299 RBX1305 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1299 RBX1307 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1299 RBX1303 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.75 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX1299 RBX1305 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1299 RBX1307 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1299 RBX1303 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.75 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX1299 RBX1305 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1299 RBX1307 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1299 RBX1303 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.75 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX1299 RBX1305 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1299 RBX1307 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1299 RBX1303 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.75 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX1299 RBX1305 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1299 RBX1307 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1299 RBX1303 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.75 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX1299 RBX1305 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1299 RBX1307 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1299 RBX1303 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.75 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX1299 RBX1305 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1299 RBX1307 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1299 RBX1303 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.75 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX1299 RBX1305 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1299 RBX1307 false -0.5 0.5 0 0 -0.5 0.5 4 0 104 16.9375 3.65000057 -80.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -2.91649656e-007 0.00637118425 -2.91649656e-007 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=57863120 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX1329 RBX1332 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX1329 RBX1334 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX1329 RBX1336 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX1329 RBX1338 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX1329 RBX1299 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 18.4375 3.65000057 -80.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.91649656e-007 0.00637118425 -2.91649656e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 15.4375 3.65000057 -80.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.91649656e-007 0.00637118425 -2.91649656e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 26 17.4375 1.65000057 -80.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.91649656e-007 0.00637118425 -2.91649656e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 26 16.4375 1.65000057 -80.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.91649656e-007 0.00637118425 -2.91649656e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.850000024 0 1 0 0 0 1 0 0 0 1 Angel false -0.5 0.5 0 0 -0.5 0.5 0 0 194 16.9375 4.80000067 -80.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.91649656e-007 0.00637118425 -2.91649656e-007 0 1 4 3 3 2 2 http://www.watrbx.wtf/asset/?id=15392960 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=15392970 1 1 1 http://www.watrbx.wtf/asset/?id=57863120 Shirt Graphic 0 -0.75 0.200000003 1 0 0 0 1 0 0 0 1 SilverthornAntlers false -0.5 0.5 0 0 -0.5 0.5 0 0 194 16.9375 6.40000057 -80.3625031 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.91649656e-007 0.00637118425 -2.91649656e-007 2 1 1 2 1 2 2 http://www.watrbx.wtf/asset/?id=1271547 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=9254947 1 1 1 Shirt http://www.watrbx.wtf/asset/?id=59873483 Pants http://www.watrbx.wtf/asset/?id=36194633 0 0.100000001 0 1 0 0 0 1 0 0 0 1 DarkseedTheFallen false -0.5 0.5 0 0 -0.5 0.5 0 0 194 16.9375 5.55000067 -80.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.91649656e-007 0.00637118425 -2.91649656e-007 0 0 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=1158007 5 Mesh 0 0 0 0.5 0.5 0.5 http://www.watrbx.wtf/asset/?id=5162958 1 1 1 125 125 26 Body Colors 125 26 104 0 0 0 1 0 0 0 1 0 0 0 1 Player26 RBX1357 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 55.9375 5.17500114 -77.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.27928866e-008 0.00214911462 -3.27928866e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1357 RBX1361 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1357 RBX1363 0 0.5 0 1 0 0 0 1 0 0 0 1 0.699999988 0.75 -0.5 0.957946181 2.57691572e-005 0.286941916 -3.46196539e-005 1 2.57691572e-005 -0.286941916 -3.46196539e-005 0.957946181 HeadWeld RBX1357 RBX1365 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1357 RBX1361 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1357 RBX1363 0 0.5 0 1 0 0 0 1 0 0 0 1 0.699999988 0.75 -0.5 0.957946181 2.57691572e-005 0.286941916 -3.46196539e-005 1 2.57691572e-005 -0.286941916 -3.46196539e-005 0.957946181 HeadWeld RBX1357 RBX1365 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1357 RBX1361 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1357 RBX1363 0 0.5 0 1 0 0 0 1 0 0 0 1 0.699999988 0.75 -0.5 0.957946181 2.57691572e-005 0.286941916 -3.46196539e-005 1 2.57691572e-005 -0.286941916 -3.46196539e-005 0.957946181 HeadWeld RBX1357 RBX1365 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1357 RBX1361 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1357 RBX1363 0 0.5 0 1 0 0 0 1 0 0 0 1 0.699999988 0.75 -0.5 0.957946181 2.57691572e-005 0.286941916 -3.46196539e-005 1 2.57691572e-005 -0.286941916 -3.46196539e-005 0.957946181 HeadWeld RBX1357 RBX1365 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1357 RBX1361 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1357 RBX1363 0 0.5 0 1 0 0 0 1 0 0 0 1 0.699999988 0.75 -0.5 0.957946181 2.57691572e-005 0.286941916 -3.46196539e-005 1 2.57691572e-005 -0.286941916 -3.46196539e-005 0.957946181 HeadWeld RBX1357 RBX1365 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1357 RBX1361 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1357 RBX1363 0 0.5 0 1 0 0 0 1 0 0 0 1 0.699999988 0.75 -0.5 0.957946181 2.57691572e-005 0.286941916 -3.46196539e-005 1 2.57691572e-005 -0.286941916 -3.46196539e-005 0.957946181 HeadWeld RBX1357 RBX1365 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1357 RBX1361 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1357 RBX1363 0 0.5 0 1 0 0 0 1 0 0 0 1 0.699999988 0.75 -0.5 0.957946181 2.57691572e-005 0.286941916 -3.46196539e-005 1 2.57691572e-005 -0.286941916 -3.46196539e-005 0.957946181 HeadWeld RBX1357 RBX1365 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1357 RBX1361 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1357 RBX1363 0 0.5 0 1 0 0 0 1 0 0 0 1 0.699999988 0.75 -0.5 0.957946181 2.57691572e-005 0.286941916 -3.46196539e-005 1 2.57691572e-005 -0.286941916 -3.46196539e-005 0.957946181 HeadWeld RBX1357 RBX1365 false -0.5 0.5 0 0 -0.5 0.5 4 0 135 55.9375 3.67500138 -77.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -3.27928866e-008 0.00214911462 -3.27928866e-008 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX1387 RBX1390 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX1387 RBX1392 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX1387 RBX1394 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX1387 RBX1396 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX1387 RBX1357 false -0.5 0.5 0 0 -0.5 0.5 4 0 135 57.4375 3.67500138 -77.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.27928866e-008 0.00214911462 -3.27928866e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 135 54.4375 3.67500138 -77.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.27928866e-008 0.00214911462 -3.27928866e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 135 56.4375 1.67500138 -77.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.27928866e-008 0.00214911462 -3.27928866e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 135 55.4375 1.67500138 -77.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.27928866e-008 0.00214911462 -3.27928866e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.400000006 0 1 0 0 0 1 0 0 0 1 NinjaMaskOfShadows false -0.5 0.5 0 0 -0.5 0.5 0 0 194 55.9375 5.27500105 -77.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.27928866e-008 0.00214911462 -3.27928866e-008 2 1 1 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=1286427 5 Mesh 0 0 0 1.10000002 1.10000002 1.10000002 http://www.watrbx.wtf/asset/?id=1309894 1 1 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 Farmer false -0.5 0.5 0 0 -0.5 0.5 0 0 194 55.9375 5.27500105 -77.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.27928866e-008 0.00214911462 -3.27928866e-008 0 1 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=18240908 5 Mesh 0 0 0 1.04999995 1.04999995 1.04999995 http://www.watrbx.wtf/asset/?id=18240904 1 1 1 Pants http://www.watrbx.wtf/asset/?id=6175958 Shirt http://www.watrbx.wtf/asset/?id=6131922 0.699999988 0.75 -0.5 0.957946181 2.57691572e-005 0.286941916 -3.46196539e-005 1 2.57691572e-005 -0.286941916 -3.46196539e-005 0.957946181 Macaw false -0.5 0.5 0 0 -0.5 0.5 0 0 194 56.7515068 4.92496586 -77.8405914 -0.957946181 3.46196539e-005 0.286941916 2.57691572e-005 1 -3.46196539e-005 -0.286941916 -2.57691572e-005 -0.957946181 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.27928866e-008 0.00214911462 -3.27928866e-008 0 1 1 1 1 2 2 http://www.watrbx.wtf/asset/?id=20708326 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=25535238 1 1 1 1003 135 135 Body Colors 135 135 135 0 0 0 1 0 0 0 1 0 0 0 1 Player27 RBX1414 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 81.875 5.11250401 -51.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.17913258e-007 0.00311504328 -6.17913258e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=7317606 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1414 RBX1418 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1414 RBX1420 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1414 RBX1418 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1414 RBX1420 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1414 RBX1418 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1414 RBX1420 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1414 RBX1418 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1414 RBX1420 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1414 RBX1418 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1414 RBX1420 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1414 RBX1418 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1414 RBX1420 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1414 RBX1418 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1414 RBX1420 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1414 RBX1418 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1414 RBX1420 false -0.5 0.5 0 0 -0.5 0.5 4 0 1020 81.875 3.61250377 -51.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -6.17913258e-007 0.00311504328 -6.17913258e-007 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=17765569 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX1435 RBX1438 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX1435 RBX1440 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX1435 RBX1442 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX1435 RBX1444 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX1435 RBX1414 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 83.375 3.61250377 -51.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.17913258e-007 0.00311504328 -6.17913258e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 80.375 3.61250377 -51.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.17913258e-007 0.00311504328 -6.17913258e-007 0 1 1 2 1 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.5 0 0 0 0 1 -1 0 0 0 -1 0 RightGrip RBX1438 RBX1447 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.5 0 0 0 0 1 -1 0 0 0 -1 0 RightGrip RBX1438 RBX1447 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.5 0 0 0 0 1 -1 0 0 0 -1 0 RightGrip RBX1438 RBX1447 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.5 0 0 0 0 1 -1 0 0 0 -1 0 RightGrip RBX1438 RBX1447 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.5 0 0 0 0 1 -1 0 0 0 -1 0 RightGrip RBX1438 RBX1447 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.5 0 0 0 0 1 -1 0 0 0 -1 0 RightGrip RBX1438 RBX1447 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.5 0 0 0 0 1 -1 0 0 0 -1 0 RightGrip RBX1438 RBX1447 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.5 0 0 0 0 1 -1 0 0 0 -1 0 RightGrip RBX1438 RBX1447 false -0.5 0.5 0 0 -0.5 0.5 0 0 102 82.375 1.61250377 -51.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.17913258e-007 0.00311504328 -6.17913258e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 102 81.375 1.61250377 -51.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.17913258e-007 0.00311504328 -6.17913258e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 GoldTetris false -0.5 0.5 0 0 -0.5 0.5 0 0 194 81.875 6.21250391 -51.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.17913258e-007 0.00311504328 -6.17913258e-007 2 1 1 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=5839207 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=5839168 1 1 1 true true 0.5 0 0 0 0 1 -1 0 0 0 -1 0 Firework2010 http://www.watrbx.wtf/asset/?id=20064127 false -0.5 0.5 0 0 -0.5 0.5 0 0 194 80.375 2.11250377 -51.5625 0 1 0 1 0 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 false 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.17913258e-007 0.00311504328 -6.17913258e-007 0 1 1 1 4 2 2 http://www.watrbx.wtf/asset/?id=12557856 5 Mesh 0 0 0 1.29999995 1.29999995 1.29999995 http://www.watrbx.wtf/asset/?id=20064204 1 1 1 false Local Gui local Tool = script.Parent; enabled = true function onButton1Down(mouse) if not enabled then return end enabled = false mouse.Icon = "rbxasset://textures\\ArrowFarCursor.png" wait(3) mouse.Icon = "rbxasset://textures\\ArrowCursor.png" enabled = true end function onEquippedLocal(mouse) if mouse == nil then print("Mouse not found") return end mouse.Icon = "rbxasset://textures\\ArrowCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end Tool.Equipped:connect(onEquippedLocal) false PlantBomb 12 true Bomb 13 0 0 0 1 0 0 0 1 0 0 0 1 Neon Shamrock false -0.5 0.5 0 0 -0.5 0.5 0 0 194 81.875 5.61250401 -51.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.17913258e-007 0.00311504328 -6.17913258e-007 2 1 1 0.800000012 2 2 2 http://www.watrbx.wtf/asset/?id=16190466 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=23957984 1 1 1 http://www.watrbx.wtf/asset/?id=17765569 Shirt Graphic 226 226 102 Body Colors 226 102 1020 0 0 0 1 0 0 0 1 0 0 0 1 Player28 RBX1473 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 77.9375 5.17500305 -43.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.23596308e-007 0.00810000766 -1.23596308e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=7076053 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.275000006 0.219999999 1 0 0 0 1 0 0 0 1 HeadWeld RBX1473 RBX1477 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.275000006 0.219999999 1 0 0 0 1 0 0 0 1 HeadWeld RBX1473 RBX1477 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.075000003 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX1473 RBX1480 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.275000006 0.219999999 1 0 0 0 1 0 0 0 1 HeadWeld RBX1473 RBX1477 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.075000003 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX1473 RBX1480 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.075000003 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX1473 RBX1480 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.275000006 0.219999999 1 0 0 0 1 0 0 0 1 HeadWeld RBX1473 RBX1477 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.075000003 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX1473 RBX1480 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.075000003 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX1473 RBX1480 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.275000006 0.219999999 1 0 0 0 1 0 0 0 1 HeadWeld RBX1473 RBX1477 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.275000006 0.219999999 1 0 0 0 1 0 0 0 1 HeadWeld RBX1473 RBX1477 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.075000003 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX1473 RBX1480 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.275000006 0.219999999 1 0 0 0 1 0 0 0 1 HeadWeld RBX1473 RBX1477 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.075000003 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX1473 RBX1480 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.275000006 0.219999999 1 0 0 0 1 0 0 0 1 HeadWeld RBX1473 RBX1477 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.075000003 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX1473 RBX1480 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 77.9375 3.67500305 -43.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.23596308e-007 0.00810000766 -1.23596308e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX1494 RBX1497 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX1494 RBX1499 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX1494 RBX1501 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX1494 RBX1503 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX1494 RBX1473 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 79.4375 3.67500305 -43.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.23596308e-007 0.00810000766 -1.23596308e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 76.4375 3.67500305 -43.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.23596308e-007 0.00810000766 -1.23596308e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 78.4375 1.67500305 -43.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.23596308e-007 0.00810000766 -1.23596308e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 77.4375 1.67500305 -43.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.23596308e-007 0.00810000766 -1.23596308e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 Shirt http://www.watrbx.wtf/asset/?id=1804865 0 0.275000006 0.219999999 1 0 0 0 1 0 0 0 1 DrifterGlasses false -0.5 0.5 0 0 -0.5 0.5 0 0 194 77.9375 5.40000296 -43.3424988 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.23596308e-007 0.00810000766 -1.23596308e-007 3 1 1.20000005 0.400000036 1 2 2 http://www.watrbx.wtf/asset/?id=63654356 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=63654376 1 1 1 0 0.075000003 0.0500000007 1 0 0 0 1 0 0 0 1 BlackCharmerHair false -0.5 0.5 0 0 -0.5 0.5 0 0 194 77.9375 5.60000324 -43.5125008 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.23596308e-007 0.00810000766 -1.23596308e-007 3 1 1.19999957 1 1.5999999 2 2 http://www.watrbx.wtf/asset/?id=74878559 5 Mesh 0 0 0 1.04999995 1 1.04999995 http://www.watrbx.wtf/asset/?id=75975752 1 1 1 24 24 1003 Body Colors 24 1003 1003 0 0 0 1 0 0 0 1 0 0 0 1 Player95 RBX1518 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 32.9375 5.71248531 -81.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.38685811e-007 -0.00706066238 -5.38685811e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=10749456 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX1518 RBX1522 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX1518 RBX1522 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX1518 RBX1522 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX1518 RBX1522 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX1518 RBX1522 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX1518 RBX1522 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX1518 RBX1522 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX1518 RBX1522 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 32.9375 4.21248531 -81.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -5.38685811e-007 -0.00706066238 -5.38685811e-007 0 1 2 2 1 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX1530 RBX1533 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX1530 RBX1535 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX1530 RBX1537 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX1530 RBX1539 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX1530 RBX1518 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 34.4375 4.21248531 -81.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.38685811e-007 -0.00706066238 -5.38685811e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 31.4375 4.21248531 -81.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.38685811e-007 -0.00706066238 -5.38685811e-007 0 1 1 2 1 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.600000024 0.200000003 0 -0.000436306 0.408240139 0.912868142 -0.894382656 0.40816319 -0.18296349 -0.447289556 -0.816539049 0.364950359 RightGrip RBX1533 RBX1542 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.600000024 0.200000003 0 -0.000436306 0.408240139 0.912868142 -0.894382656 0.40816319 -0.18296349 -0.447289556 -0.816539049 0.364950359 RightGrip RBX1533 RBX1542 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.600000024 0.200000003 0 -0.000436306 0.408240139 0.912868142 -0.894382656 0.40816319 -0.18296349 -0.447289556 -0.816539049 0.364950359 RightGrip RBX1533 RBX1542 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.600000024 0.200000003 0 -0.000436306 0.408240139 0.912868142 -0.894382656 0.40816319 -0.18296349 -0.447289556 -0.816539049 0.364950359 RightGrip RBX1533 RBX1542 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.600000024 0.200000003 0 -0.000436306 0.408240139 0.912868142 -0.894382656 0.40816319 -0.18296349 -0.447289556 -0.816539049 0.364950359 RightGrip RBX1533 RBX1542 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.600000024 0.200000003 0 -0.000436306 0.408240139 0.912868142 -0.894382656 0.40816319 -0.18296349 -0.447289556 -0.816539049 0.364950359 RightGrip RBX1533 RBX1542 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.600000024 0.200000003 0 -0.000436306 0.408240139 0.912868142 -0.894382656 0.40816319 -0.18296349 -0.447289556 -0.816539049 0.364950359 RightGrip RBX1533 RBX1542 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.600000024 0.200000003 0 -0.000436306 0.408240139 0.912868142 -0.894382656 0.40816319 -0.18296349 -0.447289556 -0.816539049 0.364950359 RightGrip RBX1533 RBX1542 false -0.5 0.5 0 0 -0.5 0.5 0 0 226 33.4375 2.21248531 -81.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.38685811e-007 -0.00706066238 -5.38685811e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 226 32.4375 2.21248531 -81.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.38685811e-007 -0.00706066238 -5.38685811e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 Pants http://www.watrbx.wtf/asset/?id=49099354 false Health 7 false HealthScript v3.1 8 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 Fedora false -0.5 0.5 0 0 -0.5 0.5 0 0 194 32.9375076 6.46124411 -81.5873795 -1 2.89589861e-005 -3.19997998e-005 3.19997998e-005 0.995035768 -0.0995167717 2.89589861e-005 -0.0995167717 -0.995035768 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.38685811e-007 -0.00706066238 -5.38685811e-007 2 1 2 0.800000012 2 2 2 http://www.watrbx.wtf/asset/?id=13640868 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=18987684 1 1 1 0 1 27111894 Roblox 2.0 torso 0 0 3 27111864 Roblox 2.0 Right Arm 0 0 2 27111419 Roblox 2.0 Left Arm 0 0 4 27111857 Roblox 2.0 Left Leg 0 0 5 27111882 Roblox 2.0 Right Leg 0 Shirt http://www.watrbx.wtf/asset/?id=33209766 226 226 226 Body Colors 226 226 226 true true 0.600000024 0.200000003 0 -0.000436306 0.408240139 0.912868142 -0.894382656 0.40816319 -0.18296349 -0.447289556 -0.816539049 0.364950359 SkateTool http://www.watrbx.wtf/asset/?id=27901963 false InsertBoard local skateboardId = 27844312 local Tool = script.Parent; function insert() --This call will cause a "wait" until the data comes back local root = game:GetService("InsertService"):LoadAsset(skateboardId) local instances = root:GetChildren() if #instances == 0 then root:Remove() return end --Continue the insert process root.Name = "InsertedObject" .. skateboardId game:GetService("InsertService"):Insert(root) local t = game.Players.LocalPlayer.Character:FindFirstChild("Torso") root:MoveTo(t.Position + t.CFrame.lookVector * 8) Tool.Handle.Drop:Play() end enabled = true function onButton1Down(mouse) if not enabled then return end enabled = false insert() wait(.01) Tool:Remove() end function onEquippedLocal(mouse) if mouse == nil then print("Mouse not found") return end mouse.Icon = "http://www.watrbx.wtf/asset/?id=22858207" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end Tool.Equipped:connect(onEquippedLocal) false -0.5 0.5 0 0 -0.5 0.5 0 0 194 31.2583618 2.70135713 -81.8890762 0.000436306 0.894382656 0.447289556 0.912868142 -0.18296349 0.364950359 0.408240139 0.40816319 -0.816539049 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.38685811e-007 -0.00706066238 -5.38685811e-007 2 1 2 0.400000006 6 false Drop 1 false http://www.watrbx.wtf/asset/?id=10548108 1 2 2 http://www.watrbx.wtf/asset/?id=25244821 5 Mesh 0 0 0 1.14999998 1.14999998 1.14999998 http://www.watrbx.wtf/asset/?id=27757720 1 1 1 0 0 0 1 0 0 0 1 0 0 0 1 Player3 RBX1572 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 10.9994221 5.095294 8.49770737 -1 0 0 0 1 0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.63749974e-008 -0.00107315183 -1.63749974e-008 0 1 2 1 1 0 0 0.5 1 2 Mesh 0 0.100000001 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=10747911 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1572 RBX1576 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1572 RBX1576 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1572 RBX1576 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1572 RBX1576 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1572 RBX1576 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1572 RBX1576 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1572 RBX1576 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1572 RBX1576 false -0.5 0.5 0 0 -0.5 0.5 4 0 21 10.9994221 3.595294 8.49770737 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.63749974e-008 -0.00107315183 -1.63749974e-008 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?version=1&id=1318242 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX1584 RBX1587 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX1584 RBX1589 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX1584 RBX1591 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX1584 RBX1593 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX1584 RBX1572 false -0.5 0.5 0 0 -0.5 0.5 4 0 26 12.4994221 3.595294 8.49770737 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.63749974e-008 -0.00107315183 -1.63749974e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 26 9.49942207 3.595294 8.49770737 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.63749974e-008 -0.00107315183 -1.63749974e-008 0 1 1 2 1 0 -1 0 1 0 -0 0 0 1 0 -1 -0 -0.400000006 0 -1 0 1 0 1 0 0 0 0 -1 RightGrip RBX1587 RBX1596 0 -1 0 1 0 -0 0 0 1 0 -1 -0 -0.400000006 0 -1 0 1 0 1 0 0 0 0 -1 RightGrip RBX1587 RBX1596 0 -1 0 1 0 -0 0 0 1 0 -1 -0 -0.400000006 0 -1 0 1 0 1 0 0 0 0 -1 RightGrip RBX1587 RBX1596 0 -1 0 1 0 -0 0 0 1 0 -1 -0 -0.400000006 0 -1 0 1 0 1 0 0 0 0 -1 RightGrip RBX1587 RBX1596 0 -1 0 1 0 -0 0 0 1 0 -1 -0 -0.400000006 0 -1 0 1 0 1 0 0 0 0 -1 RightGrip RBX1587 RBX1596 0 -1 0 1 0 -0 0 0 1 0 -1 -0 -0.400000006 0 -1 0 1 0 1 0 0 0 0 -1 RightGrip RBX1587 RBX1596 0 -1 0 1 0 -0 0 0 1 0 -1 -0 -0.400000006 0 -1 0 1 0 1 0 0 0 0 -1 RightGrip RBX1587 RBX1596 0 -1 0 1 0 -0 0 0 1 0 -1 -0 -0.400000006 0 -1 0 1 0 1 0 0 0 0 -1 RightGrip RBX1587 RBX1596 false -0.5 0.5 0 0 -0.5 0.5 0 0 26 11.4994221 1.595294 8.49770737 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.63749974e-008 -0.00107315183 -1.63749974e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 26 10.4994221 1.595294 8.49770737 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.63749974e-008 -0.00107315183 -1.63749974e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.25 0 1 0 0 0 1 0 0 0 1 Cheetah false -0.5 0.5 0 0 -0.5 0.5 0 0 194 10.9994221 5.345294 8.49770737 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.63749974e-008 -0.00107315183 -1.63749974e-008 0 1 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=12304894 5 Mesh 0 0 0 1.04999995 1.10000002 1.04999995 http://www.watrbx.wtf/asset/?id=12304652 1 1 1 true true -0.400000006 0 -1 0 1 0 1 0 0 0 0 -1 BluesteelClaws http://www.watrbx.wtf/asset/?id=10685593 false Claw 14 false -0.5 0.5 0 0 -0.5 0.5 0 0 199 9.49942207 1.595294 8.89770699 0 -1 0 0 0 -1 1 0 0 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 false 256 Handle 0.400000006 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.63749974e-008 -0.00107315183 -1.63749974e-008 2 1 1 0.800000012 2 2 2 http://www.watrbx.wtf/asset/?id=10681506 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=10681501 1 1 1 false Sound 1 false rbxasset://sounds/swordslash.wav 0.699999988 false Sound 1 false rbxasset://sounds/swordlunge.wav 0.600000024 false Sound 1 false rbxasset://sounds/unsheath.wav 1 false http://www.watrbx.wtf/asset/?id=1014476 Local Gui http://www.watrbx.wtf/asset/?version=1&id=1318242 Shirt Graphic 226 26 26 Body Colors 26 26 21 0 0 0 1 0 0 0 1 0 0 0 1 Player30 RBX1622 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 61.9375 5.17500401 -56.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.28253016e-008 0.00215123896 4.92379513e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=14030506 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1622 RBX1626 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.324000001 0.25999999 1 0 0 0 1 0 0 0 1 HeadWeld RBX1622 RBX1628 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1622 RBX1630 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1622 RBX1626 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.324000001 0.25999999 1 0 0 0 1 0 0 0 1 HeadWeld RBX1622 RBX1628 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1622 RBX1630 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1622 RBX1626 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.324000001 0.25999999 1 0 0 0 1 0 0 0 1 HeadWeld RBX1622 RBX1628 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1622 RBX1630 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1622 RBX1626 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.324000001 0.25999999 1 0 0 0 1 0 0 0 1 HeadWeld RBX1622 RBX1628 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1622 RBX1630 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1622 RBX1626 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.324000001 0.25999999 1 0 0 0 1 0 0 0 1 HeadWeld RBX1622 RBX1628 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1622 RBX1630 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1622 RBX1626 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.324000001 0.25999999 1 0 0 0 1 0 0 0 1 HeadWeld RBX1622 RBX1628 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1622 RBX1630 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1622 RBX1626 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.324000001 0.25999999 1 0 0 0 1 0 0 0 1 HeadWeld RBX1622 RBX1628 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1622 RBX1630 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1622 RBX1626 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.324000001 0.25999999 1 0 0 0 1 0 0 0 1 HeadWeld RBX1622 RBX1628 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1622 RBX1630 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 61.9375 3.67500424 -56.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -3.28253016e-008 0.00215123896 4.92379513e-007 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=41762561 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX1652 RBX1655 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX1652 RBX1657 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX1652 RBX1659 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX1652 RBX1661 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX1652 RBX1622 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 63.4375 3.67500424 -56.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.28253016e-008 0.00215123896 4.92379513e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 60.4375 3.67500424 -56.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.28253016e-008 0.00215123896 4.92379513e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1 62.4375 1.67500424 -56.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.28253016e-008 0.00215123896 4.92379513e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1 61.4375 1.67500424 -56.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.28253016e-008 0.00215123896 4.92379513e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 1 1 1 Body Colors 1 1 1 false Health 7 false HealthScript v3.1 8 0 1 27111894 Roblox 2.0 torso 0 0 3 27111864 Roblox 2.0 Right Arm 0 0 2 27111419 Roblox 2.0 Left Arm 0 0 4 27111857 Roblox 2.0 Left Leg 0 0 5 27111882 Roblox 2.0 Right Leg 0 0 0.300000012 0 1 0 0 0 1 0 0 0 1 Headphones false -0.5 0.5 0 0 -0.5 0.5 0 0 194 61.9375 5.37500381 -56.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.28253016e-008 0.00215123896 4.92379513e-007 2 1 1 1.60000002 1 2 2 http://www.watrbx.wtf/asset/?id=1051545 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=1051546 1 1 1 Pants http://www.watrbx.wtf/asset/?id=46322224 0 0.324000001 0.25999999 1 0 0 0 1 0 0 0 1 GlassesBlackFrame false -0.5 0.5 0 0 -0.5 0.5 0 0 194 61.9375 5.35100412 -56.3025017 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.28253016e-008 0.00215123896 4.92379513e-007 0 1 1 1 1 2 2 http://www.watrbx.wtf/asset/?id=30166087 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=30166098 1 1 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 WhiteTopHat false -0.5 0.5 0 0 -0.5 0.5 0 0 194 61.9375 5.92500401 -56.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.28253016e-008 0.00215123896 4.92379513e-007 2 1 2 0.800000012 2 2 2 http://www.watrbx.wtf/asset/?id=1028713 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=1073671 1 1 1 http://www.watrbx.wtf/asset/?id=41762561 Shirt Graphic Shirt http://www.watrbx.wtf/asset/?id=44162781 0 0 0 1 0 0 0 1 0 0 0 1 Player31 RBX1685 false -0.5 0.5 0 0 -0.5 0.5 4 0 5 53.9375 5.11250257 -60.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.96806212e-007 -0.00429929746 -1.96806212e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=10747452 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.75 -0.699999988 1 0 0 0 1 0 0 0 1 HeadWeld RBX1685 RBX1689 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.224999994 0.224999994 1 0 0 0 1 0 0 0 1 HeadWeld RBX1685 RBX1691 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1685 RBX1693 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.75 -0.699999988 1 0 0 0 1 0 0 0 1 HeadWeld RBX1685 RBX1689 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.224999994 0.224999994 1 0 0 0 1 0 0 0 1 HeadWeld RBX1685 RBX1691 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1685 RBX1693 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.75 -0.699999988 1 0 0 0 1 0 0 0 1 HeadWeld RBX1685 RBX1689 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.224999994 0.224999994 1 0 0 0 1 0 0 0 1 HeadWeld RBX1685 RBX1691 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1685 RBX1693 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.75 -0.699999988 1 0 0 0 1 0 0 0 1 HeadWeld RBX1685 RBX1689 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.224999994 0.224999994 1 0 0 0 1 0 0 0 1 HeadWeld RBX1685 RBX1691 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1685 RBX1693 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.75 -0.699999988 1 0 0 0 1 0 0 0 1 HeadWeld RBX1685 RBX1689 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.224999994 0.224999994 1 0 0 0 1 0 0 0 1 HeadWeld RBX1685 RBX1691 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1685 RBX1693 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.75 -0.699999988 1 0 0 0 1 0 0 0 1 HeadWeld RBX1685 RBX1689 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.224999994 0.224999994 1 0 0 0 1 0 0 0 1 HeadWeld RBX1685 RBX1691 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1685 RBX1693 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.75 -0.699999988 1 0 0 0 1 0 0 0 1 HeadWeld RBX1685 RBX1689 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.224999994 0.224999994 1 0 0 0 1 0 0 0 1 HeadWeld RBX1685 RBX1691 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1685 RBX1693 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.75 -0.699999988 1 0 0 0 1 0 0 0 1 HeadWeld RBX1685 RBX1689 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.224999994 0.224999994 1 0 0 0 1 0 0 0 1 HeadWeld RBX1685 RBX1691 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1685 RBX1693 false -0.5 0.5 0 0 -0.5 0.5 4 0 5 53.9375 3.61250257 -60.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.96806212e-007 -0.00429929746 -1.96806212e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX1715 RBX1718 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX1715 RBX1720 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX1715 RBX1722 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX1715 RBX1724 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX1715 RBX1685 false -0.5 0.5 0 0 -0.5 0.5 4 0 5 55.4375 3.61250257 -60.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.96806212e-007 -0.00429929746 -1.96806212e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 5 52.4375 3.61250257 -60.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.96806212e-007 -0.00429929746 -1.96806212e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 54.4375 1.61250257 -60.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.96806212e-007 -0.00429929746 -1.96806212e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 53.4375 1.61250257 -60.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.96806212e-007 -0.00429929746 -1.96806212e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 5 5 1003 Body Colors 5 1003 5 false Health 7 false HealthScript v3.1 8 0 1 27111894 Roblox 2.0 torso 0 0 3 27111864 Roblox 2.0 Right Arm 0 0 2 27111419 Roblox 2.0 Left Arm 0 0 4 27111857 Roblox 2.0 Left Leg 0 0 5 27111882 Roblox 2.0 Right Leg 0 0 1.75 -0.699999988 1 0 0 0 1 0 0 0 1 NinjaTwinSwords false -0.5 0.5 0 0 -0.5 0.5 0 0 194 53.9375 3.86250257 -61.2625008 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.96806212e-007 -0.00429929746 -1.96806212e-007 3 1 3.00000048 3.00000095 0.600000024 2 2 http://www.watrbx.wtf/asset/?id=67993325 5 Mesh 0 0 0 0.699999988 0.699999988 0.699999988 http://www.watrbx.wtf/asset/?id=67993289 1 1 1 0 0.224999994 0.224999994 1 0 0 0 1 0 0 0 1 RubyShades false -0.5 0.5 0 0 -0.5 0.5 0 0 194 53.9375 5.38750267 -60.3375015 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.96806212e-007 -0.00429929746 -1.96806212e-007 3 1 1.39999914 0.399999857 0.800000012 2 2 http://www.watrbx.wtf/asset/?id=68356982 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=68356967 1 1 1 0 0 0 1 0 0 0 1 0 0 0 1 Ultra-Fabulous Hair false -0.5 0.5 0 0 -0.5 0.5 0 0 194 53.9375 5.61250257 -60.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.96806212e-007 -0.00429929746 -1.96806212e-007 0 1 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=16627529 5 Mesh 0 0 0 1.04999995 1.04999995 1.04999995 http://www.watrbx.wtf/asset/?id=16627494 1 1 1 Pants http://www.watrbx.wtf/asset/?id=61044167 Shirt http://www.watrbx.wtf/asset/?id=51755874 0 0 0 1 0 0 0 1 0 0 0 1 Player32 RBX1747 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 28.9375 5.17499733 -29.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.63265188e-008 0.00106997474 -1.63265188e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX1747 RBX1751 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1747 RBX1753 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX1747 RBX1751 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1747 RBX1753 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX1747 RBX1751 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1747 RBX1753 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX1747 RBX1751 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1747 RBX1753 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX1747 RBX1751 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1747 RBX1753 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX1747 RBX1751 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1747 RBX1753 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX1747 RBX1751 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1747 RBX1753 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX1747 RBX1751 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1747 RBX1753 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 28.9375 3.67499757 -29.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.63265188e-008 0.00106997474 -1.63265188e-008 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX1768 RBX1771 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX1768 RBX1773 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX1768 RBX1775 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX1768 RBX1777 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX1768 RBX1747 false -0.5 0.5 0 0 -0.5 0.5 4 0 1032 30.4375 3.67499757 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.63265188e-008 0.00106997474 -1.63265188e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1012 27.4375 3.67499757 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.63265188e-008 0.00106997474 -1.63265188e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1004 29.4375 1.67499757 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.63265188e-008 0.00106997474 -1.63265188e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 28.4375 1.67499757 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.63265188e-008 0.00106997474 -1.63265188e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 1 1032 1004 Body Colors 1012 1003 1 false Health 7 false HealthScript v3.1 8 0 1 68241695 Korblox Knight Torso 68241528 0 5 68241677 Korblox Knight Right Leg 68241528 0 2 68241543 Korblox Knight Left Arm 68241528 0 4 68241558 Korblox Knight Left Leg 68241528 0 3 68241658 Korblox Knight Right Arm 68241528 0 0.5 0.600000024 1 0 0 0 1 0 0 0 1 SadMask false -0.5 0.5 0 0 -0.5 0.5 0 0 194 28.9375 5.17499733 -28.9624996 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.63265188e-008 0.00106997474 -1.63265188e-008 0 1 1 1 1 2 2 http://www.watrbx.wtf/asset/?id=13520910 5 Mesh 0 0 0 1.10000002 1 1 http://www.watrbx.wtf/asset/?id=13520915 1 1 1 0 0.349999994 0 1 0 0 0 1 0 0 0 1 UnicornBeanie false -0.5 0.5 0 0 -0.5 0.5 0 0 194 28.9375 5.32499743 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.63265188e-008 0.00106997474 -1.63265188e-008 3 1 1.4000001 3.20000076 1.60000014 2 2 http://www.watrbx.wtf/asset/?id=67246433 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=67291328 1 1 1 0 0 0 1 0 0 0 1 0 0 0 1 Player33 RBX1796 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 64.9375 5.17500401 41.5 -1 0 0 0 1 0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.44377481e-007 0.000378465338 -1.44377481e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1796 RBX1800 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1796 RBX1800 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1796 RBX1800 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1796 RBX1800 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1796 RBX1800 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1796 RBX1800 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1796 RBX1800 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1796 RBX1800 false -0.5 0.5 0 0 -0.5 0.5 4 0 107 64.9375 3.67500424 41.5 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.44377481e-007 0.000378465338 -1.44377481e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX1808 RBX1811 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX1808 RBX1813 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX1808 RBX1815 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX1808 RBX1817 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX1808 RBX1796 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 66.4375 3.67500424 41.5 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.44377481e-007 0.000378465338 -1.44377481e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 63.4375 3.67500424 41.5 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.44377481e-007 0.000378465338 -1.44377481e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 11 65.4375 1.67500424 41.5 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.44377481e-007 0.000378465338 -1.44377481e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 11 64.4375 1.67500424 41.5 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.44377481e-007 0.000378465338 -1.44377481e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 Pants http://www.watrbx.wtf/asset/?id=3369925 Shirt http://www.watrbx.wtf/asset/?id=62687212 0 0.25 0 1 0 0 0 1 0 0 0 1 Ski false -0.5 0.5 0 0 -0.5 0.5 0 0 194 64.9375 5.42500401 41.5 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.44377481e-007 0.000378465338 -1.44377481e-007 0 1 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=16975708 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=16975693 1 1 1 1030 1030 11 Body Colors 1030 11 107 0 0 0 1 0 0 0 1 0 0 0 1 Player34 RBX1831 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 25.9375 5.97499132 50.4375 -1 0 0 0 1 0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.63625931e-008 0.0010723389 -1.63625931e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=7074780 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 -0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX1831 RBX1835 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 -0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX1831 RBX1835 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 -0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX1831 RBX1835 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 -0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX1831 RBX1835 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 -0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX1831 RBX1835 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 -0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX1831 RBX1835 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 -0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX1831 RBX1835 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 -0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX1831 RBX1835 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 25.9375 4.47499132 50.4375 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.63625931e-008 0.0010723389 -1.63625931e-008 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX1843 RBX1846 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX1843 RBX1848 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX1843 RBX1850 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX1843 RBX1852 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX1843 RBX1831 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 27.4375 4.47499132 50.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.63625931e-008 0.0010723389 -1.63625931e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 24.4375 4.47499132 50.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.63625931e-008 0.0010723389 -1.63625931e-008 0 1 1 2 1 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.70000005 0 0 1 1 0 0 0 1 0 RightGrip RBX1846 RBX1855 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.70000005 0 0 1 1 0 0 0 1 0 RightGrip RBX1846 RBX1855 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.70000005 0 0 1 1 0 0 0 1 0 RightGrip RBX1846 RBX1855 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.70000005 0 0 1 1 0 0 0 1 0 RightGrip RBX1846 RBX1855 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.70000005 0 0 1 1 0 0 0 1 0 RightGrip RBX1846 RBX1855 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.70000005 0 0 1 1 0 0 0 1 0 RightGrip RBX1846 RBX1855 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.70000005 0 0 1 1 0 0 0 1 0 RightGrip RBX1846 RBX1855 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.70000005 0 0 1 1 0 0 0 1 0 RightGrip RBX1846 RBX1855 false -0.5 0.5 0 0 -0.5 0.5 0 0 45 26.4375 2.47499132 50.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.63625931e-008 0.0010723389 -1.63625931e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 45 25.4375 2.47499132 50.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.63625931e-008 0.0010723389 -1.63625931e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 true true 0 0 -1.70000005 0 0 1 1 0 0 0 1 0 Katana http://www.watrbx.wtf/asset/?id=11444089 false SwordScript 31 false -0.5 0.5 0 0 -0.5 0.5 0 0 199 24.4375 3.47499132 52.1375008 0 -1 0 1 0 0 0 0 1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 false 256 Handle 0.400000006 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.63625931e-008 0.0010723389 -1.63625931e-008 2 1 1 0.800000012 5 2 2 http://www.watrbx.wtf/asset/?id=11442510 5 Mesh 0 0 0 1.70000005 1.70000005 1.70000005 http://www.watrbx.wtf/asset/?id=11442524 1 1 1 false Sound 1 false rbxasset://sounds/swordslash.wav 0.699999988 false Sound 1 false rbxasset://sounds/swordlunge.wav 0.600000024 false Sound 1 false rbxasset://sounds/unsheath.wav 1 false http://www.watrbx.wtf/asset/?id=1014476 Local Gui Pants http://www.watrbx.wtf/asset/?id=12871467 Shirt http://www.watrbx.wtf/asset/?id=12871551 0 -0.5 -0.100000001 1 0 0 0 1 0 0 0 1 WhiteWitchHat false -0.5 0.5 0 0 -0.5 0.5 0 0 194 25.9375 6.97499132 50.3375015 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.63625931e-008 0.0010723389 -1.63625931e-008 2 1 2 1.20000005 2 2 2 http://www.watrbx.wtf/asset/?id=1165242 5 Mesh 0 0 0 0.0599999987 0.0599999987 0.0599999987 http://www.watrbx.wtf/asset/?id=5206966 1 1 1 1 1 45 Body Colors 1 45 1 0 0 0 1 0 0 0 1 0 0 0 1 Player35 RBX1882 false -0.5 0.5 0 0 -0.5 0.5 4 0 18 51.9375 5.17500401 52.4375 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.16664054e-007 0.00764569547 -1.16664054e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=14861556 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX1882 RBX1886 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1882 RBX1888 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.324000001 0.25999999 1 0 0 0 1 0 0 0 1 HeadWeld RBX1882 RBX1890 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX1882 RBX1886 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1882 RBX1888 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.324000001 0.25999999 1 0 0 0 1 0 0 0 1 HeadWeld RBX1882 RBX1890 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX1882 RBX1886 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1882 RBX1888 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.324000001 0.25999999 1 0 0 0 1 0 0 0 1 HeadWeld RBX1882 RBX1890 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX1882 RBX1886 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1882 RBX1888 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.324000001 0.25999999 1 0 0 0 1 0 0 0 1 HeadWeld RBX1882 RBX1890 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX1882 RBX1886 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1882 RBX1888 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.324000001 0.25999999 1 0 0 0 1 0 0 0 1 HeadWeld RBX1882 RBX1890 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX1882 RBX1886 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1882 RBX1888 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.324000001 0.25999999 1 0 0 0 1 0 0 0 1 HeadWeld RBX1882 RBX1890 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX1882 RBX1886 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1882 RBX1888 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.324000001 0.25999999 1 0 0 0 1 0 0 0 1 HeadWeld RBX1882 RBX1890 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX1882 RBX1886 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1882 RBX1888 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.324000001 0.25999999 1 0 0 0 1 0 0 0 1 HeadWeld RBX1882 RBX1890 false -0.5 0.5 0 0 -0.5 0.5 4 0 18 51.9375 3.67500401 52.4375 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.16664054e-007 0.00764569547 -1.16664054e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX1912 RBX1915 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX1912 RBX1917 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX1912 RBX1919 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX1912 RBX1921 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX1912 RBX1882 false -0.5 0.5 0 0 -0.5 0.5 4 0 18 53.4375 3.67500401 52.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.16664054e-007 0.00764569547 -1.16664054e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 18 50.4375 3.67500401 52.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.16664054e-007 0.00764569547 -1.16664054e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 18 52.4375 1.67500401 52.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.16664054e-007 0.00764569547 -1.16664054e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 18 51.4375 1.67500401 52.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.16664054e-007 0.00764569547 -1.16664054e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 18 18 18 Body Colors 18 18 18 false Health 7 false HealthScript v3.1 8 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 Fedora false -0.5 0.5 0 0 -0.5 0.5 0 0 194 51.9375076 5.9237628 52.4126205 -1 2.89589861e-005 -3.19997998e-005 3.19997998e-005 0.995035768 -0.0995167717 2.89589861e-005 -0.0995167717 -0.995035768 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.16664054e-007 0.00764569547 -1.16664054e-007 2 1 2 0.800000012 2 2 2 http://www.watrbx.wtf/asset/?id=13640868 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=18987684 1 1 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 Bandana false -0.5 0.5 0 0 -0.5 0.5 0 0 194 51.9375 4.87500381 52.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.16664054e-007 0.00764569547 -1.16664054e-007 0 1 1 1 1 2 2 http://www.watrbx.wtf/asset/?id=20637493 5 Mesh 0 0 0 1 0.899999976 1 http://www.watrbx.wtf/asset/?id=20637003 1 1 1 0 1 27111894 Roblox 2.0 torso 0 0 4 27111857 Roblox 2.0 Left Leg 0 0 5 27111882 Roblox 2.0 Right Leg 0 0 0.324000001 0.25999999 1 0 0 0 1 0 0 0 1 GlassesBlackFrame false -0.5 0.5 0 0 -0.5 0.5 0 0 194 51.9375 5.35100412 52.6974983 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.16664054e-007 0.00764569547 -1.16664054e-007 0 1 1 1 1 2 2 http://www.watrbx.wtf/asset/?id=30166087 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=30166098 1 1 1 0 2 32328397 Superhero Left Arm 0 0 3 32328563 Superhero Right Arm 0 Shirt http://www.watrbx.wtf/asset/?id=63693007 Pants http://www.watrbx.wtf/asset/?id=63693070 0 0 0 1 0 0 0 1 0 0 0 1 Player36 RBX1944 false -0.5 0.5 0 0 -0.5 0.5 4 0 1019 49.9375 5.11249971 44.4375 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.59154993e-007 0.0104303816 -1.59154993e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=7074749 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX1944 RBX1948 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX1944 RBX1948 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX1944 RBX1948 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX1944 RBX1948 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX1944 RBX1948 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX1944 RBX1948 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX1944 RBX1948 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX1944 RBX1948 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 49.9375 3.61249971 44.4375 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.59154993e-007 0.0104303816 -1.59154993e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX1956 RBX1959 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX1956 RBX1961 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX1956 RBX1963 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX1956 RBX1965 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX1956 RBX1944 false -0.5 0.5 0 0 -0.5 0.5 4 0 1009 51.4375 3.61249971 44.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.59154993e-007 0.0104303816 -1.59154993e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1009 48.4375 3.61249971 44.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.59154993e-007 0.0104303816 -1.59154993e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 50.4375 1.61249971 44.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.59154993e-007 0.0104303816 -1.59154993e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1 49.4375 1.61249971 44.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.59154993e-007 0.0104303816 -1.59154993e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 Shirt http://www.watrbx.wtf/asset/?id=9538108 Pants http://www.watrbx.wtf/asset/?id=7307783 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 Sideswept Bangs Brown false -0.5 0.5 0 0 -0.5 0.5 0 0 194 50.0414467 5.3124938 44.3453522 -0.980608702 2.73636051e-005 -0.195971295 3.33735225e-005 1 -2.73636051e-005 0.195971295 -3.33735225e-005 -0.980608702 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.59154993e-007 0.0104303816 -1.59154993e-007 0 1 1 1 2 2 2 http://www.watrbx.wtf/asset/?id=19999424 5 Mesh 0 0 0 1.07000005 1.07000005 1.07000005 http://www.watrbx.wtf/asset/?id=20571982 1 1 1 1019 1009 1003 Body Colors 1009 1 1003 0 0 0 1 0 0 0 1 0 0 0 1 Player37 RBX1979 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 48 5.11249828 37.5 -1 0 0 0 1 0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.61919387e-007 0.00619707862 -6.61919387e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1979 RBX1983 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1979 RBX1983 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1979 RBX1983 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1979 RBX1983 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1979 RBX1983 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1979 RBX1983 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1979 RBX1983 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX1979 RBX1983 false -0.5 0.5 0 0 -0.5 0.5 4 0 26 48 3.61249804 37.5 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -6.61919387e-007 0.00619707862 -6.61919387e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX1991 RBX1994 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX1991 RBX1996 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX1991 RBX1998 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX1991 RBX2000 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX1991 RBX1979 false -0.5 0.5 0 0 -0.5 0.5 4 0 26 49.5 3.61249804 37.5 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.61919387e-007 0.00619707862 -6.61919387e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 26 46.5 3.61249804 37.5 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.61919387e-007 0.00619707862 -6.61919387e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 199 48.5 1.61249804 37.5 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.61919387e-007 0.00619707862 -6.61919387e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 199 47.5 1.61249804 37.5 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.61919387e-007 0.00619707862 -6.61919387e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 28268380 2 28268164 Spaceman Left Arm 28268380 0 5 28268263 Spaceman Right Leg 28268380 0 1 28268222 Spaceman torso 28268380 0 0.25 0 1 0 0 0 1 0 0 0 1 Space Mask false -0.5 0.5 0 0 -0.5 0.5 0 0 194 48 5.36249828 37.5 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.61919387e-007 0.00619707862 -6.61919387e-007 0 0 1 1 1 2 2 http://www.watrbx.wtf/asset/?id=11144788 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=11144777 1 1 1 0 4 28268301 Spaceman Left Leg 28268380 0 3 28268200 Spaceman Right Arm 28268380 1 26 199 Body Colors 26 199 26 0 0 0 1 0 0 0 1 0 0 0 1 Player9 RBX2017 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 -26.0625 5.17500353 -1.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.27251826e-008 0.00214467756 -3.27251826e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.280000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX2017 RBX2021 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2017 RBX2023 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.129999995 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2017 RBX2025 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.280000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX2017 RBX2021 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2017 RBX2023 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.129999995 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2017 RBX2025 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.280000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX2017 RBX2021 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2017 RBX2023 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.129999995 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2017 RBX2025 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.280000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX2017 RBX2021 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2017 RBX2023 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.129999995 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2017 RBX2025 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.280000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX2017 RBX2021 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2017 RBX2023 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.129999995 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2017 RBX2025 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.280000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX2017 RBX2021 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2017 RBX2023 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.129999995 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2017 RBX2025 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.280000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX2017 RBX2021 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2017 RBX2023 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.129999995 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2017 RBX2025 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.280000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX2017 RBX2021 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2017 RBX2023 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.129999995 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2017 RBX2025 false -0.5 0.5 0 0 -0.5 0.5 4 0 23 -26.0625 3.67500353 -1.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -3.27251826e-008 0.00214467756 -3.27251826e-008 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=42838541 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX2047 RBX2050 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX2047 RBX2052 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX2047 RBX2054 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX2047 RBX2056 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX2047 RBX2017 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 -24.5625 3.67500353 -1.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.27251826e-008 0.00214467756 -3.27251826e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 -27.5625 3.67500353 -1.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.27251826e-008 0.00214467756 -3.27251826e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 -25.5625 1.67500353 -1.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.27251826e-008 0.00214467756 -3.27251826e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 -26.5625 1.67500353 -1.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.27251826e-008 0.00214467756 -3.27251826e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 http://www.watrbx.wtf/asset/?id=42838541 Shirt Graphic 0 0.280000001 0.0500000007 1 0 0 0 1 0 0 0 1 FrostVisionGoggles false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -26.0625 5.39500332 -1.51250005 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.27251826e-008 0.00214467756 -3.27251826e-008 3 1 1.39999914 0.600000024 1.80000019 2 2 http://www.watrbx.wtf/asset/?id=72015821 5 Mesh 0 0 0 1.02999997 1 1 http://www.watrbx.wtf/asset/?id=72015780 1 1 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 SatelliteDish false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -26.0625 6.47500324 -1.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.27251826e-008 0.00214467756 -3.27251826e-008 2 1 1 1.20000005 1 2 2 http://www.watrbx.wtf/asset/?id=1095752 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=1095753 1 1 1 0 0.129999995 0 1 0 0 0 1 0 0 0 1 Space Hat false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -26.0625 5.54500341 -1.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.27251826e-008 0.00214467756 -3.27251826e-008 2 1 2 1.60000002 2 2 2 http://www.watrbx.wtf/asset/?id=1079902 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=1079903 1 1 1 24 24 1003 Body Colors 24 1003 23 0 0 0 1 0 0 0 1 0 0 0 1 Player39 RBX2073 false -0.5 0.5 0 0 -0.5 0.5 4 0 106 2.9375 5.11250305 67.4375 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.92929775e-007 0.0042146151 -1.92929775e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=10749456 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2073 RBX2077 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2073 RBX2079 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 -0.100000001 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX2073 RBX2081 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2073 RBX2077 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2073 RBX2079 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 -0.100000001 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX2073 RBX2081 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2073 RBX2077 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2073 RBX2079 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 -0.100000001 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX2073 RBX2081 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2073 RBX2077 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2073 RBX2079 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 -0.100000001 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX2073 RBX2081 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2073 RBX2077 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2073 RBX2079 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 -0.100000001 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX2073 RBX2081 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2073 RBX2077 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2073 RBX2079 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 -0.100000001 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX2073 RBX2081 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2073 RBX2077 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2073 RBX2079 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 -0.100000001 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX2073 RBX2081 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2073 RBX2077 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2073 RBX2079 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 -0.100000001 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX2073 RBX2081 false -0.5 0.5 0 0 -0.5 0.5 4 0 199 2.9375 3.61250281 67.4375 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.92929775e-007 0.0042146151 -1.92929775e-007 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?version=1&id=1131282 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX2103 RBX2106 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX2103 RBX2108 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX2103 RBX2110 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX2103 RBX2112 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX2103 RBX2073 false -0.5 0.5 0 0 -0.5 0.5 4 0 106 4.4375 3.61250281 67.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.92929775e-007 0.0042146151 -1.92929775e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 106 1.4375 3.61250281 67.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.92929775e-007 0.0042146151 -1.92929775e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 3.4375 1.61250281 67.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.92929775e-007 0.0042146151 -1.92929775e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 2.4375 1.61250281 67.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.92929775e-007 0.0042146151 -1.92929775e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 106 106 1003 Body Colors 106 1003 199 false Health 7 false HealthScript v3.1 8 0 4 27111857 Roblox 2.0 Left Leg 0 0 5 27111882 Roblox 2.0 Right Leg 0 0 3 27493061 Alien Right Arm 27493193 0 2 27492984 Alien Left Arm 27493193 0 0.300000012 0 1 0 0 0 1 0 0 0 1 IceSkull false -0.5 0.5 0 0 -0.5 0.5 0 0 194 2.9375 5.31250286 67.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0.300000012 -1.92929775e-007 0.0042146151 -1.92929775e-007 0 0 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=6552202 5 Mesh 0 0 0 3.20000005 3.20000005 3.20000005 http://www.watrbx.wtf/asset/?id=6552149 1 1 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 Angel false -0.5 0.5 0 0 -0.5 0.5 0 0 194 2.9375 4.76250315 67.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.92929775e-007 0.0042146151 -1.92929775e-007 0 1 4 3 3 2 2 http://www.watrbx.wtf/asset/?id=15392960 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=15392970 1 1 1 Pants http://www.watrbx.wtf/asset/?id=21581402 Shirt http://www.watrbx.wtf/asset/?id=3132913 0 0.400000006 -0.100000001 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 Bluetooth false -0.5 0.5 0 0 -0.5 0.5 0 0 194 2.93748522 5.20453691 67.3778 -1 2.89589861e-005 -3.19997998e-005 3.19997998e-005 0.995035768 -0.0995167717 2.89589861e-005 -0.0995167717 -0.995035768 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.92929775e-007 0.0042146151 -1.92929775e-007 2 1 2 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=13652771 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=13652772 1 1 1 http://www.watrbx.wtf/asset/?version=1&id=1131282 Shirt Graphic 0 1 36780113 Skeleton Torso 36780292 0 0 0 1 0 0 0 1 0 0 0 1 Player4 RBX2136 false -0.5 0.5 0 0 -0.5 0.5 4 0 1001 -13.0625 5.17499828 1.4375 -1 0 0 0 1 0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.64146332e-008 -0.0010757494 -1.64146332e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=7074749 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.316000015 0.252999991 1 0 0 0 1 0 0 0 1 HeadWeld RBX2136 RBX2140 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0 0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX2136 RBX2142 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.100000001 -0.100000001 0.119999997 1 0 0 0 1 0 0 0 1 HeadWeld RBX2136 RBX2144 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.316000015 0.252999991 1 0 0 0 1 0 0 0 1 HeadWeld RBX2136 RBX2140 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0 0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX2136 RBX2142 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.100000001 -0.100000001 0.119999997 1 0 0 0 1 0 0 0 1 HeadWeld RBX2136 RBX2144 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.316000015 0.252999991 1 0 0 0 1 0 0 0 1 HeadWeld RBX2136 RBX2140 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0 0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX2136 RBX2142 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.100000001 -0.100000001 0.119999997 1 0 0 0 1 0 0 0 1 HeadWeld RBX2136 RBX2144 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.316000015 0.252999991 1 0 0 0 1 0 0 0 1 HeadWeld RBX2136 RBX2140 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0 0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX2136 RBX2142 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.100000001 -0.100000001 0.119999997 1 0 0 0 1 0 0 0 1 HeadWeld RBX2136 RBX2144 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.316000015 0.252999991 1 0 0 0 1 0 0 0 1 HeadWeld RBX2136 RBX2140 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0 0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX2136 RBX2142 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.100000001 -0.100000001 0.119999997 1 0 0 0 1 0 0 0 1 HeadWeld RBX2136 RBX2144 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.316000015 0.252999991 1 0 0 0 1 0 0 0 1 HeadWeld RBX2136 RBX2140 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0 0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX2136 RBX2142 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.100000001 -0.100000001 0.119999997 1 0 0 0 1 0 0 0 1 HeadWeld RBX2136 RBX2144 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.316000015 0.252999991 1 0 0 0 1 0 0 0 1 HeadWeld RBX2136 RBX2140 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0 0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX2136 RBX2142 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.100000001 -0.100000001 0.119999997 1 0 0 0 1 0 0 0 1 HeadWeld RBX2136 RBX2144 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.316000015 0.252999991 1 0 0 0 1 0 0 0 1 HeadWeld RBX2136 RBX2140 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0 0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX2136 RBX2142 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.100000001 -0.100000001 0.119999997 1 0 0 0 1 0 0 0 1 HeadWeld RBX2136 RBX2144 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 -13.0625 3.67499804 1.4375 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.64146332e-008 -0.0010757494 -1.64146332e-008 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX2166 RBX2169 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX2166 RBX2171 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX2166 RBX2173 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX2166 RBX2175 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX2166 RBX2136 false -0.5 0.5 0 0 -0.5 0.5 4 0 18 -11.5625 3.67499804 1.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.64146332e-008 -0.0010757494 -1.64146332e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 18 -14.5625 3.67499804 1.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.64146332e-008 -0.0010757494 -1.64146332e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 -12.5625 1.67499804 1.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.64146332e-008 -0.0010757494 -1.64146332e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 -13.5625 1.67499804 1.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.64146332e-008 -0.0010757494 -1.64146332e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.316000015 0.252999991 1 0 0 0 1 0 0 0 1 GlassesYellowAndBlack false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -13.0625 5.3589983 1.69050002 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.64146332e-008 -0.0010757494 -1.64146332e-008 0 1 1 1 1 2 2 http://www.watrbx.wtf/asset/?id=30167990 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=30167999 1 1 1 0 -0 0.100000001 1 0 0 0 1 0 0 0 1 1880 false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -13.0625 5.67499828 1.53750002 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.64146332e-008 -0.0010757494 -1.64146332e-008 0 1 1 1 2 2 2 http://www.watrbx.wtf/asset/?id=35624571 5 Mesh 0 0 0 1.04999995 1.04999995 1.04999995 http://www.watrbx.wtf/asset/?id=35624553 1 1 1 -0.100000001 -0.100000001 0.119999997 1 0 0 0 1 0 0 0 1 BlackSk8erCap false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -13.1625004 5.77499819 1.5575 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.64146332e-008 -0.0010757494 -1.64146332e-008 3 1 1.20000029 0.799999833 1.5999999 2 2 http://www.watrbx.wtf/asset/?id=56860858 5 Mesh 0 -1 0 1 1 1 http://www.watrbx.wtf/asset/?id=56860929 1 1 1 Pants http://www.watrbx.wtf/asset/?id=32403886 Shirt http://www.watrbx.wtf/asset/?id=32400654 1001 18 1003 Body Colors 18 1003 1003 0 0 0 1 0 0 0 1 0 0 0 1 Player40 RBX2193 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -32.0625 5.17500067 52.4375 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -8.8499263e-008 0.0057998877 -8.8499263e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=7074749 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2193 RBX2197 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2193 RBX2197 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2193 RBX2197 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2193 RBX2197 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2193 RBX2197 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2193 RBX2197 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2193 RBX2197 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2193 RBX2197 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -32.0625 3.67500067 52.4375 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -8.8499263e-008 0.0057998877 -8.8499263e-008 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX2205 RBX2208 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX2205 RBX2210 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX2205 RBX2212 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX2205 RBX2214 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX2205 RBX2193 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -30.5625 3.67500067 52.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -8.8499263e-008 0.0057998877 -8.8499263e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -33.5625 3.67500067 52.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -8.8499263e-008 0.0057998877 -8.8499263e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1030 -31.5625 1.67500067 52.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -8.8499263e-008 0.0057998877 -8.8499263e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1030 -32.5625 1.67500067 52.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -8.8499263e-008 0.0057998877 -8.8499263e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.400000006 0 1 0 0 0 1 0 0 0 1 NinjaMaskOfLight false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -32.0625 5.27500057 52.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -8.8499263e-008 0.0057998877 -8.8499263e-008 2 1 1 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=1286427 5 Mesh 0 0 0 1.10000002 1.10000002 1.10000002 http://www.watrbx.wtf/asset/?id=5808536 1 1 1 Shirt http://www.watrbx.wtf/asset/?id=44015068 Pants http://www.watrbx.wtf/asset/?id=44015101 1030 1030 1030 Body Colors 1030 1030 1030 0 0 0 1 0 0 0 1 0 0 0 1 Player41 RBX2228 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 -16.125 5.17500257 69.375 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.01805597e-006 0.00215217029 -6.23969754e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=66329788 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2228 RBX2232 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2228 RBX2234 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2228 RBX2232 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2228 RBX2234 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2228 RBX2232 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2228 RBX2234 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2228 RBX2232 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2228 RBX2234 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2228 RBX2232 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2228 RBX2234 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2228 RBX2232 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2228 RBX2234 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2228 RBX2232 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2228 RBX2234 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2228 RBX2232 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2228 RBX2234 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 -16.125 3.67500257 69.375 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.01805597e-006 0.00215217029 -6.23969754e-007 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=62324296 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX2249 RBX2252 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX2249 RBX2254 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX2249 RBX2256 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX2249 RBX2258 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX2249 RBX2228 false -0.5 0.5 0 0 -0.5 0.5 4 0 21 -14.625 3.67500257 69.375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.01805597e-006 0.00215217029 -6.23969754e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 21 -17.625 3.67500257 69.375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.01805597e-006 0.00215217029 -6.23969754e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 -15.625 1.67500257 69.375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.01805597e-006 0.00215217029 -6.23969754e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 -16.625 1.67500257 69.375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.01805597e-006 0.00215217029 -6.23969754e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0 0 1 0 0 0 1 0 0 0 1 Ultra-Fabulous Hair false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -16.125 5.67500257 69.375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.01805597e-006 0.00215217029 -6.23969754e-007 0 1 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=16627529 5 Mesh 0 0 0 1.04999995 1.04999995 1.04999995 http://www.watrbx.wtf/asset/?id=16627494 1 1 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 Bandana false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -16.125 4.87500238 69.375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.01805597e-006 0.00215217029 -6.23969754e-007 0 1 1 1 1 2 2 http://www.watrbx.wtf/asset/?id=20637493 5 Mesh 0 0 0 1 0.899999976 1 http://www.watrbx.wtf/asset/?id=20637003 1 1 1 http://www.watrbx.wtf/asset/?id=62324296 Shirt Graphic Shirt http://www.watrbx.wtf/asset/?id=89108749 Pants http://www.watrbx.wtf/asset/?id=89108794 1003 21 1003 Body Colors 21 1003 1003 0 0 0 1 0 0 0 1 0 0 0 1 Player42 RBX2275 false -0.5 0.5 0 0 -0.5 0.5 4 0 105 -15.0012493 5.15787029 13.4985046 -1 0 0 0 1 0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.59939368e-008 0.00104817864 -1.59939368e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX2275 RBX2279 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.119999997 0.0649999976 1 0 0 0 1 0 0 0 1 HeadWeld RBX2275 RBX2281 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.270000011 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2275 RBX2283 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX2275 RBX2279 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.119999997 0.0649999976 1 0 0 0 1 0 0 0 1 HeadWeld RBX2275 RBX2281 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.270000011 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2275 RBX2283 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX2275 RBX2279 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.119999997 0.0649999976 1 0 0 0 1 0 0 0 1 HeadWeld RBX2275 RBX2281 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.270000011 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2275 RBX2283 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX2275 RBX2279 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.119999997 0.0649999976 1 0 0 0 1 0 0 0 1 HeadWeld RBX2275 RBX2281 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.270000011 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2275 RBX2283 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX2275 RBX2279 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.119999997 0.0649999976 1 0 0 0 1 0 0 0 1 HeadWeld RBX2275 RBX2281 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.270000011 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2275 RBX2283 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX2275 RBX2279 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.119999997 0.0649999976 1 0 0 0 1 0 0 0 1 HeadWeld RBX2275 RBX2281 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.270000011 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2275 RBX2283 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX2275 RBX2279 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.119999997 0.0649999976 1 0 0 0 1 0 0 0 1 HeadWeld RBX2275 RBX2281 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.270000011 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2275 RBX2283 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX2275 RBX2279 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.119999997 0.0649999976 1 0 0 0 1 0 0 0 1 HeadWeld RBX2275 RBX2281 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.270000011 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2275 RBX2283 false -0.5 0.5 0 0 -0.5 0.5 4 0 105 -15.0012493 3.65787005 13.4985046 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.59939368e-008 0.00104817864 -1.59939368e-008 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX2305 RBX2308 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX2305 RBX2310 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX2305 RBX2312 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX2305 RBX2314 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX2305 RBX2275 false -0.5 0.5 0 0 -0.5 0.5 4 0 105 -13.5012493 3.65787005 13.4985046 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.59939368e-008 0.00104817864 -1.59939368e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 105 -16.5012493 3.65787005 13.4985046 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.59939368e-008 0.00104817864 -1.59939368e-008 0 1 1 2 1 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.70000005 0 0 1 1 0 0 0 1 0 RightGrip RBX2308 RBX2317 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.70000005 0 0 1 1 0 0 0 1 0 RightGrip RBX2308 RBX2317 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.70000005 0 0 1 1 0 0 0 1 0 RightGrip RBX2308 RBX2317 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.70000005 0 0 1 1 0 0 0 1 0 RightGrip RBX2308 RBX2317 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.70000005 0 0 1 1 0 0 0 1 0 RightGrip RBX2308 RBX2317 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.70000005 0 0 1 1 0 0 0 1 0 RightGrip RBX2308 RBX2317 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.70000005 0 0 1 1 0 0 0 1 0 RightGrip RBX2308 RBX2317 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.70000005 0 0 1 1 0 0 0 1 0 RightGrip RBX2308 RBX2317 false -0.5 0.5 0 0 -0.5 0.5 0 0 105 -14.5012493 1.65787005 13.4985046 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.59939368e-008 0.00104817864 -1.59939368e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 105 -15.5012493 1.65787005 13.4985046 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.59939368e-008 0.00104817864 -1.59939368e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 105 105 105 Body Colors 105 105 105 false Health 7 false HealthScript v3.1 8 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 Swordpack false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -15.0012493 4.2578702 12.6985044 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.59939368e-008 0.00104817864 -1.59939368e-008 0 1 3 3 2 2 2 http://www.watrbx.wtf/asset/?id=19367813 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=19367808 1 1 1 Shirt http://www.watrbx.wtf/asset/?id=43803912 0 0.119999997 0.0649999976 1 0 0 0 1 0 0 0 1 AncalagonGreenBlack false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -15.0012493 5.53787041 13.5635042 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.59939368e-008 0.00104817864 -1.59939368e-008 3 1 2.60000062 2.00000024 3.20000052 2 2 http://www.watrbx.wtf/asset/?id=58430372 5 Mesh 0 -1 0 1 1.04999995 1 http://www.watrbx.wtf/asset/?id=67312668 1 1 1 true true 0 0 -1.70000005 0 0 1 1 0 0 0 1 0 OrangeKatana http://www.watrbx.wtf/asset/?id=25265421 false -0.5 0.5 0 0 -0.5 0.5 0 0 199 -16.5012493 2.65787005 15.1985044 0 -1 0 1 0 0 0 0 1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.59939368e-008 0.00104817864 -1.59939368e-008 2 1 1 0.800000012 5 2 2 http://www.watrbx.wtf/asset/?id=11442510 5 Mesh 0 0 0 1.70000005 1.70000005 1.70000005 http://www.watrbx.wtf/asset/?id=11442524 1 0.400000006 0 false Sound 1 false rbxasset://sounds/swordslash.wav 0.699999988 false Sound 1 false rbxasset://sounds/swordlunge.wav 0.600000024 false Sound 1 false rbxasset://sounds/unsheath.wav 1 false http://www.watrbx.wtf/asset/?id=1014476 Local Gui false SwordScript 32 false CheckForEpicKatana 33 true EpicKatanaScript 34 true http://www.watrbx.wtf/asset/?id=1014476 Local Gui 0 -0.270000011 0 1 0 0 0 1 0 0 0 1 Mrs. Tentacles false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -15.0012493 5.92787027 13.4985046 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.59939368e-008 0.00104817864 -1.59939368e-008 2 1 2 1.60000002 2 2 2 http://www.watrbx.wtf/asset/?id=11144802 5 Mesh 0 0 0 0.850000024 0.850000024 0.850000024 http://www.watrbx.wtf/asset/?id=13416097 1 1 1 Pants http://www.watrbx.wtf/asset/?id=43804244 0 0 0 1 0 0 0 1 0 0 0 1 Player43 RBX2351 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 -33.0625 5.17500401 33.4375 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -9.79755157e-008 -0.0021403078 -9.79755157e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2351 RBX2355 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2351 RBX2357 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2351 RBX2359 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2351 RBX2355 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2351 RBX2357 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2351 RBX2359 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2351 RBX2355 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2351 RBX2357 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2351 RBX2359 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2351 RBX2355 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2351 RBX2357 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2351 RBX2359 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2351 RBX2355 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2351 RBX2357 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2351 RBX2359 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2351 RBX2355 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2351 RBX2357 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2351 RBX2359 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2351 RBX2355 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2351 RBX2357 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2351 RBX2359 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2351 RBX2355 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2351 RBX2357 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2351 RBX2359 false -0.5 0.5 0 0 -0.5 0.5 4 0 194 -33.0625 3.67500377 33.4375 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -9.79755157e-008 -0.0021403078 -9.79755157e-008 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX2381 RBX2384 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX2381 RBX2386 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX2381 RBX2388 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX2381 RBX2390 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX2381 RBX2351 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 -31.5625 3.67500377 33.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.79755157e-008 -0.0021403078 -9.79755157e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 -34.5625 3.67500377 33.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.79755157e-008 -0.0021403078 -9.79755157e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 102 -32.5625 1.67500377 33.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.79755157e-008 -0.0021403078 -9.79755157e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 102 -33.5625 1.67500377 33.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.79755157e-008 -0.0021403078 -9.79755157e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.100000001 0 1 0 0 0 1 0 0 0 1 BCEgg false -0.5 0.5 0 0 -0.5 0.5 0 0 1 -33.0625 5.5750041 33.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -9.79755157e-008 -0.0021403078 -9.79755157e-008 0 0 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=1527559 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=1530169 1 1 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 GoldTetris false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -33.0625 6.27500391 33.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -9.79755157e-008 -0.0021403078 -9.79755157e-008 2 1 1 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=5839207 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=5839168 1 1 1 Shirt http://www.watrbx.wtf/asset/?id=45919474 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 SilverTetris false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -33.0625 6.4750042 33.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -9.79755157e-008 -0.0021403078 -9.79755157e-008 2 1 1 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=5839199 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=5839160 1 1 1 Pants http://www.watrbx.wtf/asset/?id=45919494 226 226 102 Body Colors 226 102 194 0 0 0 1 0 0 0 1 0 0 0 1 Player93 RBX2408 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 10.9375 5.18747759 -54.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.12322311e-006 0.0245371833 -1.12322311e-006 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2408 RBX2412 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX2408 RBX2414 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2408 RBX2412 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX2408 RBX2414 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2408 RBX2412 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX2408 RBX2414 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2408 RBX2412 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX2408 RBX2414 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2408 RBX2412 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX2408 RBX2414 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2408 RBX2412 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX2408 RBX2414 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2408 RBX2412 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX2408 RBX2414 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2408 RBX2412 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX2408 RBX2414 false -0.5 0.5 0 0 -0.5 0.5 4 0 23 10.9375 3.68747759 -54.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.12322311e-006 0.0245371833 -1.12322311e-006 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=43614715 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX2429 RBX2432 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX2429 RBX2434 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX2429 RBX2436 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX2429 RBX2438 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX2429 RBX2408 false -0.5 0.5 0 0 -0.5 0.5 4 0 23 12.4375 3.68747759 -54.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.12322311e-006 0.0245371833 -1.12322311e-006 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 102 9.4375 3.68747759 -54.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.12322311e-006 0.0245371833 -1.12322311e-006 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 102 11.4375 1.68747759 -54.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.12322311e-006 0.0245371833 -1.12322311e-006 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 23 10.4375 1.68747759 -54.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.12322311e-006 0.0245371833 -1.12322311e-006 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.100000001 0 1 0 0 0 1 0 0 0 1 BCEgg false -0.5 0.5 0 0 -0.5 0.5 0 0 1 10.9375 5.58747768 -54.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.12322311e-006 0.0245371833 -1.12322311e-006 0 0 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=1527559 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=1530169 1 1 1 0 0.100000001 0.0199999996 1 0 0 0 1 0 0 0 1 LeBolt false -0.5 0.5 0 0 -0.5 0.5 0 0 194 10.9375 5.58747768 -54.5424995 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.12322311e-006 0.0245371833 -1.12322311e-006 0 1 3 2 1 2 2 http://www.watrbx.wtf/asset/?id=31087361 5 Mesh 0 0 0 1.14999998 1.04999995 1.14999998 http://www.watrbx.wtf/asset/?id=31087368 1 1 1 Pants http://www.watrbx.wtf/asset/?id=16681612 http://www.watrbx.wtf/asset/?id=43614715 Shirt Graphic Shirt http://www.watrbx.wtf/asset/?id=16507303 1 23 102 Body Colors 102 23 23 0 0 0 1 0 0 0 1 0 0 0 1 Player45 RBX2455 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 94.9375 5.17500114 2.4375 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.25762883e-008 0.00213491963 -3.25762883e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.70000005 -1.39999998 1 0 0 0 1 0 0 0 1 HeadWeld RBX2455 RBX2459 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2455 RBX2461 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.70000005 -1.39999998 1 0 0 0 1 0 0 0 1 HeadWeld RBX2455 RBX2459 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2455 RBX2461 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.70000005 -1.39999998 1 0 0 0 1 0 0 0 1 HeadWeld RBX2455 RBX2459 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2455 RBX2461 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.70000005 -1.39999998 1 0 0 0 1 0 0 0 1 HeadWeld RBX2455 RBX2459 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2455 RBX2461 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.70000005 -1.39999998 1 0 0 0 1 0 0 0 1 HeadWeld RBX2455 RBX2459 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2455 RBX2461 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.70000005 -1.39999998 1 0 0 0 1 0 0 0 1 HeadWeld RBX2455 RBX2459 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2455 RBX2461 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.70000005 -1.39999998 1 0 0 0 1 0 0 0 1 HeadWeld RBX2455 RBX2459 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2455 RBX2461 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.70000005 -1.39999998 1 0 0 0 1 0 0 0 1 HeadWeld RBX2455 RBX2459 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2455 RBX2461 false -0.5 0.5 0 0 -0.5 0.5 4 0 104 94.9375 3.67500138 2.4375 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -3.25762883e-008 0.00213491963 -3.25762883e-008 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=63461310 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX2476 RBX2479 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX2476 RBX2481 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX2476 RBX2483 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX2476 RBX2485 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX2476 RBX2455 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 96.4375 3.67500138 2.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.25762883e-008 0.00213491963 -3.25762883e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 93.4375 3.67500138 2.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.25762883e-008 0.00213491963 -3.25762883e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 95.4375 1.67500138 2.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.25762883e-008 0.00213491963 -3.25762883e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 94.4375 1.67500138 2.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.25762883e-008 0.00213491963 -3.25762883e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 1.70000005 -1.39999998 1 0 0 0 1 0 0 0 1 Batwings false -0.5 0.5 0 0 -0.5 0.5 0 0 194 94.9375 3.9750011 1.03750002 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.25762883e-008 0.00213491963 -3.25762883e-008 0 1 5 2 2 2 2 http://www.watrbx.wtf/asset/?id=19367744 5 Mesh 0 0 0 1.04999995 1.04999995 1.04999995 http://www.watrbx.wtf/asset/?id=19367734 1 1 1 Pants http://www.watrbx.wtf/asset/?id=61663962 Shirt http://www.watrbx.wtf/asset/?id=65985355 0 0.100000001 0 1 0 0 0 1 0 0 0 1 PumpkinHead false -0.5 0.5 0 0 -0.5 0.5 0 0 194 94.9375 5.57500124 2.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.25762883e-008 0.00213491963 -3.25762883e-008 0 0 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=1158007 5 Mesh 0 0 0 0.5 0.5 0.5 http://www.watrbx.wtf/asset/?id=1158033 1 1 1 http://www.watrbx.wtf/asset/?id=63461310 Shirt Graphic 1 1 1003 Body Colors 1 1003 104 0 0 0 1 0 0 0 1 0 0 0 1 Player46 RBX2502 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 75.9375 5.11250257 18.4375 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -4.12796538e-007 -0.00901767798 -4.12796538e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=15431991 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX2502 RBX2506 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.85000002 0.550000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX2502 RBX2508 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX2502 RBX2506 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.85000002 0.550000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX2502 RBX2508 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX2502 RBX2506 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.85000002 0.550000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX2502 RBX2508 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX2502 RBX2506 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.85000002 0.550000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX2502 RBX2508 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX2502 RBX2506 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.85000002 0.550000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX2502 RBX2508 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX2502 RBX2506 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.85000002 0.550000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX2502 RBX2508 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX2502 RBX2506 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.85000002 0.550000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX2502 RBX2508 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX2502 RBX2506 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.85000002 0.550000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX2502 RBX2508 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 75.9375 3.61250257 18.4375 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -4.12796538e-007 -0.00901767798 -4.12796538e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX2523 RBX2526 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX2523 RBX2528 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX2523 RBX2530 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX2523 RBX2532 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX2523 RBX2502 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 77.4375 3.61250257 18.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -4.12796538e-007 -0.00901767798 -4.12796538e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 74.4375 3.61250257 18.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -4.12796538e-007 -0.00901767798 -4.12796538e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 24 76.4375 1.61250257 18.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -4.12796538e-007 -0.00901767798 -4.12796538e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 24 75.4375 1.61250257 18.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -4.12796538e-007 -0.00901767798 -4.12796538e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 Clover Cap false -0.5 0.5 0 0 -0.5 0.5 0 0 194 75.9375 5.71250248 18.4874992 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -4.12796538e-007 -0.00901767798 -4.12796538e-007 2 1 1 0.800000012 2 2 2 http://www.watrbx.wtf/asset/?id=10519380 5 Mesh 0 0 0 1.02999997 1.02999997 1.02999997 http://www.watrbx.wtf/asset/?id=23957943 1 1 1 0 1.85000002 0.550000012 1 0 0 0 1 0 0 0 1 blamejohntie false -0.5 0.5 0 0 -0.5 0.5 0 0 194 75.9375 3.76250267 18.9874992 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -4.12796538e-007 -0.00901767798 -4.12796538e-007 0 1 1 2 1 2 2 http://www.watrbx.wtf/asset/?id=28463033 5 Mesh 0 0 0 1.39999998 1.20000005 1.39999998 http://www.watrbx.wtf/asset/?id=31106785 1 1 1 Shirt http://www.watrbx.wtf/asset/?id=16104736 Pants http://www.watrbx.wtf/asset/?id=11122689 24 24 24 Body Colors 24 24 24 0 0 0 1 0 0 0 1 0 0 0 1 Player47 RBX2548 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 -45.0625 5.17500114 -34.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.11289739e-006 0.00429028505 -7.20110108e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=7074749 0 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX2548 RBX2552 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2548 RBX2554 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX2548 RBX2552 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2548 RBX2554 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX2548 RBX2552 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2548 RBX2554 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX2548 RBX2552 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2548 RBX2554 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX2548 RBX2552 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2548 RBX2554 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX2548 RBX2552 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2548 RBX2554 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX2548 RBX2552 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2548 RBX2554 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX2548 RBX2552 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2548 RBX2554 false -0.5 0.5 0 0 -0.5 0.5 4 0 199 -45.0625 3.67500138 -34.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.11289739e-006 0.00429028505 -7.20110108e-007 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=35444726 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX2569 RBX2572 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX2569 RBX2574 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX2569 RBX2576 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX2569 RBX2578 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX2569 RBX2548 false -0.5 0.5 0 0 -0.5 0.5 4 0 199 -43.5625 3.67500138 -34.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.11289739e-006 0.00429028505 -7.20110108e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 -46.5625 3.67500138 -34.5625 -1 0 0 0 1 -0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.11289739e-006 0.00429028505 -7.20110108e-007 0 1 1 2 1 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0.5 0 -1 0 0 0 1 0 0 0 -1 RightGrip RBX2572 RBX2581 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0.5 0 -1 0 0 0 1 0 0 0 -1 RightGrip RBX2572 RBX2581 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0.5 0 -1 0 0 0 1 0 0 0 -1 RightGrip RBX2572 RBX2581 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0.5 0 -1 0 0 0 1 0 0 0 -1 RightGrip RBX2572 RBX2581 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0.5 0 -1 0 0 0 1 0 0 0 -1 RightGrip RBX2572 RBX2581 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0.5 0 -1 0 0 0 1 0 0 0 -1 RightGrip RBX2572 RBX2581 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0.5 0 -1 0 0 0 1 0 0 0 -1 RightGrip RBX2572 RBX2581 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0.5 0 -1 0 0 0 1 0 0 0 -1 RightGrip RBX2572 RBX2581 false -0.5 0.5 0 0 -0.5 0.5 0 0 199 -44.5625 1.67500138 -34.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.11289739e-006 0.00429028505 -7.20110108e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 199 -45.5625 1.67500138 -34.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.11289739e-006 0.00429028505 -7.20110108e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 Vet's Medal false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -45.7625008 4.17500114 -33.9625015 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.11289739e-006 0.00429028505 -7.20110108e-007 0 1 1 1 1 2 2 http://www.watrbx.wtf/asset/?id=42157374 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=42157349 1 1 1 Shirt http://www.watrbx.wtf/asset/?id=20993001 0 -0.200000003 0 1 0 0 0 1 0 0 0 1 IronHelm false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -45.0625 5.87500095 -34.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.11289739e-006 0.00429028505 -7.20110108e-007 2 1 2 2.4000001 2 2 2 http://www.watrbx.wtf/asset/?id=1272707 5 Mesh 0 0 0 0.899999976 0.899999976 0.899999976 http://www.watrbx.wtf/asset/?id=1272708 1 1 1 Pants http://www.watrbx.wtf/asset/?id=21007713 http://www.watrbx.wtf/asset/?id=35444726 Shirt Graphic 24 199 199 Body Colors 24 199 199 true true 0 0.5 0 -1 0 0 0 1 0 0 0 -1 Tixbomb http://www.watrbx.wtf/asset/?id=19360478 false -0.5 0.5 0 0 -0.5 0.5 0 0 1002 -46.5625 2.67500138 -35.0625 1 0 0 0 0 -1 0 1 0 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.11289739e-006 0.00429028505 -7.20110108e-007 2 1 1 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=16657069 5 Mesh 0 0 0 0.5 0.600000024 0.5 http://www.watrbx.wtf/asset/?id=19354307 1 1 1 -4.71828389e-006 -1.06949216e-007 6.73912837e-008 5.34682295e-005 1.23517841e-013 1 -4.3159529e-005 1 2.30754016e-009 -1 -4.3159529e-005 5.34682295e-005 -4.71828389e-006 -1.06949216e-007 6.73912837e-008 5.34682295e-005 1.23517841e-013 1 -4.3159529e-005 1 2.30754016e-009 -1 -4.3159529e-005 5.34682295e-005 Weld null null -1.34138972e-007 -6.91051537e-006 0 -9.20239108e-005 0.999999225 -0.00125072582 3.04560999e-005 0.00125072862 0.999999225 1 9.19857484e-005 -3.05711801e-005 -1.34138972e-007 -6.91051537e-006 0 -9.20239108e-005 0.999999225 -0.00125072582 3.04560999e-005 0.00125072862 0.999999225 1 9.19857484e-005 -3.05711801e-005 Weld null null 3.64912034e-006 -1.13236744e-007 -2.01656292e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 3.64912034e-006 -1.13236744e-007 -2.01656292e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 Weld null null 1.6321755e-007 3.49538391e-006 0 -7.28338782e-005 0.996504903 -0.083534196 2.91752731e-005 0.083534196 0.996504903 1 7.01421886e-005 -3.51574236e-005 1.6321755e-007 3.49538391e-006 0 -7.28338782e-005 0.996504903 -0.083534196 2.91752731e-005 0.083534196 0.996504903 1 7.01421886e-005 -3.51574236e-005 Weld null null 5.25072437e-006 -9.04979558e-008 -6.02840373e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 5.25072437e-006 -9.04979558e-008 -6.02840373e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 Weld null null 5.25072437e-006 -9.04979558e-008 -6.02840373e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 0.533214211 4.09488493e-005 -0.399536163 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 Weld null null 5.25072437e-006 -9.04979558e-008 -6.02840373e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 -1.12273511e-007 2.60849974e-005 -0.533189535 1 3.0530151e-005 -3.05050053e-005 -3.05050053e-005 0.999999642 0.000823975075 3.0530151e-005 -0.000823974144 0.999999642 Weld null null 5.25072437e-006 -9.04979558e-008 -6.02840373e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 0.533214211 0.373362005 -4.18045545e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 Weld null null 5.25072437e-006 -9.04979558e-008 -6.02840373e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 -5.43287024e-006 0.132771105 0.400390655 3.04002206e-005 0.999999642 0.000823906448 -3.05492395e-005 0.00082390738 -0.999999642 -1 3.03750403e-005 3.0574276e-005 Weld null null 5.25072437e-006 -9.04979558e-008 -6.02840373e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 -2.92850495e-006 -0.400390595 -0.132823572 -3.27828893e-005 0.999999642 0.000776855159 -1 -3.28164169e-005 4.31498556e-005 4.3175336e-005 -0.000776853703 0.999999702 Weld null null 5.25072437e-006 -9.04979558e-008 -6.02840373e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 1.20404536e-007 1.7940567e-005 0.132805407 -1.00000024 3.05050053e-005 3.0530151e-005 3.0530151e-005 0.999999642 0.000823974144 -3.05050053e-005 0.000823975075 -1 Weld null null 5.25072437e-006 -9.04979558e-008 -6.02840373e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 5.96581813e-005 -0.400390744 0.9335953 -3.27814814e-005 0.999999642 0.000819995475 1 3.27814705e-005 2.68806648e-008 0 0.000819995475 -0.999999642 Weld null null 5.25072437e-006 -9.04979558e-008 -6.02840373e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 2.33017072e-005 -0.933604836 0.400390595 -3.06367874e-005 0.999999881 0.000823944807 3.05473804e-005 -0.000824093819 0.999999881 1.00000012 3.05473804e-005 -3.06367874e-005 Weld null null 5.25072437e-006 -9.04979558e-008 -6.02840373e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 -1.52226988e-007 -0.373301029 -0.533214867 1 3.0530151e-005 -3.05050053e-005 -3.05050053e-005 0.999999642 0.000823975075 3.0530151e-005 -0.000823974144 0.999999642 Weld null null 5.25072437e-006 -9.04979558e-008 -6.02840373e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 -0.533214211 4.09488493e-005 -0.400390595 5.33489983e-005 -0.000776829896 0.999999702 -4.31595254e-005 0.999999702 0.000776832225 -1 -4.32009547e-005 5.33154525e-005 Weld null null 5.25072437e-006 -9.04979558e-008 -6.02840373e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 3.85732619e-008 1.708794e-006 -0.933600962 1 3.0530151e-005 -3.05050053e-005 -3.05050053e-005 0.999999642 0.000823975075 3.0530151e-005 -0.000823974144 0.999999642 Weld null null 4.58660736e-007 -1.05566846e-006 0 -5.56692794e-005 0.99799341 0.0633183867 3.14704266e-005 -0.0633183941 0.99799335 1 5.75502345e-005 -2.78823882e-005 4.58660736e-007 -1.05566846e-006 0 -5.56692794e-005 0.99799341 0.0633183867 3.14704266e-005 -0.0633183941 0.99799335 1 5.75502345e-005 -2.78823882e-005 Weld null null 4.58660736e-007 -1.05566846e-006 0 -5.56692794e-005 0.99799341 0.0633183867 3.14704266e-005 -0.0633183941 0.99799335 1 5.75502345e-005 -2.78823882e-005 0.533207953 4.02465412e-005 -0.399536252 -5.56692794e-005 0.99799341 0.0633183867 3.14704266e-005 -0.0633183941 0.99799335 1 5.75502345e-005 -2.78823882e-005 Weld null null 4.58660736e-007 -1.05566846e-006 0 -5.56692794e-005 0.99799341 0.0633183867 3.14704266e-005 -0.0633183941 0.99799335 1 5.75502345e-005 -2.78823882e-005 -3.86806875e-007 4.67300815e-005 -0.533184648 1 4.31367262e-005 1.36533708e-006 1.36533708e-006 -0.0632371902 0.99799633 4.31367262e-005 -0.99799633 -0.0632371902 Weld null null 4.58660736e-007 -1.05566846e-006 0 -5.56692794e-005 0.99799341 0.0633183867 3.14704266e-005 -0.0633183941 0.99799335 1 5.75502345e-005 -2.78823882e-005 0.533224404 0.373393357 -3.90072529e-007 -0.000114792158 0.997993529 0.0633164048 6.29389979e-005 -0.0633164048 0.997993529 1 0.000118546908 -5.55444822e-005 Weld null null 4.58660736e-007 -1.05566846e-006 0 -5.56692794e-005 0.99799341 0.0633183867 3.14704266e-005 -0.0633183941 0.99799335 1 5.75502345e-005 -2.78823882e-005 -1.24499784e-005 0.132795051 0.400390744 3.57627869e-006 -0.0632394478 0.997996151 -4.31388617e-005 0.997998357 0.0632394478 -0.999997795 -4.31388617e-005 8.34465027e-007 Weld null null 4.58660736e-007 -1.05566846e-006 0 -5.56692794e-005 0.99799341 0.0633183867 3.14704266e-005 -0.0633183941 0.99799335 1 5.75502345e-005 -2.78823882e-005 9.7206248e-006 -0.400390506 -0.132816374 7.27176666e-006 -0.0632625222 0.997991681 -0.999994695 -5.56707382e-005 -1.90734863e-006 6.10053539e-005 -0.997991621 -0.0632572174 Weld null null 4.58660736e-007 -1.05566846e-006 0 -5.56692794e-005 0.99799341 0.0633183867 3.14704266e-005 -0.0633183941 0.99799335 1 5.75502345e-005 -2.78823882e-005 1.12741731e-007 1.47659775e-005 0.132799253 -1 -1.36600397e-006 4.31341869e-005 4.31342378e-005 -0.0632345229 0.997998714 1.36429958e-006 0.997998655 0.0632345229 Weld null null 4.58660736e-007 -1.05566846e-006 0 -5.56692794e-005 0.99799341 0.0633183867 3.14704266e-005 -0.0633183941 0.99799335 1 5.75502345e-005 -2.78823882e-005 3.39694889e-005 -0.400390744 0.933587611 0.000129235501 -0.0632353127 0.997998655 1 3.76501193e-005 -0.000127109088 -2.95369882e-005 0.997998655 0.0632353202 Weld null null 4.58660736e-007 -1.05566846e-006 0 -5.56692794e-005 0.99799341 0.0633183867 3.14704266e-005 -0.0633183941 0.99799335 1 5.75502345e-005 -2.78823882e-005 9.72479302e-006 -0.933596671 0.400390506 -8.28434859e-005 -0.0632315427 0.997998893 4.3135231e-005 -0.997998893 -0.0632315353 1 3.78105942e-005 8.54052196e-005 Weld null null 4.58660736e-007 -1.05566846e-006 0 -5.56692794e-005 0.99799341 0.0633183867 3.14704266e-005 -0.0633183941 0.99799335 1 5.75502345e-005 -2.78823882e-005 -9.38037488e-008 -0.37332812 -0.533202708 1 4.31367262e-005 1.36533708e-006 1.36533708e-006 -0.0632371902 0.99799633 4.31367262e-005 -0.99799633 -0.0632371902 Weld null null 4.58660736e-007 -1.05566846e-006 0 -5.56692794e-005 0.99799341 0.0633183867 3.14704266e-005 -0.0633183941 0.99799335 1 5.75502345e-005 -2.78823882e-005 -0.533207953 4.02465412e-005 -0.400390506 6.62826715e-005 -0.997997105 -0.0632595494 -2.95351292e-005 -0.0632595569 0.997997105 -1 -6.42815285e-005 -3.36689882e-005 Weld null null 4.58660736e-007 -1.05566846e-006 0 -5.56692794e-005 0.99799341 0.0633183867 3.14704266e-005 -0.0633183941 0.99799335 1 5.75502345e-005 -2.78823882e-005 -7.07679817e-008 2.65414451e-006 -0.933581531 1 4.31367262e-005 1.36533708e-006 1.36533708e-006 -0.0632371902 0.99799633 4.31367262e-005 -0.99799633 -0.0632371902 Weld null null 5.53692553e-006 2.04514564e-007 -6.04753154e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 5.53692553e-006 2.04514564e-007 -6.04753154e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 Weld null null 5.53692553e-006 2.04514564e-007 -6.04753154e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 0.533212543 4.33809255e-005 -0.399536133 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 Weld null null 5.53692553e-006 2.04514564e-007 -6.04753154e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 -2.3357552e-007 5.55160077e-005 -0.533165157 1 3.0530151e-005 -3.05050053e-005 -3.05050053e-005 0.999999642 0.000823975075 3.0530151e-005 -0.000823974144 0.999999642 Weld null null 5.53692553e-006 2.04514564e-007 -6.04753154e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 0.533225417 0.37339133 -1.62893741e-007 -3.29021022e-005 0.000863162044 -0.999999642 -4.3140004e-005 0.999999642 0.000863163441 1 4.31683875e-005 -3.28648493e-005 Weld null null 5.53692553e-006 2.04514564e-007 -6.04753154e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 -4.40306758e-006 0.132771388 0.400390655 3.04002206e-005 0.999999642 0.000823906448 -3.05492395e-005 0.00082390738 -0.999999642 -1 3.03750403e-005 3.0574276e-005 Weld null null 5.53692553e-006 2.04514564e-007 -6.04753154e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 1.28626851e-007 -0.400390595 -0.13282387 -3.27828893e-005 0.999999642 0.000776855159 -1 -3.28164169e-005 4.31498556e-005 4.3175336e-005 -0.000776853703 0.999999702 Weld null null 5.53692553e-006 2.04514564e-007 -6.04753154e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 1.20785018e-007 3.03727884e-005 0.132775158 -1.00000024 3.05050053e-005 3.0530151e-005 3.0530151e-005 0.999999642 0.000823974144 -3.05050053e-005 0.000823975075 -1 Weld null null 5.53692553e-006 2.04514564e-007 -6.04753154e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 6.63429382e-005 -0.400390744 0.933595598 -3.27814814e-005 0.999999642 0.000819995475 1 3.27814705e-005 2.68806648e-008 0 0.000819995475 -0.999999642 Weld null null 5.53692553e-006 2.04514564e-007 -6.04753154e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 2.15904674e-005 -0.933605134 0.400390595 -3.06367874e-005 0.999999881 0.000823944807 3.05473804e-005 -0.000824093819 0.999999881 1.00000012 3.05473804e-005 -3.06367874e-005 Weld null null 5.53692553e-006 2.04514564e-007 -6.04753154e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 -1.52702455e-007 -0.373297483 -0.533215165 1 3.0530151e-005 -3.05050053e-005 -3.05050053e-005 0.999999642 0.000823975075 3.0530151e-005 -0.000823974144 0.999999642 Weld null null 5.53692553e-006 2.04514564e-007 -6.04753154e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 -0.533214509 4.16217954e-005 -0.400390595 5.33489983e-005 -0.000776829896 0.999999702 -4.31595254e-005 0.999999702 0.000776832225 -1 -4.32009547e-005 5.33154525e-005 Weld null null 5.53692553e-006 2.04514564e-007 -6.04753154e-008 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 3.86851866e-008 1.33582325e-005 -0.93360126 1 3.0530151e-005 -3.05050053e-005 -3.05050053e-005 0.999999642 0.000823975075 3.0530151e-005 -0.000823974144 0.999999642 Weld null null -3.95431243e-007 7.30769489e-006 0 -2.68220901e-005 0.997563839 -0.0696911812 2.94446945e-005 0.0696959496 0.997563839 0.999995232 2.94446945e-005 -2.68220901e-005 -3.95431243e-007 7.30769489e-006 0 -2.68220901e-005 0.997563839 -0.0696911812 2.94446945e-005 0.0696959496 0.997563839 0.999995232 2.94446945e-005 -2.68220901e-005 Weld null null -3.95431243e-007 7.30769489e-006 0 -2.68220901e-005 0.997563839 -0.0696911812 2.94446945e-005 0.0696959496 0.997563839 0.999995232 2.94446945e-005 -2.68220901e-005 0.533207655 4.00506069e-005 -0.399536133 -2.68220901e-005 0.997563839 -0.0696911812 2.94446945e-005 0.0696959496 0.997563839 0.999995232 2.94446945e-005 -2.68220901e-005 Weld null null -3.95431243e-007 7.30769489e-006 0 -2.68220901e-005 0.997563839 -0.0696911812 2.94446945e-005 0.0696959496 0.997563839 0.999995232 2.94446945e-005 -2.68220901e-005 -4.09776021e-007 5.64174661e-005 -0.533183694 1 4.31320695e-005 -1.50411142e-006 -1.50411142e-006 0.0696634054 0.997566879 4.31320695e-005 -0.997566879 0.0696634054 Weld null null -3.95431243e-007 7.30769489e-006 0 -2.68220901e-005 0.997563839 -0.0696911812 2.94446945e-005 0.0696959496 0.997563839 0.999995232 2.94446945e-005 -2.68220901e-005 0.53322345 0.373397857 -4.03579065e-007 -2.68220901e-005 0.997563839 -0.0696911812 2.94446945e-005 0.0696959496 0.997563839 0.999995232 2.94446945e-005 -2.68220901e-005 Weld null null -3.95431243e-007 7.30769489e-006 0 -2.68220901e-005 0.997563839 -0.0696911812 2.94446945e-005 0.0696959496 0.997563839 0.999995232 2.94446945e-005 -2.68220901e-005 -9.81253652e-006 0.132794693 0.400390744 4.42286691e-005 0.069700934 0.997567952 -4.31333865e-005 0.997567952 -0.069700934 -1 -3.99457022e-005 4.7127538e-005 Weld null null -3.95431243e-007 7.30769489e-006 0 -2.68220901e-005 0.997563839 -0.0696911812 2.94446945e-005 0.0696959496 0.997563839 0.999995232 2.94446945e-005 -2.68220901e-005 2.00291402e-006 -0.400390506 -0.132815465 3.19491774e-005 0.0697229132 0.997566402 -1 -5.85719135e-005 3.61208877e-005 6.09478266e-005 -0.997566402 0.0697229132 Weld null null -3.95431243e-007 7.30769489e-006 0 -2.68220901e-005 0.997563839 -0.0696911812 2.94446945e-005 0.0696959496 0.997563839 0.999995232 2.94446945e-005 -2.68220901e-005 1.20755828e-007 4.99412226e-006 0.132797584 -1 1.50317135e-006 4.3129563e-005 4.31295011e-005 0.0696607754 0.997570753 -1.50491894e-006 0.997570753 -0.0696607679 Weld null null -3.95431243e-007 7.30769489e-006 0 -2.68220901e-005 0.997563839 -0.0696911812 2.94446945e-005 0.0696959496 0.997563839 0.999995232 2.94446945e-005 -2.68220901e-005 4.74962835e-005 -0.400390744 0.933588088 -8.98785511e-005 0.069750227 0.997564495 1 3.56403107e-005 8.7605993e-005 -2.94429738e-005 0.997564495 -0.069750227 Weld null null -3.95431243e-007 7.30769489e-006 0 -2.68220901e-005 0.997563839 -0.0696911812 2.94446945e-005 0.0696959496 0.997563839 0.999995232 2.94446945e-005 -2.68220901e-005 2.00708268e-006 -0.933598638 0.400390506 -4.21983714e-005 0.0696982741 0.99756813 4.31333829e-005 -0.99756813 0.0696982741 1 4.59696421e-005 3.90894238e-005 Weld null null -3.95431243e-007 7.30769489e-006 0 -2.68220901e-005 0.997563839 -0.0696911812 2.94446945e-005 0.0696959496 0.997563839 0.999995232 2.94446945e-005 -2.68220901e-005 -1.0609989e-007 -0.373298496 -0.533198833 1 4.31320695e-005 -1.50411142e-006 -1.50411142e-006 0.0696634054 0.997566879 4.31320695e-005 -0.997566879 0.0696634054 Weld null null -3.95431243e-007 7.30769489e-006 0 -2.68220901e-005 0.997563839 -0.0696911812 2.94446945e-005 0.0696959496 0.997563839 0.999995232 2.94446945e-005 -2.68220901e-005 -0.533206105 3.25288311e-005 -0.400390536 9.50160465e-005 -0.997563899 0.0697589889 -3.15031248e-005 0.0697589889 0.997563899 -1 -9.69822067e-005 -2.47981588e-005 Weld null null -3.95431243e-007 7.30769489e-006 0 -2.68220901e-005 0.997563839 -0.0696911812 2.94446945e-005 0.0696959496 0.997563839 0.999995232 2.94446945e-005 -2.68220901e-005 -6.55530812e-008 2.72896377e-005 -0.933581114 1 4.31320695e-005 -1.50411142e-006 -1.50411142e-006 0.0696634054 0.997566879 4.31320695e-005 -0.997566879 0.0696634054 Weld null null 1.14122267e-005 2.31042439e-008 -1.81467669e-007 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 1.14122267e-005 2.31042439e-008 -1.81467669e-007 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 Weld null null 1.14122267e-005 2.31042439e-008 -1.81467669e-007 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 0.5332008 8.52442608e-005 -0.399536431 -3.29021022e-005 0.000863162044 -0.999999642 -4.3140004e-005 0.999999642 0.000863163441 1 4.31683875e-005 -3.28648493e-005 Weld null null 1.14122267e-005 2.31042439e-008 -1.81467669e-007 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 -3.54604822e-007 7.10747918e-005 -0.533170998 1 3.0530151e-005 -3.05050053e-005 -3.05050053e-005 0.999999642 0.000823975075 3.0530151e-005 -0.000823974144 0.999999642 Weld null null 1.14122267e-005 2.31042439e-008 -1.81467669e-007 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 0.533231318 0.373406291 -2.83906502e-007 -3.29021022e-005 0.000863162044 -0.999999642 -4.3140004e-005 0.999999642 0.000863163441 1 4.31683875e-005 -3.28648493e-005 Weld null null 1.14122267e-005 2.31042439e-008 -1.81467669e-007 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 5.93345294e-006 0.132752568 0.400390923 9.14390985e-005 0.999999642 0.000823902781 -9.15583078e-005 0.000823911105 -0.999999642 -1 9.1363625e-005 9.16336139e-005 Weld null null 1.14122267e-005 2.31042439e-008 -1.81467669e-007 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 8.4651374e-006 -0.400390327 -0.132810175 -3.27828893e-005 0.999999642 0.000820014218 -1 -3.28536735e-005 8.63079549e-005 8.63348687e-005 -0.000820011366 0.999999642 Weld null null 1.14122267e-005 2.31042439e-008 -1.81467669e-007 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 3.62762336e-007 2.95230384e-005 0.132817402 -1.00000024 3.05050053e-005 3.0530151e-005 3.0530151e-005 0.999999642 0.000823974144 -3.05050053e-005 0.000823975075 -1 Weld null null 1.14122267e-005 2.31042439e-008 -1.81467669e-007 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 0.000142092002 -0.400391012 0.93360728 -3.29006798e-005 0.999999642 0.00086315471 1 3.28634196e-005 4.31860499e-005 4.315767e-005 0.000863156107 -0.999999642 Weld null null 1.14122267e-005 2.31042439e-008 -1.81467669e-007 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 0.000101452555 -0.933591425 0.400390327 3.03983688e-005 0.999999762 0.000823944807 9.15229321e-005 -0.000824213028 0.999999821 1.00000012 -3.04579735e-005 -9.1791153e-005 Weld null null 1.14122267e-005 2.31042439e-008 -1.81467669e-007 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 -3.94687646e-007 -0.373256177 -0.533165812 1 3.0530151e-005 -3.05050053e-005 -3.05050053e-005 0.999999642 0.000823975075 3.0530151e-005 -0.000823974144 0.999999642 Weld null null 1.14122267e-005 2.31042439e-008 -1.81467669e-007 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 -0.5332008 8.52442608e-005 -0.400390327 5.32893937e-005 -0.000819987152 0.999999642 0 0.999999642 0.000819987152 -1 -4.36966197e-008 5.32893755e-005 Weld null null 1.14122267e-005 2.31042439e-008 -1.81467669e-007 -3.27828893e-005 0.000820004847 -0.999999642 1.76662063e-008 0.999999642 0.000820004905 1 9.21592935e-009 -3.2782893e-005 -2.17958132e-008 2.16124681e-005 -0.933588922 1 3.0530151e-005 -3.05050053e-005 -3.05050053e-005 0.999999642 0.000823975075 3.0530151e-005 -0.000823974144 0.999999642 Weld null null 2.73681553e-006 -7.9203943e-008 -1.32984567e-007 -1 9.15522687e-005 3.05189751e-005 9.15532e-005 1 3.05161811e-005 -3.05161811e-005 3.05189751e-005 -1 2.73681553e-006 -7.9203943e-008 -1.32984567e-007 -1 9.15522687e-005 3.05189751e-005 9.15532e-005 1 3.05161811e-005 -3.05161811e-005 3.05189751e-005 -1 Weld RBX2581 RBX2581 2.58500165e-007 1.47510104e-006 9.1201764e-007 -0.0305623356 -0.998223186 0.0511513427 -0.997484028 0.0271847546 -0.0654721856 0.0639653206 -0.0530236289 -0.996542513 2.58500165e-007 1.47510104e-006 9.1201764e-007 -0.0305623356 -0.998223186 0.0511513427 -0.997484028 0.0271847546 -0.0654721856 0.0639653206 -0.0530236289 -0.996542513 Weld RBX2581 RBX2581 5.81937775e-006 3.66444342e-009 4.0117655e-007 -1 3.05171125e-005 3.05180438e-005 3.05180438e-005 1 3.05171125e-005 -3.05171125e-005 3.05180438e-005 -1 5.81937775e-006 3.66444342e-009 4.0117655e-007 -1 3.05171125e-005 3.05180438e-005 3.05180438e-005 1 3.05171125e-005 -3.05171125e-005 3.05180438e-005 -1 Weld RBX2581 RBX2581 5.19993637e-006 -2.07580495e-008 -4.3925632e-009 -1 3.05171125e-005 3.05180438e-005 3.05180438e-005 1 3.05171125e-005 -3.05171125e-005 3.05180438e-005 -1 5.19993637e-006 -2.07580495e-008 -4.3925632e-009 -1 3.05171125e-005 3.05180438e-005 3.05180438e-005 1 3.05171125e-005 -3.05171125e-005 3.05180438e-005 -1 Weld RBX2581 RBX2581 -4.51719643e-007 1.87397453e-009 -3.76758157e-006 -1 3.05171125e-005 3.05180438e-005 3.05180438e-005 1 3.05171125e-005 -3.05171125e-005 3.05180438e-005 -1 -4.51719643e-007 1.87397453e-009 -3.76758157e-006 -1 3.05171125e-005 3.05180438e-005 3.05180438e-005 1 3.05171125e-005 -3.05171125e-005 3.05180438e-005 -1 Weld RBX2581 RBX2581 1.26816673e-007 -2.34453221e-008 5.90223294e-007 -1 3.05171125e-005 3.05180438e-005 3.05180438e-005 1 3.05171125e-005 -3.05171125e-005 3.05180438e-005 -1 1.26816673e-007 -2.34453221e-008 5.90223294e-007 -1 3.05171125e-005 3.05180438e-005 3.05180438e-005 1 3.05171125e-005 -3.05171125e-005 3.05180438e-005 -1 Weld RBX2581 RBX2581 8.01678993e-007 -1.1426212e-008 -1.10775409e-006 -1 3.05171125e-005 3.05180438e-005 3.05180438e-005 1 3.05171125e-005 -3.05171125e-005 3.05180438e-005 -1 8.01678993e-007 -1.1426212e-008 -1.10775409e-006 -1 3.05171125e-005 3.05180438e-005 3.05180438e-005 1 3.05171125e-005 -3.05171125e-005 3.05180438e-005 -1 Weld RBX2581 RBX2581 1.07855703e-006 -1.98978043e-008 -4.36352309e-007 -1 3.05171125e-005 3.05180438e-005 3.05180438e-005 1 3.05171125e-005 -3.05171125e-005 3.05180438e-005 -1 1.07855703e-006 -1.98978043e-008 -4.36352309e-007 -1 3.05171125e-005 3.05180438e-005 3.05180438e-005 1 3.05171125e-005 -3.05171125e-005 3.05180438e-005 -1 Weld RBX2581 RBX2581 -2.96131202e-006 1.15200116e-008 -5.08313747e-008 -1 3.05171125e-005 3.05180438e-005 3.05180438e-005 1 3.05171125e-005 -3.05171125e-005 3.05180438e-005 -1 -2.96131202e-006 1.15200116e-008 -5.08313747e-008 -1 3.05171125e-005 3.05180438e-005 3.05180438e-005 1 3.05171125e-005 -3.05171125e-005 3.05180438e-005 -1 Weld RBX2581 RBX2581 false MoneySound1 1 false http://www.watrbx.wtf/asset/?id=16720281 1 false MoneySound2 1 false http://www.watrbx.wtf/asset/?id=16720502 1 false MoneySound3 1 false http://www.watrbx.wtf/asset/?id=16720508 1 false Local Gui local Tool = script.Parent; enabled = true function onButton1Down(mouse) if not enabled then return end enabled = false mouse.Icon = "rbxasset://textures\\ArrowFarCursor.png" wait(3) mouse.Icon = "rbxasset://textures\\ArrowCursor.png" enabled = true end function onEquippedLocal(mouse) if mouse == nil then print("Mouse not found") return end mouse.Icon = "rbxasset://textures\\ArrowCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end Tool.Equipped:connect(onEquippedLocal) true Bomb 37 false PlantBomb 38 0 0 0 1 0 0 0 1 0 0 0 1 Player48 RBX2685 false -0.5 0.5 0 0 -0.5 0.5 4 0 1009 -23.0625 5.11249542 -46.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.86257284e-008 -0.00253137574 -3.86257284e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=10747911 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2685 RBX2689 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX2685 RBX2691 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2685 RBX2689 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX2685 RBX2691 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2685 RBX2689 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX2685 RBX2691 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2685 RBX2689 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX2685 RBX2691 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2685 RBX2689 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX2685 RBX2691 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2685 RBX2689 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX2685 RBX2691 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2685 RBX2689 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX2685 RBX2691 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2685 RBX2689 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX2685 RBX2691 false -0.5 0.5 0 0 -0.5 0.5 4 0 1010 -23.0625 3.61249518 -46.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -3.86257284e-008 -0.00253137574 -3.86257284e-008 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?version=1&id=1105772 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX2706 RBX2709 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX2706 RBX2711 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX2706 RBX2713 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX2706 RBX2715 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX2706 RBX2685 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 -21.5625 3.61249518 -46.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.86257284e-008 -0.00253137574 -3.86257284e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 -24.5625 3.61249518 -46.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.86257284e-008 -0.00253137574 -3.86257284e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 -22.5625 1.61249518 -46.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.86257284e-008 -0.00253137574 -3.86257284e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 -23.5625 1.61249518 -46.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.86257284e-008 -0.00253137574 -3.86257284e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 1009 1003 1003 Body Colors 1003 1003 1010 false Health 7 false HealthScript v3.1 8 0 4 81487640 3.0 Male Left Leg 0 0 2 82907977 3.0 Male Left Arm 0 0 3 82908019 3.0 Male Right Arm 0 0 -0.5 0 1 0 0 0 1 0 0 0 1 Evil Duck false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -23.0625 6.11249542 -46.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.86257284e-008 -0.00253137574 -3.86257284e-008 0 1 1 1 2 2 2 http://www.watrbx.wtf/asset/?id=14810664 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=14810649 1 1 1 0 0.349999994 0.100000001 1 0 0 0 1 0 0 0 1 Minotaur false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -23.0625 5.26249552 -46.4625015 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.86257284e-008 -0.00253137574 -3.86257284e-008 0 1 2 1 2 2 2 http://www.watrbx.wtf/asset/?id=14459949 5 Mesh 0 0 0 1.10000002 1.10000002 1.10000002 http://www.watrbx.wtf/asset/?id=14459935 1 1 1 http://www.watrbx.wtf/asset/?version=1&id=1105772 Shirt Graphic 0 5 81487710 3.0 Male Right Leg 0 0 0 0 1 0 0 0 1 0 0 0 1 Player49 RBX2734 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -10.0625 5.17500305 -48.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.51039714e-007 -0.0098985387 1.51039714e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=8329410 0 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX2734 RBX2738 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0.0700000003 1 2.81692155e-005 -3.269644e-005 -3.269644e-005 0.988996446 -0.147936121 2.81692155e-005 0.147936121 0.988996446 HeadWeld RBX2734 RBX2740 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2734 RBX2742 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX2734 RBX2738 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0.0700000003 1 2.81692155e-005 -3.269644e-005 -3.269644e-005 0.988996446 -0.147936121 2.81692155e-005 0.147936121 0.988996446 HeadWeld RBX2734 RBX2740 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2734 RBX2742 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX2734 RBX2738 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0.0700000003 1 2.81692155e-005 -3.269644e-005 -3.269644e-005 0.988996446 -0.147936121 2.81692155e-005 0.147936121 0.988996446 HeadWeld RBX2734 RBX2740 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2734 RBX2742 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX2734 RBX2738 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0.0700000003 1 2.81692155e-005 -3.269644e-005 -3.269644e-005 0.988996446 -0.147936121 2.81692155e-005 0.147936121 0.988996446 HeadWeld RBX2734 RBX2740 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2734 RBX2742 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX2734 RBX2738 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0.0700000003 1 2.81692155e-005 -3.269644e-005 -3.269644e-005 0.988996446 -0.147936121 2.81692155e-005 0.147936121 0.988996446 HeadWeld RBX2734 RBX2740 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2734 RBX2742 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX2734 RBX2738 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0.0700000003 1 2.81692155e-005 -3.269644e-005 -3.269644e-005 0.988996446 -0.147936121 2.81692155e-005 0.147936121 0.988996446 HeadWeld RBX2734 RBX2740 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2734 RBX2742 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX2734 RBX2738 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0.0700000003 1 2.81692155e-005 -3.269644e-005 -3.269644e-005 0.988996446 -0.147936121 2.81692155e-005 0.147936121 0.988996446 HeadWeld RBX2734 RBX2740 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2734 RBX2742 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX2734 RBX2738 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0.0700000003 1 2.81692155e-005 -3.269644e-005 -3.269644e-005 0.988996446 -0.147936121 2.81692155e-005 0.147936121 0.988996446 HeadWeld RBX2734 RBX2740 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2734 RBX2742 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -10.0625 3.67500329 -48.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.51039714e-007 -0.0098985387 1.51039714e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX2764 RBX2767 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX2764 RBX2769 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX2764 RBX2771 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX2764 RBX2773 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX2764 RBX2734 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -8.5625 3.67500329 -48.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.51039714e-007 -0.0098985387 1.51039714e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -11.5625 3.67500329 -48.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.51039714e-007 -0.0098985387 1.51039714e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 23 -9.5625 1.67500329 -48.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.51039714e-007 -0.0098985387 1.51039714e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 23 -10.5625 1.67500329 -48.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.51039714e-007 -0.0098985387 1.51039714e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 Vet's Medal false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -10.7624998 4.17500305 -47.9625015 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.51039714e-007 -0.0098985387 1.51039714e-007 0 1 1 1 1 2 2 http://www.watrbx.wtf/asset/?id=42157374 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=42157349 1 1 1 0 0.349999994 0.0700000003 1 2.81692155e-005 -3.269644e-005 -3.269644e-005 0.988996446 -0.147936121 2.81692155e-005 0.147936121 0.988996446 Sheik false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -10.0625095 5.31849861 -48.5450478 -1 3.269644e-005 -2.81692155e-005 2.81692155e-005 0.988996446 0.147936121 3.269644e-005 0.147936121 -0.988996446 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.51039714e-007 -0.0098985387 1.51039714e-007 2 1 2 1.20000005 2 2 2 http://www.watrbx.wtf/asset/?id=12305010 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=12304452 1 1 1 0 0.25 0 1 0 0 0 1 0 0 0 1 Steampunk Goggles false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -10.0625 5.42500305 -48.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.51039714e-007 -0.0098985387 1.51039714e-007 0 1 1 1 2 2 2 http://www.watrbx.wtf/asset/?id=48495402 5 Mesh 0 0 0 1 1 1.02999997 http://www.watrbx.wtf/asset/?id=48495387 1 1 1 Pants http://www.watrbx.wtf/asset/?id=37936025 Shirt http://www.watrbx.wtf/asset/?id=37936322 1030 1030 23 Body Colors 1030 23 1030 0 0 0 1 0 0 0 1 0 0 0 1 Player5 RBX2791 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 10.9375 5.17499638 -41.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.63533169e-008 0.00107173098 -1.63533169e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2791 RBX2795 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2791 RBX2797 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2791 RBX2795 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2791 RBX2797 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2791 RBX2795 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2791 RBX2797 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2791 RBX2795 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2791 RBX2797 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2791 RBX2795 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2791 RBX2797 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2791 RBX2795 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2791 RBX2797 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2791 RBX2795 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2791 RBX2797 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2791 RBX2795 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2791 RBX2797 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 10.9375 3.67499638 -41.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.63533169e-008 0.00107173098 -1.63533169e-008 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=28455117 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX2812 RBX2815 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX2812 RBX2817 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX2812 RBX2819 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX2812 RBX2821 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX2812 RBX2791 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 12.4375 3.67499638 -41.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.63533169e-008 0.00107173098 -1.63533169e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 9.4375 3.67499638 -41.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.63533169e-008 0.00107173098 -1.63533169e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 102 11.4375 1.67499638 -41.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.63533169e-008 0.00107173098 -1.63533169e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 102 10.4375 1.67499638 -41.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.63533169e-008 0.00107173098 -1.63533169e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.600000024 0 1 0 0 0 1 0 0 0 1 Paper Monster false -0.5 0.5 0 0 -0.5 0.5 0 0 194 10.9375 5.07499647 -41.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.63533169e-008 0.00107173098 -1.63533169e-008 0 1 1 2 2 2 2 http://www.watrbx.wtf/asset/?id=33366461 5 Mesh 0 0 0 1 0.850000024 1 http://www.watrbx.wtf/asset/?id=33366441 1 1 1 Shirt http://www.watrbx.wtf/asset/?id=27307544 Pants http://www.watrbx.wtf/asset/?id=27441216 http://www.watrbx.wtf/asset/?id=28455117 Shirt Graphic 0 0.100000001 0 1 0 0 0 1 0 0 0 1 BCEgg false -0.5 0.5 0 0 -0.5 0.5 0 0 1 10.9375 5.57499647 -41.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.63533169e-008 0.00107173098 -1.63533169e-008 0 0 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=1527559 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=1530169 1 1 1 1030 1030 102 Body Colors 125 102 226 0 0 0 1 0 0 0 1 0 0 0 1 Player50 RBX2838 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 72.9375 5.17500019 -9.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.01288651e-007 0.00032368282 -3.01288651e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2838 RBX2842 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2838 RBX2842 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2838 RBX2842 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2838 RBX2842 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2838 RBX2842 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2838 RBX2842 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2838 RBX2842 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2838 RBX2842 false -0.5 0.5 0 0 -0.5 0.5 4 0 102 72.9375 3.67500043 -9.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -3.01288651e-007 0.00032368282 -3.01288651e-007 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=88268027 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX2850 RBX2853 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX2850 RBX2855 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX2850 RBX2857 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX2850 RBX2859 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX2850 RBX2838 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 74.4375 3.67500043 -9.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.01288651e-007 0.00032368282 -3.01288651e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 71.4375 3.67500043 -9.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.01288651e-007 0.00032368282 -3.01288651e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 102 73.4375 1.67500043 -9.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.01288651e-007 0.00032368282 -3.01288651e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 102 72.4375 1.67500043 -9.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.01288651e-007 0.00032368282 -3.01288651e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.100000001 0 1 0 0 0 1 0 0 0 1 LastEgg false -0.5 0.5 0 0 -0.5 0.5 0 0 1 72.9375 5.57500029 -9.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.01288651e-007 0.00032368282 -3.01288651e-007 0 0 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=76661861 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=76653183 1 1 1 http://www.watrbx.wtf/asset/?id=88268027 Shirt Graphic 226 226 102 Body Colors 226 102 102 0 0 0 1 0 0 0 1 0 0 0 1 Player51 RBX2872 false -0.5 0.5 0 0 -0.5 0.5 4 0 1001 29.9375 5.15000248 -17.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.00947211e-007 0.00661567645 -1.00947211e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=16132434 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2872 RBX2876 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2872 RBX2876 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2872 RBX2876 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2872 RBX2876 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2872 RBX2876 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2872 RBX2876 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2872 RBX2876 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2872 RBX2876 false -0.5 0.5 0 0 -0.5 0.5 4 0 194 29.9375 3.65000248 -17.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.00947211e-007 0.00661567645 -1.00947211e-007 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=19262626 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX2884 RBX2887 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX2884 RBX2889 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX2884 RBX2891 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX2884 RBX2893 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX2884 RBX2872 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 31.4375 3.65000248 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.00947211e-007 0.00661567645 -1.00947211e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 28.4375 3.65000248 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.00947211e-007 0.00661567645 -1.00947211e-007 0 1 1 2 1 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.70000005 0 0 1 1 0 0 0 1 0 RightGrip RBX2887 RBX2896 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.70000005 0 0 1 1 0 0 0 1 0 RightGrip RBX2887 RBX2896 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.70000005 0 0 1 1 0 0 0 1 0 RightGrip RBX2887 RBX2896 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.70000005 0 0 1 1 0 0 0 1 0 RightGrip RBX2887 RBX2896 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.70000005 0 0 1 1 0 0 0 1 0 RightGrip RBX2887 RBX2896 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.70000005 0 0 1 1 0 0 0 1 0 RightGrip RBX2887 RBX2896 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.70000005 0 0 1 1 0 0 0 1 0 RightGrip RBX2887 RBX2896 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.70000005 0 0 1 1 0 0 0 1 0 RightGrip RBX2887 RBX2896 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 30.4375 1.65000248 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.00947211e-007 0.00661567645 -1.00947211e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 29.4375 1.65000248 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.00947211e-007 0.00661567645 -1.00947211e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.100000001 0 1 0 0 0 1 0 0 0 1 PumpkinHead false -0.5 0.5 0 0 -0.5 0.5 0 0 194 29.9375 5.55000257 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.00947211e-007 0.00661567645 -1.00947211e-007 0 0 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=1158007 5 Mesh 0 0 0 0.5 0.5 0.5 http://www.watrbx.wtf/asset/?id=1158033 1 1 1 true true 0 0 -1.70000005 0 0 1 1 0 0 0 1 0 Cerulean Vengence http://www.watrbx.wtf/asset/?id=24713113 false -0.5 0.5 0 0 -0.5 0.5 0 0 199 28.4375 2.65000248 -15.8625002 0 -1 0 1 0 0 0 0 1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.00947211e-007 0.00661567645 -1.00947211e-007 2 1 1 0.800000012 4 2 2 http://www.watrbx.wtf/asset/?id=24712232 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=24712222 1 1 1 false Sound 1 false rbxasset://sounds/swordslash.wav 0.699999988 false Sound 1 false rbxasset://sounds/swordlunge.wav 0.600000024 false Sound 1 false rbxasset://sounds/unsheath.wav 1 false http://www.watrbx.wtf/asset/?id=1014476 Local Gui false SwordScript 39 http://www.watrbx.wtf/asset/?id=19262626 Shirt Graphic 1001 1003 1003 Body Colors 1003 1003 194 0 0 0 1 0 0 0 1 0 0 0 1 Player52 RBX2922 false -0.5 0.5 0 0 -0.5 0.5 4 0 18 50.9979095 5.18831396 22.4988747 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.54689957e-007 -0.010137761 -1.54689957e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2922 RBX2926 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX2922 RBX2928 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2922 RBX2930 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2922 RBX2926 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX2922 RBX2928 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2922 RBX2930 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2922 RBX2926 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX2922 RBX2928 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2922 RBX2930 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2922 RBX2926 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX2922 RBX2928 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2922 RBX2930 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2922 RBX2926 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX2922 RBX2928 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2922 RBX2930 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2922 RBX2926 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX2922 RBX2928 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2922 RBX2930 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2922 RBX2926 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX2922 RBX2928 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2922 RBX2930 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2922 RBX2926 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX2922 RBX2928 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX2922 RBX2930 false -0.5 0.5 0 0 -0.5 0.5 4 0 26 50.9979095 3.68831396 22.4988747 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.54689957e-007 -0.010137761 -1.54689957e-007 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=1657046 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX2952 RBX2955 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX2952 RBX2957 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX2952 RBX2959 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX2952 RBX2961 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX2952 RBX2922 false -0.5 0.5 0 0 -0.5 0.5 4 0 18 52.4979095 3.68831396 22.4988747 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.54689957e-007 -0.010137761 -1.54689957e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 18 49.4979095 3.68831396 22.4988747 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.54689957e-007 -0.010137761 -1.54689957e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 26 51.4979095 1.68831396 22.4988747 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.54689957e-007 -0.010137761 -1.54689957e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 26 50.4979095 1.68831396 22.4988747 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.54689957e-007 -0.010137761 -1.54689957e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.400000006 0 1 0 0 0 1 0 0 0 1 NinjaMaskOfShadows false -0.5 0.5 0 0 -0.5 0.5 0 0 194 50.9979095 5.28831387 22.4988747 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.54689957e-007 -0.010137761 -1.54689957e-007 2 1 1 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=1286427 5 Mesh 0 0 0 1.10000002 1.10000002 1.10000002 http://www.watrbx.wtf/asset/?id=1309894 1 1 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 Fedora false -0.5 0.5 0 0 -0.5 0.5 0 0 194 50.9979172 5.93707275 22.4739952 -1 2.89589861e-005 -3.19997998e-005 3.19997998e-005 0.995035768 -0.0995167717 2.89589861e-005 -0.0995167717 -0.995035768 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.54689957e-007 -0.010137761 -1.54689957e-007 2 1 2 0.800000012 2 2 2 http://www.watrbx.wtf/asset/?id=13640868 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=18987684 1 1 1 http://www.watrbx.wtf/asset/?id=1657046 Shirt Graphic Shirt http://www.watrbx.wtf/asset/?id=4920401 18 18 26 Body Colors 18 26 26 Pants http://www.watrbx.wtf/asset/?id=4602178 0 0.400000006 0 1 0 0 0 1 0 0 0 1 BlackPaintballMask false -0.5 0.5 0 0 -0.5 0.5 0 0 194 50.9979095 5.28831387 22.4988747 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.54689957e-007 -0.010137761 -1.54689957e-007 0 1 1 1 1 2 2 http://www.watrbx.wtf/asset/?id=9253927 5 Mesh 0 0 0 1.04999995 1.04999995 1.04999995 http://www.watrbx.wtf/asset/?id=9253896 1 1 1 0 0 0 1 0 0 0 1 0 0 0 1 Player53 RBX2980 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 85.9375 5.11249924 -13.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.52680053e-007 -0.00551987998 -2.52680053e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=19398553 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 2 0.529999971 1 0 0 0 1 0 0 0 1 HeadWeld RBX2980 RBX2984 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.649999976 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX2980 RBX2986 0 0.5 0 1 0 0 0 1 0 0 0 1 0 2 0.529999971 1 0 0 0 1 0 0 0 1 HeadWeld RBX2980 RBX2984 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.649999976 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX2980 RBX2986 0 0.5 0 1 0 0 0 1 0 0 0 1 0 2 0.529999971 1 0 0 0 1 0 0 0 1 HeadWeld RBX2980 RBX2984 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.649999976 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX2980 RBX2986 0 0.5 0 1 0 0 0 1 0 0 0 1 0 2 0.529999971 1 0 0 0 1 0 0 0 1 HeadWeld RBX2980 RBX2984 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.649999976 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX2980 RBX2986 0 0.5 0 1 0 0 0 1 0 0 0 1 0 2 0.529999971 1 0 0 0 1 0 0 0 1 HeadWeld RBX2980 RBX2984 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.649999976 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX2980 RBX2986 0 0.5 0 1 0 0 0 1 0 0 0 1 0 2 0.529999971 1 0 0 0 1 0 0 0 1 HeadWeld RBX2980 RBX2984 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.649999976 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX2980 RBX2986 0 0.5 0 1 0 0 0 1 0 0 0 1 0 2 0.529999971 1 0 0 0 1 0 0 0 1 HeadWeld RBX2980 RBX2984 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.649999976 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX2980 RBX2986 0 0.5 0 1 0 0 0 1 0 0 0 1 0 2 0.529999971 1 0 0 0 1 0 0 0 1 HeadWeld RBX2980 RBX2984 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.649999976 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX2980 RBX2986 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 85.9375 3.61249948 -13.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -2.52680053e-007 -0.00551987998 -2.52680053e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX3001 RBX3004 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX3001 RBX3006 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX3001 RBX3008 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX3001 RBX3010 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX3001 RBX2980 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 87.4375 3.61249948 -13.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.52680053e-007 -0.00551987998 -2.52680053e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 84.4375 3.61249948 -13.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.52680053e-007 -0.00551987998 -2.52680053e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1012 86.4375 1.61249948 -13.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.52680053e-007 -0.00551987998 -2.52680053e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1017 85.4375 1.61249948 -13.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.52680053e-007 -0.00551987998 -2.52680053e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 2 0.529999971 1 0 0 0 1 0 0 0 1 SkinnyNecktie false -0.5 0.5 0 0 -0.5 0.5 0 0 194 85.9375 3.61249924 -13.0325003 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.52680053e-007 -0.00551987998 -2.52680053e-007 0 1 1 2 1 2 2 http://www.watrbx.wtf/asset/?id=29939151 5 Mesh 0 0 0 1.39999998 1.20000005 1.39999998 http://www.watrbx.wtf/asset/?id=29938972 1 1 1 Pants http://www.watrbx.wtf/asset/?id=44029634 0 -0.649999976 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 UncleSamHat false -0.5 0.5 0 0 -0.5 0.5 0 0 194 85.9375153 6.25927258 -13.6271858 -1 2.89589861e-005 -3.19997998e-005 3.19997998e-005 0.995035768 -0.0995167717 2.89589861e-005 -0.0995167717 -0.995035768 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.52680053e-007 -0.00551987998 -2.52680053e-007 2 1 2 1.60000002 2 2 2 http://www.watrbx.wtf/asset/?id=2711178 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=2711170 1 1 1 Shirt http://www.watrbx.wtf/asset/?id=44043045 226 226 1012 Body Colors 226 1017 226 0 0 0 1 0 0 0 1 0 0 0 1 Player54 RBX3026 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 33.9375 5.11249876 23.4375 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.88043576e-007 0.0042820028 -5.88043576e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3026 RBX3030 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 -0.100000001 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3026 RBX3032 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3026 RBX3034 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3026 RBX3030 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 -0.100000001 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3026 RBX3032 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3026 RBX3034 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3026 RBX3030 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 -0.100000001 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3026 RBX3032 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3026 RBX3034 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3026 RBX3030 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 -0.100000001 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3026 RBX3032 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3026 RBX3034 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3026 RBX3030 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 -0.100000001 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3026 RBX3032 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3026 RBX3034 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3026 RBX3030 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 -0.100000001 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3026 RBX3032 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3026 RBX3034 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3026 RBX3030 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 -0.100000001 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3026 RBX3032 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3026 RBX3034 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3026 RBX3030 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 -0.100000001 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3026 RBX3032 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3026 RBX3034 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 33.9375 3.61249876 23.4375 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -5.88043576e-007 0.0042820028 -5.88043576e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX3056 RBX3059 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX3056 RBX3061 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX3056 RBX3063 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX3056 RBX3065 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX3056 RBX3026 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 35.4375 3.61249876 23.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.88043576e-007 0.0042820028 -5.88043576e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 32.4375 3.61249876 23.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.88043576e-007 0.0042820028 -5.88043576e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 23 34.4375 1.61249876 23.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.88043576e-007 0.0042820028 -5.88043576e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 23 33.4375 1.61249876 23.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.88043576e-007 0.0042820028 -5.88043576e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 Pants http://www.watrbx.wtf/asset/?id=51752391 false Health 7 false HealthScript v3.1 8 0 0.400000006 0 1 0 0 0 1 0 0 0 1 NinjaMaskOfShadows false -0.5 0.5 0 0 -0.5 0.5 0 0 194 33.9375 5.21249866 23.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.88043576e-007 0.0042820028 -5.88043576e-007 2 1 1 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=1286427 5 Mesh 0 0 0 1.10000002 1.10000002 1.10000002 http://www.watrbx.wtf/asset/?id=1309894 1 1 1 0 0.400000006 -0.100000001 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 Bluetooth false -0.5 0.5 0 0 -0.5 0.5 0 0 194 33.9374847 5.20453262 23.3778038 -1 2.89589861e-005 -3.19997998e-005 3.19997998e-005 0.995035768 -0.0995167717 2.89589861e-005 -0.0995167717 -0.995035768 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.88043576e-007 0.0042820028 -5.88043576e-007 2 1 2 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=13652771 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=13652772 1 1 1 54353117 1 55045977 Super Spy Torso 0 54353117 4 55046397 Super Spy Left Leg 0 0 -0.25 0 1 0 0 0 1 0 0 0 1 Army Goggles false -0.5 0.5 0 0 -0.5 0.5 0 0 194 33.9375 5.86249876 23.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.88043576e-007 0.0042820028 -5.88043576e-007 0 1 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=18013317 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=18013308 1 1 1 54353117 5 55046349 Super Spy Right Leg 0 54353117 2 55046412 Super Spy Left Arm 0 54353117 3 55046377 Super Spy Right Arm 0 1030 1030 23 Body Colors 1030 23 1030 Shirt http://www.watrbx.wtf/asset/?id=55902660 0 0 0 1 0 0 0 1 0 0 0 1 Player55 RBX3088 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 28.9375 5.17500162 -7.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.18455924e-007 0.00204524677 -2.18455924e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 false -0.5 0.5 0 0 -0.5 0.5 4 0 18 28.9375 3.67500162 -7.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -2.18455924e-007 0.00204524677 -2.18455924e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX3091 RBX3094 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX3091 RBX3096 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX3091 RBX3098 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX3091 RBX3100 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX3091 RBX3088 false -0.5 0.5 0 0 -0.5 0.5 4 0 18 30.4375 3.67500162 -7.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.18455924e-007 0.00204524677 -2.18455924e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 18 27.4375 3.67500162 -7.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.18455924e-007 0.00204524677 -2.18455924e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 18 29.4375 1.67500162 -7.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.18455924e-007 0.00204524677 -2.18455924e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 18 28.4375 1.67500162 -7.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.18455924e-007 0.00204524677 -2.18455924e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 24 18 18 Body Colors 18 18 18 false Health 7 false HealthScript v3.1 8 0 1 27111894 Roblox 2.0 torso 0 0 3 27111864 Roblox 2.0 Right Arm 0 0 2 27111419 Roblox 2.0 Left Arm 0 0 4 27111857 Roblox 2.0 Left Leg 0 0 5 27111882 Roblox 2.0 Right Leg 0 Shirt http://www.watrbx.wtf/asset/?id=26545583 Pants http://www.watrbx.wtf/asset/?id=26545611 0 0 0 1 0 0 0 1 0 0 0 1 Player56 RBX3117 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 42.9375 5.11251068 12.4375 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -9.66944413e-007 -0.00905281026 -9.66944413e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=15431991 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX3117 RBX3121 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX3117 RBX3121 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX3117 RBX3121 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX3117 RBX3121 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX3117 RBX3121 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX3117 RBX3121 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX3117 RBX3121 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.0299999993 1 0 0 0 1 0 0 0 1 HeadWeld RBX3117 RBX3121 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 42.9375 3.61251044 12.4375 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -9.66944413e-007 -0.00905281026 -9.66944413e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX3129 RBX3132 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX3129 RBX3134 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX3129 RBX3136 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX3129 RBX3138 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX3129 RBX3117 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 44.4375 3.61251044 12.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.66944413e-007 -0.00905281026 -9.66944413e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 41.4375 3.61251044 12.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.66944413e-007 -0.00905281026 -9.66944413e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1030 43.4375 1.61251044 12.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.66944413e-007 -0.00905281026 -9.66944413e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1030 42.4375 1.61251044 12.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.66944413e-007 -0.00905281026 -9.66944413e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 Pants http://www.watrbx.wtf/asset/?id=39313973 0 0.300000012 0.0299999993 1 0 0 0 1 0 0 0 1 Hallowhood false -0.5 0.5 0 0 -0.5 0.5 0 0 194 42.9375 5.31251049 12.4674997 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -9.66944413e-007 -0.00905281026 -9.66944413e-007 0 1 1 1 2 2 2 http://www.watrbx.wtf/asset/?id=25211365 5 Mesh 0 0 0 1.04999995 1.04999995 1.08000004 http://www.watrbx.wtf/asset/?id=37263218 1 1 1 Shirt http://www.watrbx.wtf/asset/?id=47768083 1030 1030 1030 Body Colors 1030 1030 1030 0 0 0 1 0 0 0 1 0 0 0 1 Player57 RBX3152 false -0.5 0.5 0 0 -0.5 0.5 4 0 1001 -10.002182 5.15706539 43.4987411 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.62258373e-008 0.00434017647 -6.62258373e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=10747387 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3152 RBX3156 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3152 RBX3158 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3152 RBX3156 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3152 RBX3158 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3152 RBX3156 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3152 RBX3158 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3152 RBX3156 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3152 RBX3158 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3152 RBX3156 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3152 RBX3158 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3152 RBX3156 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3152 RBX3158 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3152 RBX3156 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3152 RBX3158 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3152 RBX3156 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3152 RBX3158 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 -10.002182 3.65706515 43.4987411 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -6.62258373e-008 0.00434017647 -6.62258373e-008 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX3173 RBX3176 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX3173 RBX3178 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX3173 RBX3180 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX3173 RBX3182 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX3173 RBX3152 false -0.5 0.5 0 0 -0.5 0.5 4 0 1001 -8.50218201 3.65706515 43.4987411 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.62258373e-008 0.00434017647 -6.62258373e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1001 -11.502182 3.65706515 43.4987411 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.62258373e-008 0.00434017647 -6.62258373e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1 -9.50218201 1.65706515 43.4987411 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.62258373e-008 0.00434017647 -6.62258373e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1 -10.502182 1.65706515 43.4987411 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.62258373e-008 0.00434017647 -6.62258373e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 Pants http://www.watrbx.wtf/asset/?id=12323364 0 0.200000003 0 1 0 0 0 1 0 0 0 1 Digital Man false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -10.002182 5.45706558 43.4987411 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.62258373e-008 0.00434017647 -6.62258373e-008 0 1 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=16973805 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=16973799 1 1 1 Shirt http://www.watrbx.wtf/asset/?id=16527975 0 0.100000001 0 1 0 0 0 1 0 0 0 1 GreenPumpkinHead false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -10.002182 5.55706549 43.4987411 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.62258373e-008 0.00434017647 -6.62258373e-008 0 0 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=1158007 5 Mesh 0 0 0 0.5 0.5 0.5 http://www.watrbx.wtf/asset/?id=1158415 1 1 1 1001 1001 1 Body Colors 1001 1 1 0 0 0 1 0 0 0 1 0 0 0 1 Player58 RBX3198 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 -23.0625 5.17500496 41.4375 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.52388765e-007 0.00998695008 -1.52388765e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=10749456 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3198 RBX3202 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3198 RBX3202 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3198 RBX3202 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3198 RBX3202 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3198 RBX3202 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3198 RBX3202 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3198 RBX3202 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3198 RBX3202 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 -23.0625 3.67500472 41.4375 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.52388765e-007 0.00998695008 -1.52388765e-007 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?version=1&id=1189237 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX3210 RBX3213 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX3210 RBX3215 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX3210 RBX3217 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX3210 RBX3219 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX3210 RBX3198 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 -21.5625 3.67500472 41.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.52388765e-007 0.00998695008 -1.52388765e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 -24.5625 3.67500472 41.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.52388765e-007 0.00998695008 -1.52388765e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1 -22.5625 1.67500472 41.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.52388765e-007 0.00998695008 -1.52388765e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1 -23.5625 1.67500472 41.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.52388765e-007 0.00998695008 -1.52388765e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 SparkleTimeFedora false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -23.0625 5.77500486 41.4874992 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.52388765e-007 0.00998695008 -1.52388765e-007 2 1 1 0.400000006 1 2 2 http://www.watrbx.wtf/asset/?id=1285237 5 Mesh 0 0 0 1.10000002 1.10000002 1.10000002 http://www.watrbx.wtf/asset/?id=1285232 1 1 1 http://www.watrbx.wtf/asset/?version=1&id=1189237 Shirt Graphic 24 1 1 Body Colors 1 1 1 0 0 0 1 0 0 0 1 0 0 0 1 Player59 RBX3232 false -0.5 0.5 0 0 -0.5 0.5 4 0 26 -27.0625 5.17500305 13.4375 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.67516247e-008 0.000291633391 -6.67516247e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3232 RBX3236 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3232 RBX3236 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3232 RBX3236 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3232 RBX3236 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3232 RBX3236 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3232 RBX3236 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3232 RBX3236 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3232 RBX3236 false -0.5 0.5 0 0 -0.5 0.5 4 0 141 -27.0625 3.67500281 13.4375 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -6.67516247e-008 0.000291633391 -6.67516247e-008 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX3244 RBX3247 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX3244 RBX3249 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX3244 RBX3251 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX3244 RBX3253 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX3244 RBX3232 false -0.5 0.5 0 0 -0.5 0.5 4 0 26 -25.5625 3.67500281 13.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.67516247e-008 0.000291633391 -6.67516247e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 26 -28.5625 3.67500281 13.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.67516247e-008 0.000291633391 -6.67516247e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 199 -26.5625 1.67500281 13.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.67516247e-008 0.000291633391 -6.67516247e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 199 -27.5625 1.67500281 13.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.67516247e-008 0.000291633391 -6.67516247e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.100000001 0 1 0 0 0 1 0 0 0 1 BCEgg false -0.5 0.5 0 0 -0.5 0.5 0 0 1 -27.0625 5.57500315 13.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.67516247e-008 0.000291633391 -6.67516247e-008 0 0 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=1527559 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=1530169 1 1 1 26 26 199 Body Colors 26 199 141 0 0 0 1 0 0 0 1 0 0 0 1 Player6 RBX3265 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 -56.0625 5.17499828 15.4375 -1 0 0 0 1 0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.6374802e-008 0.00107313902 -1.6374802e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.48000002 -0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX3265 RBX3269 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.170000002 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3265 RBX3271 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX3265 RBX3273 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.48000002 -0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX3265 RBX3269 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.170000002 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3265 RBX3271 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX3265 RBX3273 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.48000002 -0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX3265 RBX3269 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.170000002 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3265 RBX3271 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX3265 RBX3273 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.48000002 -0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX3265 RBX3269 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.170000002 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3265 RBX3271 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX3265 RBX3273 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.48000002 -0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX3265 RBX3269 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.170000002 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3265 RBX3271 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX3265 RBX3273 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.48000002 -0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX3265 RBX3269 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.170000002 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3265 RBX3271 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX3265 RBX3273 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.48000002 -0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX3265 RBX3269 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.170000002 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3265 RBX3271 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX3265 RBX3273 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.48000002 -0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX3265 RBX3269 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.170000002 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3265 RBX3271 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX3265 RBX3273 false -0.5 0.5 0 0 -0.5 0.5 4 0 23 -56.0625 3.67499804 15.4375 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.6374802e-008 0.00107313902 -1.6374802e-008 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?version=1&id=1221846 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX3295 RBX3298 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX3295 RBX3300 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX3295 RBX3302 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX3295 RBX3304 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX3295 RBX3265 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 -54.5625 3.67499804 15.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.6374802e-008 0.00107313902 -1.6374802e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 -57.5625 3.67499804 15.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.6374802e-008 0.00107313902 -1.6374802e-008 0 1 1 2 1 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.5 0 0 0 0 1 -1 0 0 0 -1 0 RightGrip RBX3298 RBX3307 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.5 0 0 0 0 1 -1 0 0 0 -1 0 RightGrip RBX3298 RBX3307 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.5 0 0 0 0 1 -1 0 0 0 -1 0 RightGrip RBX3298 RBX3307 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.5 0 0 0 0 1 -1 0 0 0 -1 0 RightGrip RBX3298 RBX3307 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.5 0 0 0 0 1 -1 0 0 0 -1 0 RightGrip RBX3298 RBX3307 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.5 0 0 0 0 1 -1 0 0 0 -1 0 RightGrip RBX3298 RBX3307 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.5 0 0 0 0 1 -1 0 0 0 -1 0 RightGrip RBX3298 RBX3307 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.5 0 0 0 0 1 -1 0 0 0 -1 0 RightGrip RBX3298 RBX3307 false -0.5 0.5 0 0 -0.5 0.5 0 0 119 -55.5625 1.67499804 15.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.6374802e-008 0.00107313902 -1.6374802e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 119 -56.5625 1.67499804 15.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.6374802e-008 0.00107313902 -1.6374802e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 1.48000002 -0.0199999996 1 0 0 0 1 0 0 0 1 GoldenEggBeaters false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -56.0625 4.19499826 15.4174995 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.6374802e-008 0.00107313902 -1.6374802e-008 2 1 1 2 1 2 2 http://www.watrbx.wtf/asset/?id=25089828 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=25089803 1 1 1 http://www.watrbx.wtf/asset/?version=1&id=1221846 Shirt Graphic 0 -0.170000002 0 1 0 0 0 1 0 0 0 1 Winter Cap false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -56.0625 5.84499836 15.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.6374802e-008 0.00107313902 -1.6374802e-008 0 1 1 1 2 2 2 http://www.watrbx.wtf/asset/?id=13030731 5 Mesh 0 0 0 0.949999988 0.949999988 0.949999988 http://www.watrbx.wtf/asset/?id=21024861 1 1 1 true true 0.5 0 0 0 0 1 -1 0 0 0 -1 0 Firework2010 http://www.watrbx.wtf/asset/?id=20064127 false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -57.5625 2.17499804 15.4375 0 1 0 1 0 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 false 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.6374802e-008 0.00107313902 -1.6374802e-008 0 1 1 1 4 2 2 http://www.watrbx.wtf/asset/?id=12557856 5 Mesh 0 0 0 1.29999995 1.29999995 1.29999995 http://www.watrbx.wtf/asset/?id=20064204 1 1 1 false Local Gui local Tool = script.Parent; enabled = true function onButton1Down(mouse) if not enabled then return end enabled = false mouse.Icon = "rbxasset://textures\\ArrowFarCursor.png" wait(3) mouse.Icon = "rbxasset://textures\\ArrowCursor.png" enabled = true end function onEquippedLocal(mouse) if mouse == nil then print("Mouse not found") return end mouse.Icon = "rbxasset://textures\\ArrowCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end Tool.Equipped:connect(onEquippedLocal) false PlantBomb 12 true Bomb 13 0 0.300000012 0.300000012 1 0 0 0 1 0 0 0 1 Super Specs false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -56.0625 5.37499809 15.7375002 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.6374802e-008 0.00107313902 -1.6374802e-008 2 1 1 0.400000006 1 2 2 http://www.watrbx.wtf/asset/?id=19383175 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=19383162 1 1 1 24 24 119 Body Colors 24 119 23 0 0 0 1 0 0 0 1 0 0 0 1 Player60 RBX3335 false -0.5 0.5 0 0 -0.5 0.5 4 0 105 -22.0625 5.17500257 -60.5625 -0.999938965 0 0.0110483747 0 1 0 -0.0110483747 -0 -0.999938965 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.55781918e-008 0.00429773238 -6.55781918e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=19398553 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3335 RBX3339 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3335 RBX3341 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.270000011 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX3335 RBX3343 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3335 RBX3339 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3335 RBX3341 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.270000011 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX3335 RBX3343 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3335 RBX3339 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3335 RBX3341 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.270000011 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX3335 RBX3343 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3335 RBX3339 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3335 RBX3341 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.270000011 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX3335 RBX3343 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3335 RBX3339 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3335 RBX3341 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.270000011 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX3335 RBX3343 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3335 RBX3339 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3335 RBX3341 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.270000011 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX3335 RBX3343 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3335 RBX3339 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3335 RBX3341 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.270000011 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX3335 RBX3343 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3335 RBX3339 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3335 RBX3341 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.270000011 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX3335 RBX3343 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 -22.0625 3.67500257 -60.5625 -0.999938965 0 0.0110483747 -0 1 0 -0.0110483747 -0 -0.999938965 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -6.55781918e-008 0.00429773238 -6.55781918e-008 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX3365 RBX3368 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX3365 RBX3370 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX3365 RBX3372 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX3365 RBX3374 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX3365 RBX3335 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 -20.5625916 3.67500257 -60.545929 -0.999938965 0 0.0110483747 0 1 0 -0.0110483747 -0 -0.999938965 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.55781918e-008 0.00429773238 -6.55781918e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 -23.5624084 3.67500257 -60.579071 -0.999938965 0 0.0110483747 0 1 0 -0.0110483747 0 -0.999938965 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.55781918e-008 0.00429773238 -6.55781918e-008 0 1 1 2 1 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 0 1 0 0 0 1 0 0 0 1 RightGrip RBX3368 RBX3377 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 0 1 0 0 0 1 0 0 0 1 RightGrip RBX3368 RBX3377 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 0 1 0 0 0 1 0 0 0 1 RightGrip RBX3368 RBX3377 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 0 1 0 0 0 1 0 0 0 1 RightGrip RBX3368 RBX3377 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 0 1 0 0 0 1 0 0 0 1 RightGrip RBX3368 RBX3377 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 0 1 0 0 0 1 0 0 0 1 RightGrip RBX3368 RBX3377 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 0 1 0 0 0 1 0 0 0 1 RightGrip RBX3368 RBX3377 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 0 1 0 0 0 1 0 0 0 1 RightGrip RBX3368 RBX3377 false -0.5 0.5 0 0 -0.5 0.5 0 0 1 -21.5625305 1.67500257 -60.5569763 -0.999938965 0 0.0110483747 0 1 0 -0.0110483747 -0 -0.999938965 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.55781918e-008 0.00429773238 -6.55781918e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1 -22.5624695 1.67500257 -60.5680237 -0.999938965 0 0.0110483747 0 1 0 -0.0110483747 -0 -0.999938965 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.55781918e-008 0.00429773238 -6.55781918e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 -0.100000001 0.0500000007 1 0 0 0 1 0 0 0 1 SparkleTimeFedora false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -22.0630531 5.77500248 -60.5125046 -0.999938965 0 0.0110483747 0 1 0 -0.0110483747 -0 -0.999938965 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.55781918e-008 0.00429773238 -6.55781918e-008 2 1 1 0.400000006 1 2 2 http://www.watrbx.wtf/asset/?id=1285237 5 Mesh 0 0 0 1.10000002 1.10000002 1.10000002 http://www.watrbx.wtf/asset/?id=1285232 1 1 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 Bandana false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -22.0625 4.87500238 -60.5625 -0.999938965 0 0.0110483747 0 1 0 -0.0110483747 -0 -0.999938965 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.55781918e-008 0.00429773238 -6.55781918e-008 0 1 1 1 1 2 2 http://www.watrbx.wtf/asset/?id=20637493 5 Mesh 0 0 0 1 0.899999976 1 http://www.watrbx.wtf/asset/?id=20637003 1 1 1 0 0.270000011 0.200000003 1 0 0 0 1 0 0 0 1 sleeksunglasses false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -22.0647106 5.40500259 -60.3625107 -0.999938965 0 0.0110483747 0 1 0 -0.0110483747 -0 -0.999938965 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.55781918e-008 0.00429773238 -6.55781918e-008 0 1 1 1 2 2 2 http://www.watrbx.wtf/asset/?id=51177557 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=51177552 1 1 1 105 1 1 Body Colors 1 1 1 Pants http://www.watrbx.wtf/asset/?id=9693808 true true 0 0 0 1 0 0 0 1 0 0 0 1 StaffOfSparks http://www.watrbx.wtf/asset/?id=10758325 false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -23.5624084 2.67500257 -60.579071 -0.999938965 -0.0110483747 0 0 0 1 -0.0110483747 0.999938965 -0 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 false 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.55781918e-008 0.00429773238 -6.55781918e-008 2 1 1 5.5999999 1 false EquipSound 1 false http://www.watrbx.wtf/asset/?id=10756118 0.5 2 2 http://www.watrbx.wtf/asset/?id=10757531 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=10757814 1 1 1 true Spark 40 false WizardStaff 41 false Local Gui local Tool = script.Parent; enabled = true function onButton1Down(mouse) if not enabled then return end enabled = false mouse.Icon = "rbxasset://textures\\GunWaitCursor.png" wait(1) mouse.Icon = "rbxasset://textures\\GunCursor.png" enabled = true end function onEquippedLocal(mouse) if mouse == nil then print("Mouse not found") return end mouse.Icon = "rbxasset://textures\\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end Tool.Equipped:connect(onEquippedLocal) Shirt http://www.watrbx.wtf/asset/?id=9693804 0 0 0 1 0 0 0 1 0 0 0 1 Player61 RBX3407 false -0.5 0.5 0 0 -0.5 0.5 4 0 1001 -0.0625 5.1124754 -64.5 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -4.38623573e-007 0.0287456345 -4.38623573e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3407 RBX3411 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3407 RBX3411 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3407 RBX3411 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3407 RBX3411 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3407 RBX3411 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3407 RBX3411 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3407 RBX3411 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3407 RBX3411 false -0.5 0.5 0 0 -0.5 0.5 4 0 1001 -0.0625 3.61247563 -64.5 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -4.38623573e-007 0.0287456345 -4.38623573e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX3419 RBX3422 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX3419 RBX3424 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX3419 RBX3426 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX3419 RBX3428 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX3419 RBX3407 false -0.5 0.5 0 0 -0.5 0.5 4 0 1001 1.4375 3.61247563 -64.5 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -4.38623573e-007 0.0287456345 -4.38623573e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1001 -1.5625 3.61247563 -64.5 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -4.38623573e-007 0.0287456345 -4.38623573e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1001 0.4375 1.61247563 -64.5 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -4.38623573e-007 0.0287456345 -4.38623573e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1001 -0.5625 1.61247563 -64.5 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -4.38623573e-007 0.0287456345 -4.38623573e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.400000006 0 1 0 0 0 1 0 0 0 1 NinjaMaskOfLight false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -0.0625 5.2124753 -64.5 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -4.38623573e-007 0.0287456345 -4.38623573e-007 2 1 1 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=1286427 5 Mesh 0 0 0 1.10000002 1.10000002 1.10000002 http://www.watrbx.wtf/asset/?id=5808536 1 1 1 1001 1001 1001 Body Colors 1001 1001 1001 0 0 0 1 0 0 0 1 0 0 0 1 Player62 RBX3440 false -0.5 0.5 0 0 -0.5 0.5 4 0 1001 -48.0625 5.17500305 -9.5 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.47286447e-007 -0.0119556552 -5.47286447e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=42070872 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 0 1 3.12742886e-005 -2.97403785e-005 -2.97403785e-005 0.998736799 0.0502462946 3.12742886e-005 -0.0502462946 0.998736799 HeadWeld RBX3440 RBX3444 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.140000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3440 RBX3446 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0500000007 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3440 RBX3448 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 0 1 3.12742886e-005 -2.97403785e-005 -2.97403785e-005 0.998736799 0.0502462946 3.12742886e-005 -0.0502462946 0.998736799 HeadWeld RBX3440 RBX3444 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.140000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3440 RBX3446 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0500000007 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3440 RBX3448 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 0 1 3.12742886e-005 -2.97403785e-005 -2.97403785e-005 0.998736799 0.0502462946 3.12742886e-005 -0.0502462946 0.998736799 HeadWeld RBX3440 RBX3444 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.140000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3440 RBX3446 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0500000007 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3440 RBX3448 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 0 1 3.12742886e-005 -2.97403785e-005 -2.97403785e-005 0.998736799 0.0502462946 3.12742886e-005 -0.0502462946 0.998736799 HeadWeld RBX3440 RBX3444 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.140000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3440 RBX3446 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0500000007 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3440 RBX3448 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 0 1 3.12742886e-005 -2.97403785e-005 -2.97403785e-005 0.998736799 0.0502462946 3.12742886e-005 -0.0502462946 0.998736799 HeadWeld RBX3440 RBX3444 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.140000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3440 RBX3446 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0500000007 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3440 RBX3448 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 0 1 3.12742886e-005 -2.97403785e-005 -2.97403785e-005 0.998736799 0.0502462946 3.12742886e-005 -0.0502462946 0.998736799 HeadWeld RBX3440 RBX3444 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.140000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3440 RBX3446 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0500000007 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3440 RBX3448 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 0 1 3.12742886e-005 -2.97403785e-005 -2.97403785e-005 0.998736799 0.0502462946 3.12742886e-005 -0.0502462946 0.998736799 HeadWeld RBX3440 RBX3444 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.140000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3440 RBX3446 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0500000007 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3440 RBX3448 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 0 1 3.12742886e-005 -2.97403785e-005 -2.97403785e-005 0.998736799 0.0502462946 3.12742886e-005 -0.0502462946 0.998736799 HeadWeld RBX3440 RBX3444 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.140000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3440 RBX3446 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0500000007 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3440 RBX3448 false -0.5 0.5 0 0 -0.5 0.5 4 0 1001 -48.0625 3.67500329 -9.5 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -5.47286447e-007 -0.0119556552 -5.47286447e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX3470 RBX3473 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX3470 RBX3475 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX3470 RBX3477 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX3470 RBX3479 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX3470 RBX3440 false -0.5 0.5 0 0 -0.5 0.5 4 0 1001 -46.5625 3.67500329 -9.5 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.47286447e-007 -0.0119556552 -5.47286447e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1001 -49.5625 3.67500329 -9.5 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.47286447e-007 -0.0119556552 -5.47286447e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1013 -47.5625 1.67500329 -9.5 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.47286447e-007 -0.0119556552 -5.47286447e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1013 -48.5625 1.67500329 -9.5 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.47286447e-007 -0.0119556552 -5.47286447e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 Pants http://www.watrbx.wtf/asset/?id=8270631 Shirt http://www.watrbx.wtf/asset/?id=5464673 0 -0.300000012 0 1 3.12742886e-005 -2.97403785e-005 -2.97403785e-005 0.998736799 0.0502462946 3.12742886e-005 -0.0502462946 0.998736799 Royal Crown false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -48.0624924 5.97462416 -9.51507378 -1 2.97403785e-005 -3.12742886e-005 3.12742886e-005 0.998736799 -0.0502462946 2.97403785e-005 -0.0502462946 -0.998736799 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.47286447e-007 -0.0119556552 -5.47286447e-007 0 1 1 2 1 2 2 http://www.watrbx.wtf/asset/?id=11419761 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=11419765 1 1 1 0 -0.140000001 0 1 0 0 0 1 0 0 0 1 Polar Bear false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -48.0625 5.81500292 -9.5 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.47286447e-007 -0.0119556552 -5.47286447e-007 0 1 1 1 2 2 2 http://www.watrbx.wtf/asset/?id=41748023 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=41748005 1 1 1 0 0.0500000007 0 1 0 0 0 1 0 0 0 1 GoldCrown false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -48.0625 5.62500286 -9.5 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.47286447e-007 -0.0119556552 -5.47286447e-007 2 1 1 0.400000006 1 2 2 http://www.watrbx.wtf/asset/?id=1078075 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=1078071 1 1 1 1001 1001 1013 Body Colors 1001 1013 1001 0 0 0 1 0 0 0 1 0 0 0 1 Player63 RBX3497 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -57.0625 5.11250114 -29.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -8.39830705e-007 0.0183463823 -8.39830705e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=7074882 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.219999999 0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX3497 RBX3501 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 -0.0199999996 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3497 RBX3503 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX3497 RBX3505 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.219999999 0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX3497 RBX3501 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 -0.0199999996 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3497 RBX3503 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX3497 RBX3505 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.219999999 0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX3497 RBX3501 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 -0.0199999996 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3497 RBX3503 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX3497 RBX3505 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.219999999 0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX3497 RBX3501 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 -0.0199999996 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3497 RBX3503 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX3497 RBX3505 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.219999999 0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX3497 RBX3501 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 -0.0199999996 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3497 RBX3503 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX3497 RBX3505 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.219999999 0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX3497 RBX3501 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 -0.0199999996 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3497 RBX3503 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX3497 RBX3505 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.219999999 0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX3497 RBX3501 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 -0.0199999996 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3497 RBX3503 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX3497 RBX3505 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.219999999 0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX3497 RBX3501 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 -0.0199999996 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3497 RBX3503 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX3497 RBX3505 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -57.0625 3.61250114 -29.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -8.39830705e-007 0.0183463823 -8.39830705e-007 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=64767905 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX3527 RBX3530 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX3527 RBX3532 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX3527 RBX3534 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX3527 RBX3536 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX3527 RBX3497 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -55.5625 3.61250114 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -8.39830705e-007 0.0183463823 -8.39830705e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -58.5625 3.61250114 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -8.39830705e-007 0.0183463823 -8.39830705e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 -56.5625 1.61250114 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -8.39830705e-007 0.0183463823 -8.39830705e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 -57.5625 1.61250114 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -8.39830705e-007 0.0183463823 -8.39830705e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.219999999 0.300000012 1 0 0 0 1 0 0 0 1 Disguise false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -57.0625 5.39250135 -29.2625008 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -8.39830705e-007 0.0183463823 -8.39830705e-007 0 1 1 1 1 2 2 http://www.watrbx.wtf/asset/?id=10698239 5 Mesh 0 0 0 1.04999995 1.04999995 1.04999995 http://www.watrbx.wtf/asset/?id=10698236 1 1 1 1030 1030 1003 Body Colors 1030 1003 1030 Pants http://www.watrbx.wtf/asset/?id=48604784 0 -0.300000012 -0.0199999996 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 BluesteelVikingHelmet false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -57.0624924 5.90902138 -29.6122551 -1 2.89589861e-005 -3.19997998e-005 3.19997998e-005 0.995035768 -0.0995167717 2.89589861e-005 -0.0995167717 -0.995035768 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -8.39830705e-007 0.0183463823 -8.39830705e-007 2 1 2 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=1482215 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=1482214 1 1 1 http://www.watrbx.wtf/asset/?id=64767905 Shirt Graphic 0 0.200000003 0.200000003 1 0 0 0 1 0 0 0 1 Gaga glasses false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -57.0625 5.41250134 -29.3624992 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -8.39830705e-007 0.0183463823 -8.39830705e-007 0 1 1 1 1 2 2 http://www.watrbx.wtf/asset/?id=15721278 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=15721268 1 1 1 Shirt http://www.watrbx.wtf/asset/?id=60319760 0 0 0 1 0 0 0 1 0 0 0 1 Player64 RBX3555 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 -39.0625 5.11250019 7.4375 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -9.95415945e-008 0.00217451924 -9.95415945e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=21311520 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3555 RBX3559 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.649999976 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3555 RBX3561 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.649999976 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3555 RBX3563 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3555 RBX3559 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.649999976 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3555 RBX3561 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.649999976 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3555 RBX3563 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3555 RBX3559 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.649999976 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3555 RBX3561 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.649999976 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3555 RBX3563 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3555 RBX3559 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.649999976 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3555 RBX3561 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.649999976 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3555 RBX3563 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3555 RBX3559 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.649999976 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3555 RBX3561 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.649999976 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3555 RBX3563 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3555 RBX3559 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.649999976 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3555 RBX3561 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.649999976 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3555 RBX3563 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3555 RBX3559 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.649999976 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3555 RBX3561 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.649999976 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3555 RBX3563 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3555 RBX3559 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.649999976 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3555 RBX3561 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.649999976 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3555 RBX3563 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 -39.0625 3.61250043 7.4375 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -9.95415945e-008 0.00217451924 -9.95415945e-008 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=73591031 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX3585 RBX3588 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX3585 RBX3590 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX3585 RBX3592 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX3585 RBX3594 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX3585 RBX3555 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 -37.5625 3.61250043 7.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.95415945e-008 0.00217451924 -9.95415945e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 -40.5625 3.61250043 7.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.95415945e-008 0.00217451924 -9.95415945e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1 -38.5625 1.61250043 7.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.95415945e-008 0.00217451924 -9.95415945e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1 -39.5625 1.61250043 7.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.95415945e-008 0.00217451924 -9.95415945e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.300000012 0 1 0 0 0 1 0 0 0 1 Headphones false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -39.0625 5.3125 7.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -9.95415945e-008 0.00217451924 -9.95415945e-008 2 1 1 1.60000002 1 2 2 http://www.watrbx.wtf/asset/?id=1051545 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=1051546 1 1 1 0 -0.649999976 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 UncleSamHat false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -39.0624809 6.25927353 7.37281418 -1 2.89589861e-005 -3.19997998e-005 3.19997998e-005 0.995035768 -0.0995167717 2.89589861e-005 -0.0995167717 -0.995035768 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -9.95415945e-008 0.00217451924 -9.95415945e-008 2 1 2 1.60000002 2 2 2 http://www.watrbx.wtf/asset/?id=2711178 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=2711170 1 1 1 Shirt http://www.watrbx.wtf/asset/?id=33613095 1 1 1 Body Colors 1 1 1 Pants http://www.watrbx.wtf/asset/?id=33613429 0 -0.649999976 0 1 0 0 0 1 0 0 0 1 Reindeer false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -39.0625 6.26250029 7.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -9.95415945e-008 0.00217451924 -9.95415945e-008 0 1 2 2 1 2 2 http://www.watrbx.wtf/asset/?id=41747971 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=41747939 1 1 1 http://www.watrbx.wtf/asset/?id=73591031 Shirt Graphic 0 0 0 1 0 0 0 1 0 0 0 1 Player65 RBX3613 false -0.5 0.5 0 0 -0.5 0.5 4 0 1017 2.29293442 5.09720039 29.6585217 -0.858254313 -0.000115704934 -0.513224542 -1.96195469e-006 1 -0.00022216604 0.513224542 -0.000189668062 -0.858254313 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 0 0 0 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX3613 RBX3617 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.280000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3613 RBX3619 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX3613 RBX3617 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.280000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3613 RBX3619 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX3613 RBX3617 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.280000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3613 RBX3619 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX3613 RBX3617 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.280000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3613 RBX3619 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX3613 RBX3617 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.280000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3613 RBX3619 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX3613 RBX3617 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.280000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3613 RBX3619 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX3613 RBX3617 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.280000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3613 RBX3619 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.300000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX3613 RBX3617 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.280000001 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3613 RBX3619 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 2.29310799 3.59720016 29.6588058 -0.858254313 -0.000115704934 -0.513224542 -1.96195469e-006 1 -0.00022216604 0.513224542 -0.000189668062 -0.858254313 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 0 0 0 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=88106944 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX3634 RBX3637 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX3634 RBX3639 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX3634 RBX3641 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX3634 RBX3643 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX3634 RBX3613 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 3.5804894 3.59720302 28.8889694 -0.858254313 -0.000115704934 -0.513224542 -1.96195469e-006 1 -0.00022216604 0.513224542 -0.000189668062 -0.858254313 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 0 0 0 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 1.00572658 3.59719729 30.4286423 -0.858254313 -0.000115704934 -0.513224542 -1.96195469e-006 1 -0.00022216604 0.513224542 -0.000189668062 -0.858254313 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 0 0 0 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 21 2.72246647 1.59720111 29.4025726 -0.858254313 -0.000115704934 -0.513224542 -1.96195469e-006 1 -0.00022216604 0.513224542 -0.000189668062 -0.858254313 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 0 0 0 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 21 1.86421227 1.5971992 29.9157982 -0.858254313 -0.000115704934 -0.513224542 -1.96195469e-006 1 -0.00022216604 0.513224542 -0.000189668062 -0.858254313 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 0 0 0 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.300000012 0.300000012 1 0 0 0 1 0 0 0 1 Super Specs false -0.5 0.5 0 0 -0.5 0.5 0 0 194 2.44687867 5.29726696 29.9159603 -0.858254313 -0.000115704934 -0.513224542 -1.96195469e-006 1 -0.00022216604 0.513224542 -0.000189668062 -0.858254313 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 0 0 0 2 1 1 0.400000006 1 2 2 http://www.watrbx.wtf/asset/?id=19383175 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=19383162 1 1 1 http://www.watrbx.wtf/asset/?id=88106944 Shirt Graphic 0 0.280000001 0 1 0 0 0 1 0 0 0 1 BlueSteelBatHelm false -0.5 0.5 0 0 -0.5 0.5 0 0 194 2.29290891 5.31720018 29.6584797 -0.858254313 -0.000115704934 -0.513224542 -1.96195469e-006 1 -0.00022216604 0.513224542 -0.000189668062 -0.858254313 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 0 0 0 2 1 2 1.20000005 1 2 2 http://www.watrbx.wtf/asset/?id=1172117 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=1172146 1 1 1 1017 1003 21 Body Colors 1003 21 1003 0 0 0 1 0 0 0 1 0 0 0 1 Player66 RBX3658 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 54.9375 5.17500019 -9.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.3148396e-008 0.00217241328 -3.3148396e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=7075459 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3658 RBX3662 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.270000011 -0.170000002 1 0 0 0 1 0 0 0 1 HeadWeld RBX3658 RBX3664 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3658 RBX3662 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.270000011 -0.170000002 1 0 0 0 1 0 0 0 1 HeadWeld RBX3658 RBX3664 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3658 RBX3662 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.270000011 -0.170000002 1 0 0 0 1 0 0 0 1 HeadWeld RBX3658 RBX3664 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3658 RBX3662 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.270000011 -0.170000002 1 0 0 0 1 0 0 0 1 HeadWeld RBX3658 RBX3664 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3658 RBX3662 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.270000011 -0.170000002 1 0 0 0 1 0 0 0 1 HeadWeld RBX3658 RBX3664 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3658 RBX3662 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.270000011 -0.170000002 1 0 0 0 1 0 0 0 1 HeadWeld RBX3658 RBX3664 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3658 RBX3662 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.270000011 -0.170000002 1 0 0 0 1 0 0 0 1 HeadWeld RBX3658 RBX3664 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3658 RBX3662 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.270000011 -0.170000002 1 0 0 0 1 0 0 0 1 HeadWeld RBX3658 RBX3664 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 54.9375 3.67499995 -9.5625 -1 0 -0 -0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -3.3148396e-008 0.00217241328 -3.3148396e-008 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX3679 RBX3682 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX3679 RBX3684 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX3679 RBX3686 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX3679 RBX3688 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX3679 RBX3658 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 56.4375 3.67499995 -9.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.3148396e-008 0.00217241328 -3.3148396e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 53.4375 3.67499995 -9.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.3148396e-008 0.00217241328 -3.3148396e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1030 55.4375 1.67499995 -9.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.3148396e-008 0.00217241328 -3.3148396e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1030 54.4375 1.67499995 -9.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -3.3148396e-008 0.00217241328 -3.3148396e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.300000012 0 1 0 0 0 1 0 0 0 1 Headphones false -0.5 0.5 0 0 -0.5 0.5 0 0 194 54.9375 5.375 -9.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.3148396e-008 0.00217241328 -3.3148396e-008 2 1 1 1.60000002 1 2 2 http://www.watrbx.wtf/asset/?id=1051545 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=1051546 1 1 1 Pants http://www.watrbx.wtf/asset/?id=65625076 0 -0.270000011 -0.170000002 1 0 0 0 1 0 0 0 1 Snowboardfan false -0.5 0.5 0 0 -0.5 0.5 0 0 194 54.9375 5.94500017 -9.73250008 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -3.3148396e-008 0.00217241328 -3.3148396e-008 0 1 1 1 2 2 2 http://www.watrbx.wtf/asset/?id=22924938 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=22924926 1 1 1 Shirt http://www.watrbx.wtf/asset/?id=66986308 1030 1030 1030 Body Colors 1030 1030 1030 0 0 0 1 0 0 0 1 0 0 0 1 Player67 RBX3704 false -0.5 0.5 0 0 -0.5 0.5 4 0 1029 21.9375 5.11247873 -1.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.07162895e-007 0.0110791419 -5.07162895e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=31117192 0 false -0.5 0.5 0 0 -0.5 0.5 4 0 194 21.9375 3.61247873 -1.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -5.07162895e-007 0.0110791419 -5.07162895e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX3707 RBX3710 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX3707 RBX3712 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX3707 RBX3714 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX3707 RBX3716 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX3707 RBX3704 false -0.5 0.5 0 0 -0.5 0.5 4 0 194 23.4375 3.61247873 -1.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.07162895e-007 0.0110791419 -5.07162895e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 194 20.4375 3.61247873 -1.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.07162895e-007 0.0110791419 -5.07162895e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 194 22.4375 1.61247873 -1.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.07162895e-007 0.0110791419 -5.07162895e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 194 21.4375 1.61247873 -1.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.07162895e-007 0.0110791419 -5.07162895e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 Pants http://www.watrbx.wtf/asset/?id=30615904 Shirt http://www.watrbx.wtf/asset/?id=30615890 1029 194 194 Body Colors 194 194 194 0 0 0 1 0 0 0 1 0 0 0 1 Player68 RBX3728 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 74.9375 5.17500067 -29.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.27331987e-006 -0.0166896582 -7.6399192e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=7699086 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.150000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3728 RBX3732 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.150000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3728 RBX3732 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.150000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3728 RBX3732 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.150000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3728 RBX3732 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.150000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3728 RBX3732 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.150000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3728 RBX3732 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.150000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3728 RBX3732 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.150000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3728 RBX3732 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 74.9375 3.67500067 -29.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.27331987e-006 -0.0166896582 -7.6399192e-007 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=25584304 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX3740 RBX3743 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX3740 RBX3745 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX3740 RBX3747 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX3740 RBX3749 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX3740 RBX3728 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 76.4375 3.67500067 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.27331987e-006 -0.0166896582 -7.6399192e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 73.4375 3.67500067 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.27331987e-006 -0.0166896582 -7.6399192e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 23 75.4375 1.67500067 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.27331987e-006 -0.0166896582 -7.6399192e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 23 74.4375 1.67500067 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.27331987e-006 -0.0166896582 -7.6399192e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 Pants http://www.watrbx.wtf/asset/?id=27172662 Shirt http://www.watrbx.wtf/asset/?id=27173419 0 -0.150000006 0 1 0 0 0 1 0 0 0 1 Russian Winter false -0.5 0.5 0 0 -0.5 0.5 0 0 194 74.9375 5.82500076 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.27331987e-006 -0.0166896582 -7.6399192e-007 0 1 1 1 1 2 2 http://www.watrbx.wtf/asset/?id=25684565 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=25684536 1 1 1 http://www.watrbx.wtf/asset/?id=25584304 Shirt Graphic 226 226 23 Body Colors 226 23 24 0 0 0 1 0 0 0 1 0 0 0 1 Player69 RBX3764 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 32.9375 5.17500162 35.4375 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.66763101e-007 0.00364299538 -1.66763101e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=10747810 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3764 RBX3768 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX3764 RBX3770 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3764 RBX3768 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX3764 RBX3770 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3764 RBX3768 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX3764 RBX3770 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3764 RBX3768 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX3764 RBX3770 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3764 RBX3768 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX3764 RBX3770 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3764 RBX3768 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX3764 RBX3770 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3764 RBX3768 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX3764 RBX3770 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX3764 RBX3768 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX3764 RBX3770 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 32.9375 3.67500162 35.4375 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.66763101e-007 0.00364299538 -1.66763101e-007 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=25125829 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX3785 RBX3788 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX3785 RBX3790 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX3785 RBX3792 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX3785 RBX3794 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX3785 RBX3764 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 34.4375 3.67500162 35.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.66763101e-007 0.00364299538 -1.66763101e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 31.4375 3.67500162 35.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.66763101e-007 0.00364299538 -1.66763101e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 125 33.4375 1.67500162 35.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.66763101e-007 0.00364299538 -1.66763101e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 125 32.4375 1.67500162 35.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.66763101e-007 0.00364299538 -1.66763101e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 Fedora false -0.5 0.5 0 0 -0.5 0.5 0 0 194 32.9375076 5.92376041 35.4126205 -1 2.89589861e-005 -3.19997998e-005 3.19997998e-005 0.995035768 -0.0995167717 2.89589861e-005 -0.0995167717 -0.995035768 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.66763101e-007 0.00364299538 -1.66763101e-007 2 1 2 0.800000012 2 2 2 http://www.watrbx.wtf/asset/?id=13640868 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=18987684 1 1 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 Sideswept Bangs Brown false -0.5 0.5 0 0 -0.5 0.5 0 0 194 33.0414467 5.37499571 35.3453522 -0.980608702 2.73636051e-005 -0.195971295 3.33735225e-005 1 -2.73636051e-005 0.195971295 -3.33735225e-005 -0.980608702 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.66763101e-007 0.00364299538 -1.66763101e-007 0 1 1 1 2 2 2 http://www.watrbx.wtf/asset/?id=19999424 5 Mesh 0 0 0 1.07000005 1.07000005 1.07000005 http://www.watrbx.wtf/asset/?id=20571982 1 1 1 Shirt http://www.watrbx.wtf/asset/?id=24828601 Pants http://www.watrbx.wtf/asset/?id=5465719 http://www.watrbx.wtf/asset/?id=25125829 Shirt Graphic 125 125 125 Body Colors 125 125 125 0 0 0 1 0 0 0 1 0 0 0 1 Player7 RBX3811 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 10.9375 5.1750021 42.4375 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.55565009e-007 -0.0364095084 -5.55565009e-007 0 1 2 1 1 2 2 3 Mesh 0 0 0 0.75 1.45000005 1.45000005 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=12188129 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3811 RBX3815 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3811 RBX3817 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3811 RBX3815 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3811 RBX3817 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3811 RBX3815 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3811 RBX3817 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3811 RBX3815 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3811 RBX3817 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3811 RBX3815 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3811 RBX3817 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3811 RBX3815 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3811 RBX3817 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3811 RBX3815 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3811 RBX3817 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3811 RBX3815 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3811 RBX3817 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 10.9375 3.67500186 42.4375 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -5.55565009e-007 -0.0364095084 -5.55565009e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX3832 RBX3835 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX3832 RBX3837 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX3832 RBX3839 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX3832 RBX3841 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX3832 RBX3811 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 12.4375 3.67500186 42.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.55565009e-007 -0.0364095084 -5.55565009e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 9.4375 3.67500186 42.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.55565009e-007 -0.0364095084 -5.55565009e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1 11.4375 1.67500186 42.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.55565009e-007 -0.0364095084 -5.55565009e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1 10.4375 1.67500186 42.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.55565009e-007 -0.0364095084 -5.55565009e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 -0.25 0 1 0 0 0 1 0 0 0 1 BlackCircles false -0.5 0.5 0 0 -0.5 0.5 0 0 194 10.9375 5.9250021 42.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.55565009e-007 -0.0364095084 -5.55565009e-007 2 1 1 1.60000002 1 2 2 http://www.watrbx.wtf/asset/?id=1095510 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=1095511 1 1 1 Shirt http://www.watrbx.wtf/asset/?id=24373060 Pants http://www.watrbx.wtf/asset/?id=24373156 0 0.200000003 0 1 0 0 0 1 0 0 0 1 Hybrid Goggles false -0.5 0.5 0 0 -0.5 0.5 0 0 194 10.9375 5.47500229 42.4375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.55565009e-007 -0.0364095084 -5.55565009e-007 0 1 1 1 2 2 2 http://www.watrbx.wtf/asset/?id=15719831 5 Mesh 0 0 0 1 1.04999995 1.04999995 http://www.watrbx.wtf/asset/?id=15719799 1 1 1 1 1 1 Body Colors 1 1 1 0 0 0 1 0 0 0 1 0 0 0 1 Player70 RBX3857 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -10.0002728 5.19780207 26.8963242 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -9.91947928e-008 0.00650082994 -9.91947928e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=19366214 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3857 RBX3861 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3857 RBX3863 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0500000007 0 1 2.97459665e-005 -3.12687007e-005 -3.12687007e-005 0.998755157 -0.0498802066 2.97459665e-005 0.0498802066 0.998755157 HeadWeld RBX3857 RBX3865 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3857 RBX3861 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3857 RBX3863 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0500000007 0 1 2.97459665e-005 -3.12687007e-005 -3.12687007e-005 0.998755157 -0.0498802066 2.97459665e-005 0.0498802066 0.998755157 HeadWeld RBX3857 RBX3865 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3857 RBX3861 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3857 RBX3863 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0500000007 0 1 2.97459665e-005 -3.12687007e-005 -3.12687007e-005 0.998755157 -0.0498802066 2.97459665e-005 0.0498802066 0.998755157 HeadWeld RBX3857 RBX3865 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3857 RBX3861 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3857 RBX3863 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0500000007 0 1 2.97459665e-005 -3.12687007e-005 -3.12687007e-005 0.998755157 -0.0498802066 2.97459665e-005 0.0498802066 0.998755157 HeadWeld RBX3857 RBX3865 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3857 RBX3861 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3857 RBX3863 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0500000007 0 1 2.97459665e-005 -3.12687007e-005 -3.12687007e-005 0.998755157 -0.0498802066 2.97459665e-005 0.0498802066 0.998755157 HeadWeld RBX3857 RBX3865 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3857 RBX3861 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3857 RBX3863 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0500000007 0 1 2.97459665e-005 -3.12687007e-005 -3.12687007e-005 0.998755157 -0.0498802066 2.97459665e-005 0.0498802066 0.998755157 HeadWeld RBX3857 RBX3865 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3857 RBX3861 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3857 RBX3863 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0500000007 0 1 2.97459665e-005 -3.12687007e-005 -3.12687007e-005 0.998755157 -0.0498802066 2.97459665e-005 0.0498802066 0.998755157 HeadWeld RBX3857 RBX3865 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3857 RBX3861 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0.0500000007 1 0 0 0 1 0 0 0 1 HeadWeld RBX3857 RBX3863 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.0500000007 0 1 2.97459665e-005 -3.12687007e-005 -3.12687007e-005 0.998755157 -0.0498802066 2.97459665e-005 0.0498802066 0.998755157 HeadWeld RBX3857 RBX3865 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -10.0002728 3.69780207 26.8963242 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -9.91947928e-008 0.00650082994 -9.91947928e-008 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX3887 RBX3890 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX3887 RBX3892 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX3887 RBX3894 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX3887 RBX3896 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX3887 RBX3857 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -8.50027275 3.69780207 26.8963242 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.91947928e-008 0.00650082994 -9.91947928e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -11.5002728 3.69780207 26.8963242 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.91947928e-008 0.00650082994 -9.91947928e-008 0 1 1 2 1 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -1.20000005 0.600000024 1 0 0 0 1 0 0 0 1 RightGrip RBX3890 RBX3899 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -1.20000005 0.600000024 1 0 0 0 1 0 0 0 1 RightGrip RBX3890 RBX3899 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -1.20000005 0.600000024 1 0 0 0 1 0 0 0 1 RightGrip RBX3890 RBX3899 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -1.20000005 0.600000024 1 0 0 0 1 0 0 0 1 RightGrip RBX3890 RBX3899 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -1.20000005 0.600000024 1 0 0 0 1 0 0 0 1 RightGrip RBX3890 RBX3899 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -1.20000005 0.600000024 1 0 0 0 1 0 0 0 1 RightGrip RBX3890 RBX3899 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -1.20000005 0.600000024 1 0 0 0 1 0 0 0 1 RightGrip RBX3890 RBX3899 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -1.20000005 0.600000024 1 0 0 0 1 0 0 0 1 RightGrip RBX3890 RBX3899 false -0.5 0.5 0 0 -0.5 0.5 0 0 1030 -9.50027275 1.69780207 26.8963242 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.91947928e-008 0.00650082994 -9.91947928e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1030 -10.5002728 1.69780207 26.8963242 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.91947928e-008 0.00650082994 -9.91947928e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.400000006 0 1 0 0 0 1 0 0 0 1 NinjaMaskOfShadows false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -10.0002728 5.29780197 26.8963242 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -9.91947928e-008 0.00650082994 -9.91947928e-008 2 1 1 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=1286427 5 Mesh 0 0 0 1.10000002 1.10000002 1.10000002 http://www.watrbx.wtf/asset/?id=1309894 1 1 1 0 0.25 0.0500000007 1 0 0 0 1 0 0 0 1 HeatVisionGoggles false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -10.0002728 5.44780207 26.9463234 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -9.91947928e-008 0.00650082994 -9.91947928e-008 2 1 1 0.400000006 2 2 2 http://www.watrbx.wtf/asset/?id=1278980 5 Mesh 0 0 0 1.04999995 1.04999995 1.04999995 http://www.watrbx.wtf/asset/?id=10747907 1 1 1 1030 1030 1030 Body Colors 1030 1030 1030 0 0.0500000007 0 1 2.97459665e-005 -3.12687007e-005 -3.12687007e-005 0.998755157 -0.0498802066 2.97459665e-005 0.0498802066 0.998755157 Green Beret false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -10.0002747 5.64786434 26.8938293 -1 3.12687007e-005 -2.97459665e-005 2.97459665e-005 0.998755157 0.0498802066 3.12687007e-005 0.0498802066 -0.998755157 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -9.91947928e-008 0.00650082994 -9.91947928e-008 0 1 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=14132097 5 Mesh 0 0 0 1 1 0.949999988 http://www.watrbx.wtf/asset/?id=14132128 1 1 1 true true 0 -1.20000005 0.600000024 1 0 0 0 1 0 0 0 1 GravityHammer http://www.watrbx.wtf/asset/?id=33685977 false -0.5 0.5 0 0 -0.5 0.5 4 0 23 -11.5002728 2.09780216 28.0963249 -1 0 0 0 0 1 0 1 0 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.91947928e-008 0.00650082994 -9.91947928e-008 0 1 2 5 3 2 2 http://www.watrbx.wtf/asset/?id=33685862 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=33685897 1 1 1 false Hit 1 false http://www.watrbx.wtf/asset/?id=30172281 0.5 false SendOut 1 false http://www.watrbx.wtf/asset/?id=30172373 0.5 false InitialHit 1 false http://www.watrbx.wtf/asset/?id=30299564 0.5 false GravityHammerScript local Tool = script.Parent local hit = nil local out = nil local humanoid = nil local torso = nil local enabled = false local connection = nil local reload = 5 local hammerStrength = 30 local upStrength = 1500 local children = {} local toAffect = {} local debris = game:GetService("Debris") function onActivated() if enabled then return end enabled = true if hit ~= nil then makeHammerActive() hit:Play(0.1,1,1) connection = hit.KeyframeReached:connect(sendFlying) wait(reload) end enabled = false end function makeHammerActive() local part = Instance.new("Part") part.Transparency = 1 part.formFactor = 2 part.Size = Vector3.new(1,0.4,1) local fire = Instance.new("Fire") fire.Color = Color3.new(155/255,1,206/255) fire.SecondaryColor = Color3.new(0,1,1) fire.Heat = -5 fire.Size = 8 fire.Parent = part part.Parent = game.Workspace local weld = Instance.new("Weld") weld.Part0 = part weld.Parent = part weld.Part1 = Tool.Handle weld.C0 = CFrame.new(0,-4.5,0) debris:AddItem(part,1.5) end function sendFlying(stringframe) if stringframe == "sendflying" then connection:disconnect() Tool.Handle.InitialHit:Play() Tool.Handle.Hit:Play() children = {} recursiveGetChildren(game.Workspace) for i = 1, #children do if children[i].Anchored == false then local dist = Vector3.new(children[i].Position.x - torso.Position.x,children[i].Position.y - torso.Position.y,children[i].Position.z - torso.Position.z) if dist.magnitude <= hammerStrength then local bodyPos = Instance.new("BodyPosition") local height = hammerStrength * (1 - (dist.magnitude/hammerStrength)) bodyPos.position = children[i].Position + Vector3.new(0,height,0) bodyPos.P = children[i]:GetMass() * upStrength bodyPos.D = bodyPos.P/2 bodyPos.maxForce = Vector3.new(bodyPos.P,bodyPos.P,bodyPos.P) bodyPos.Parent = children[i] debris:AddItem(bodyPos,3) if children[i].Parent:FindFirstChild("Humanoid") == nil and children[i].Parent.Parent:FindFirstChild("Humanoid") == nil then children[i]:BreakJoints() end table.insert(toAffect,children[i]) end end end end wait(3.1) sendOut() toAffect = {} end function sendForceFieldOut() local fire = Instance.new("Fire") fire.Color = Color3.new(155/255,1,206/255) fire.SecondaryColor = Color3.new(0,1,1) fire.Heat = -5 fire.Size = 1 fire.Parent = torso for i = 1, 8 do fire.Size = fire.Size + 4 wait(0.2) end fire:remove() end function sendOut() if #toAffect > 0 then Tool.Handle.SendOut:Play() local co = coroutine.create(sendForceFieldOut) coroutine.resume(co) out:Play() out.KeyframeReached:connect(function(string) if string == "end" then wait(0.4) out:Stop() end end) end wait(0.3) for i =1, #toAffect do if toAffect[i].Parent ~= nil and toAffect[i].Parent ~= torso.Parent then local dist = Vector3.new(torso.Position.x - toAffect[i].Position.x,torso.Position.y - toAffect[i].Position.y,torso.Position.z - toAffect[i].Position.z) local bodyForce = Instance.new("BodyForce") bodyForce.force = dist.unit * toAffect[i]:GetMass() * -400 bodyForce.Parent = toAffect[i] if toAffect[i].Parent:FindFirstChild("Humanoid") ~= nil and toAffect[i].Name == "Torso" then toAffect[i].Parent:FindFirstChild("Humanoid").Sit = true end debris:AddItem(bodyForce,1) end end end function recursiveGetChildren(parent) local kids = parent:GetChildren() if kids ~= nil then for i =1, #kids do if kids[i].className == "Part" then table.insert(children,kids[i]) end recursiveGetChildren(kids[i]) end end end function onEquipped() humanoid = Tool.Parent:FindFirstChild("Humanoid") torso = Tool.Parent:FindFirstChild("Torso") hit = humanoid:LoadAnimation(Tool.gravityslam) out = humanoid:LoadAnimation(Tool.staffout) end function onUnequipped() hit:Stop() hit:remove() out:Stop() out:remove() end Tool.Equipped:connect(onEquipped) Tool.Unequipped:connect(onUnequipped) Tool.Activated:connect(onActivated) http://www.watrbx.wtf/asset/?ID=33169573 gravityslam http://www.watrbx.wtf/asset/?ID=27432686 staffout Pants http://www.watrbx.wtf/asset/?id=81270854 Shirt http://www.watrbx.wtf/asset/?id=82177783 0 0 0 1 0 0 0 1 0 0 0 1 Player71 RBX3931 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 15.9375 5.11249733 30.375 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.30031447e-006 0.0852174088 -1.30031447e-006 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=16132434 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX3931 RBX3935 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3931 RBX3937 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3931 RBX3939 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX3931 RBX3935 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3931 RBX3937 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3931 RBX3939 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX3931 RBX3935 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3931 RBX3937 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3931 RBX3939 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX3931 RBX3935 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3931 RBX3937 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3931 RBX3939 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX3931 RBX3935 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3931 RBX3937 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3931 RBX3939 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX3931 RBX3935 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3931 RBX3937 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3931 RBX3939 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX3931 RBX3935 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3931 RBX3937 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3931 RBX3939 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX3931 RBX3935 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3931 RBX3937 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3931 RBX3939 false -0.5 0.5 0 0 -0.5 0.5 4 0 26 15.9375 3.61249757 30.375 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.30031447e-006 0.0852174088 -1.30031447e-006 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.150000006 Right Shoulder RBX3961 RBX3964 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.150000006 Left Shoulder RBX3961 RBX3966 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX3961 RBX3968 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX3961 RBX3970 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX3961 RBX3931 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 17.4375 3.61249757 30.375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.30031447e-006 0.0852174088 -1.30031447e-006 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 14.4375 3.61249757 30.375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.30031447e-006 0.0852174088 -1.30031447e-006 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 26 16.4375 1.61249757 30.375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.30031447e-006 0.0852174088 -1.30031447e-006 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 26 15.4375 1.61249757 30.375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.30031447e-006 0.0852174088 -1.30031447e-006 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 Nerd Glasses false -0.5 0.5 0 0 -0.5 0.5 0 0 194 15.9375 5.31249714 30.625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.30031447e-006 0.0852174088 -1.30031447e-006 2 1 1 0.400000006 1 2 2 http://www.watrbx.wtf/asset/?id=11419729 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=11419678 1 1 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 Koala false -0.5 0.5 0 0 -0.5 0.5 0 0 194 15.9375 5.21249723 30.375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.30031447e-006 0.0852174088 -1.30031447e-006 0 1 1 2 2 2 2 http://www.watrbx.wtf/asset/?id=44106450 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=44106410 1 1 1 Pants http://www.watrbx.wtf/asset/?id=3372791 0 -0.5 0 1 0 0 0 1 0 0 0 1 BunnyEars false -0.5 0.5 0 0 -0.5 0.5 0 0 194 15.9375 6.11249733 30.375 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.30031447e-006 0.0852174088 -1.30031447e-006 2 1 1 1.60000002 1 2 2 http://www.watrbx.wtf/asset/?id=1072759 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=1072760 1 1 1 Shirt http://www.watrbx.wtf/asset/?id=82573382 125 125 26 Body Colors 125 26 26 0 0 0 1 0 0 0 1 0 0 0 1 Player72 RBX3988 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -76.0625 5.1750021 -9.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -8.14438749e-007 -0.0177916866 -8.14438749e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=20418518 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3988 RBX3992 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0799999982 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3988 RBX3994 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3988 RBX3992 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0799999982 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3988 RBX3994 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3988 RBX3992 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0799999982 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3988 RBX3994 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3988 RBX3992 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0799999982 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3988 RBX3994 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3988 RBX3992 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0799999982 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3988 RBX3994 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3988 RBX3992 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0799999982 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3988 RBX3994 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3988 RBX3992 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0799999982 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3988 RBX3994 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3988 RBX3992 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0799999982 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX3988 RBX3994 false -0.5 0.5 0 0 -0.5 0.5 4 0 199 -76.0625 3.67500186 -9.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -8.14438749e-007 -0.0177916866 -8.14438749e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX4009 RBX4012 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX4009 RBX4014 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX4009 RBX4016 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX4009 RBX4018 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX4009 RBX3988 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -74.5625 3.67500186 -9.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -8.14438749e-007 -0.0177916866 -8.14438749e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -77.5625 3.67500186 -9.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -8.14438749e-007 -0.0177916866 -8.14438749e-007 0 1 1 2 1 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.39999998 0 0 1 1 0 0 0 1 0 RightGrip RBX4012 RBX4021 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.39999998 0 0 1 1 0 0 0 1 0 RightGrip RBX4012 RBX4021 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.39999998 0 0 1 1 0 0 0 1 0 RightGrip RBX4012 RBX4021 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.39999998 0 0 1 1 0 0 0 1 0 RightGrip RBX4012 RBX4021 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.39999998 0 0 1 1 0 0 0 1 0 RightGrip RBX4012 RBX4021 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.39999998 0 0 1 1 0 0 0 1 0 RightGrip RBX4012 RBX4021 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.39999998 0 0 1 1 0 0 0 1 0 RightGrip RBX4012 RBX4021 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 -1.39999998 0 0 1 1 0 0 0 1 0 RightGrip RBX4012 RBX4021 false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -75.5625 1.67500186 -9.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -8.14438749e-007 -0.0177916866 -8.14438749e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 208 -76.5625 1.67500186 -9.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -8.14438749e-007 -0.0177916866 -8.14438749e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 true true 0 0 -1.39999998 0 0 1 1 0 0 0 1 0 OrcBlade http://www.watrbx.wtf/asset/?id=10469865 false SwordScript 44 false -0.5 0.5 0 0 -0.5 0.5 0 0 199 -77.5625 2.67500186 -8.16250038 0 -1 0 1 0 0 0 0 1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 false 256 Handle 0.400000006 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -8.14438749e-007 -0.0177916866 -8.14438749e-007 2 1 1 0.800000012 4 2 2 http://www.watrbx.wtf/asset/?id=10469496 5 Mesh 0 0 0 1.79999995 1.79999995 1.79999995 http://www.watrbx.wtf/asset/?id=10469599 1 1 1 false Sound 1 false rbxasset://sounds/swordslash.wav 0.699999988 false Sound 1 false rbxasset://sounds/unsheath.wav 1 false http://www.watrbx.wtf/asset/?id=1014476 Local Gui Shirt http://www.watrbx.wtf/asset/?id=19534120 0 -0.300000012 0 1 0 0 0 1 0 0 0 1 Orange SpikyHair false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -76.0625 5.97500229 -9.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -8.14438749e-007 -0.0177916866 -8.14438749e-007 2 1 1 0.400000006 1 2 2 http://www.watrbx.wtf/asset/?id=12212520 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=12817342 1 1 1 Pants http://www.watrbx.wtf/asset/?id=58286145 0 -0.0799999982 0 1 0 0 0 1 0 0 0 1 DoomBucket false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -76.0625 5.75500202 -9.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -8.14438749e-007 -0.0177916866 -8.14438749e-007 2 1 2 1.60000002 2 2 2 http://www.watrbx.wtf/asset/?id=1286103 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=1286100 1 1 1 1030 1030 194 Body Colors 1030 208 199 0 0 0 1 0 0 0 1 0 0 0 1 Player73 RBX4049 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 -0.3125 5.11250114 -44.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.85150474e-007 -0.00426093582 -5.85150474e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=7074972 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX4049 RBX4053 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0.150000006 1 0 0 0 1 0 0 0 1 HeadWeld RBX4049 RBX4055 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4049 RBX4057 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX4049 RBX4053 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0.150000006 1 0 0 0 1 0 0 0 1 HeadWeld RBX4049 RBX4055 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4049 RBX4057 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX4049 RBX4053 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0.150000006 1 0 0 0 1 0 0 0 1 HeadWeld RBX4049 RBX4055 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4049 RBX4057 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX4049 RBX4053 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0.150000006 1 0 0 0 1 0 0 0 1 HeadWeld RBX4049 RBX4055 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4049 RBX4057 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX4049 RBX4053 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0.150000006 1 0 0 0 1 0 0 0 1 HeadWeld RBX4049 RBX4055 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4049 RBX4057 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX4049 RBX4053 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0.150000006 1 0 0 0 1 0 0 0 1 HeadWeld RBX4049 RBX4055 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4049 RBX4057 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX4049 RBX4053 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0.150000006 1 0 0 0 1 0 0 0 1 HeadWeld RBX4049 RBX4055 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4049 RBX4057 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX4049 RBX4053 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.25 0.150000006 1 0 0 0 1 0 0 0 1 HeadWeld RBX4049 RBX4055 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4049 RBX4057 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 -0.3125 3.61250114 -44.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -5.85150474e-007 -0.00426093582 -5.85150474e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.150000006 Right Shoulder RBX4079 RBX4082 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.150000006 Left Shoulder RBX4079 RBX4084 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX4079 RBX4086 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX4079 RBX4088 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX4079 RBX4049 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 1.1875 3.61250114 -44.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.85150474e-007 -0.00426093582 -5.85150474e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 -1.8125 3.61250114 -44.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.85150474e-007 -0.00426093582 -5.85150474e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 125 0.1875 1.61250114 -44.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.85150474e-007 -0.00426093582 -5.85150474e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 125 -0.8125 1.61250114 -44.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.85150474e-007 -0.00426093582 -5.85150474e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 Swordpack false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -0.3125 4.21250105 -45.3624992 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.85150474e-007 -0.00426093582 -5.85150474e-007 0 1 3 3 2 2 2 http://www.watrbx.wtf/asset/?id=19367813 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=19367808 1 1 1 Pants http://www.watrbx.wtf/asset/?id=9627646 0 0.25 0.150000006 1 0 0 0 1 0 0 0 1 W Shades false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -0.3125 5.36250114 -44.4124985 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.85150474e-007 -0.00426093582 -5.85150474e-007 0 1 1 1 1 2 2 http://www.watrbx.wtf/asset/?id=18755442 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=18755438 1 1 1 Shirt http://www.watrbx.wtf/asset/?id=57895280 0 -0.200000003 0 1 0 0 0 1 0 0 0 1 Nacho Sombrerro false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -0.3125 5.81250095 -44.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.85150474e-007 -0.00426093582 -5.85150474e-007 0 1 2 1 2 2 2 http://www.watrbx.wtf/asset/?id=22543677 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=22543651 1 1 1 125 125 125 Body Colors 125 125 125 0 0 0 1 0 0 0 1 0 0 0 1 Player74 RBX4106 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 31.9357719 5.0970192 5.81042862 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.65668439e-007 0.00361908227 -1.65668439e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=16678109 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.26999998 0.0399999991 1 0 0 0 1 0 0 0 1 HeadWeld RBX4106 RBX4110 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4106 RBX4112 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.26999998 0.0399999991 1 0 0 0 1 0 0 0 1 HeadWeld RBX4106 RBX4110 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4106 RBX4112 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.26999998 0.0399999991 1 0 0 0 1 0 0 0 1 HeadWeld RBX4106 RBX4110 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4106 RBX4112 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.26999998 0.0399999991 1 0 0 0 1 0 0 0 1 HeadWeld RBX4106 RBX4110 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4106 RBX4112 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.26999998 0.0399999991 1 0 0 0 1 0 0 0 1 HeadWeld RBX4106 RBX4110 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4106 RBX4112 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.26999998 0.0399999991 1 0 0 0 1 0 0 0 1 HeadWeld RBX4106 RBX4110 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4106 RBX4112 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.26999998 0.0399999991 1 0 0 0 1 0 0 0 1 HeadWeld RBX4106 RBX4110 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4106 RBX4112 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.26999998 0.0399999991 1 0 0 0 1 0 0 0 1 HeadWeld RBX4106 RBX4110 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4106 RBX4112 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 31.9357719 3.59701896 5.81042862 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.65668439e-007 0.00361908227 -1.65668439e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX4127 RBX4130 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX4127 RBX4132 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX4127 RBX4134 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX4127 RBX4136 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX4127 RBX4106 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 33.4357719 3.59701896 5.81042862 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.65668439e-007 0.00361908227 -1.65668439e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 30.4357719 3.59701896 5.81042862 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.65668439e-007 0.00361908227 -1.65668439e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 32.4357719 1.59701896 5.81042862 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.65668439e-007 0.00361908227 -1.65668439e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 31.4357719 1.59701896 5.81042862 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.65668439e-007 0.00361908227 -1.65668439e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 1.26999998 0.0399999991 1 0 0 0 1 0 0 0 1 DogTags false -0.5 0.5 0 0 -0.5 0.5 0 0 194 31.9357719 4.32701921 5.85042858 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.65668439e-007 0.00361908227 -1.65668439e-007 0 1 1 1 1 2 2 http://www.watrbx.wtf/asset/?id=30683421 5 Mesh 0 0 0 1.20000005 1 1.09000003 http://www.watrbx.wtf/asset/?id=30683431 1 1 1 Shirt http://www.watrbx.wtf/asset/?id=3621527 Pants http://www.watrbx.wtf/asset/?id=6131509 0 0.400000006 0 1 0 0 0 1 0 0 0 1 Airforce false -0.5 0.5 0 0 -0.5 0.5 0 0 194 31.9357719 5.1970191 5.81042862 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.65668439e-007 0.00361908227 -1.65668439e-007 0 0 1 1 1 2 2 http://www.watrbx.wtf/asset/?id=11185596 5 Mesh 0 0 0 1.01999998 1.01999998 1.01999998 http://www.watrbx.wtf/asset/?id=11185585 1 1 1 1030 1003 1003 Body Colors 1003 1003 1003 0 0 0 1 0 0 0 1 0 0 0 1 Player75 RBX4152 false -0.5 0.5 0 0 -0.5 0.5 4 0 18 39.875 5.17499638 -9.5625 -0.999938965 -0 -0.0110483747 0 1 0 0.0110483747 0 -0.999938965 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.31196552e-007 -0.00137742702 -2.31196552e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=7074780 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4152 RBX4156 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX4152 RBX4158 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0199999996 0.0500000007 -0.988934815 5.64847942e-005 -0.148350686 -0.0291875955 0.980380058 0.194943517 0.145451069 0.197116435 -0.969530344 HeadWeld RBX4152 RBX4160 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4152 RBX4156 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX4152 RBX4158 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0199999996 0.0500000007 -0.988934815 5.64847942e-005 -0.148350686 -0.0291875955 0.980380058 0.194943517 0.145451069 0.197116435 -0.969530344 HeadWeld RBX4152 RBX4160 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4152 RBX4156 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX4152 RBX4158 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0199999996 0.0500000007 -0.988934815 5.64847942e-005 -0.148350686 -0.0291875955 0.980380058 0.194943517 0.145451069 0.197116435 -0.969530344 HeadWeld RBX4152 RBX4160 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4152 RBX4156 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX4152 RBX4158 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0199999996 0.0500000007 -0.988934815 5.64847942e-005 -0.148350686 -0.0291875955 0.980380058 0.194943517 0.145451069 0.197116435 -0.969530344 HeadWeld RBX4152 RBX4160 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4152 RBX4156 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX4152 RBX4158 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0199999996 0.0500000007 -0.988934815 5.64847942e-005 -0.148350686 -0.0291875955 0.980380058 0.194943517 0.145451069 0.197116435 -0.969530344 HeadWeld RBX4152 RBX4160 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4152 RBX4156 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX4152 RBX4158 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0199999996 0.0500000007 -0.988934815 5.64847942e-005 -0.148350686 -0.0291875955 0.980380058 0.194943517 0.145451069 0.197116435 -0.969530344 HeadWeld RBX4152 RBX4160 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4152 RBX4156 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX4152 RBX4158 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0199999996 0.0500000007 -0.988934815 5.64847942e-005 -0.148350686 -0.0291875955 0.980380058 0.194943517 0.145451069 0.197116435 -0.969530344 HeadWeld RBX4152 RBX4160 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4152 RBX4156 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX4152 RBX4158 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.0199999996 0.0500000007 -0.988934815 5.64847942e-005 -0.148350686 -0.0291875955 0.980380058 0.194943517 0.145451069 0.197116435 -0.969530344 HeadWeld RBX4152 RBX4160 false -0.5 0.5 0 0 -0.5 0.5 4 0 18 39.875 3.67499661 -9.5625 -0.999938965 -0 -0.0110483747 0 1 -0 0.0110483747 0 -0.999938965 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -2.31196552e-007 -0.00137742702 -2.31196552e-007 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=1731302 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX4182 RBX4185 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX4182 RBX4187 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX4182 RBX4189 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX4182 RBX4191 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX4182 RBX4152 false -0.5 0.5 0 0 -0.5 0.5 4 0 18 41.3749084 3.67499661 -9.57907295 -0.999938965 -0 -0.0110483747 0 1 0 0.0110483747 0 -0.999938965 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.31196552e-007 -0.00137742702 -2.31196552e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 18 38.3750916 3.67499661 -9.54592705 -0.999938965 -0 -0.0110483747 0 1 0 0.0110483747 0 -0.999938965 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.31196552e-007 -0.00137742702 -2.31196552e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 24 40.3749695 1.67499661 -9.56802464 -0.999938965 -0 -0.0110483747 0 1 0 0.0110483747 0 -0.999938965 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.31196552e-007 -0.00137742702 -2.31196552e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 24 39.3750305 1.67499661 -9.55697536 -0.999938965 -0 -0.0110483747 0 1 0 0.0110483747 0 -0.999938965 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.31196552e-007 -0.00137742702 -2.31196552e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.400000006 0 1 0 0 0 1 0 0 0 1 BlackPaintballMask false -0.5 0.5 0 0 -0.5 0.5 0 0 194 39.875 5.27499628 -9.5625 -0.999938965 -0 -0.0110483747 0 1 0 0.0110483747 0 -0.999938965 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.31196552e-007 -0.00137742702 -2.31196552e-007 0 1 1 1 1 2 2 http://www.watrbx.wtf/asset/?id=9253927 5 Mesh 0 0 0 1.04999995 1.04999995 1.04999995 http://www.watrbx.wtf/asset/?id=9253896 1 1 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 Vet's Medal false -0.5 0.5 0 0 -0.5 0.5 0 0 194 39.1816711 4.17499638 -8.95480251 -0.999938965 -0 -0.0110483747 0 1 0 0.0110483747 0 -0.999938965 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.31196552e-007 -0.00137742702 -2.31196552e-007 0 1 1 1 1 2 2 http://www.watrbx.wtf/asset/?id=42157374 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=42157349 1 1 1 Pants http://www.watrbx.wtf/asset/?id=9528994 http://www.watrbx.wtf/asset/?id=1731302 Shirt Graphic 0 -0.0199999996 0.0500000007 -0.988934815 5.64847942e-005 -0.148350686 -0.0291875955 0.980380058 0.194943517 0.145451069 0.197116435 -0.969530344 SupaFlyCap false -0.5 0.5 0 0 -0.5 0.5 0 0 194 39.8822784 5.68474817 -9.61495876 0.990513444 0.0270320065 -0.134730458 5.64847942e-005 0.980380058 0.197116435 0.137415498 -0.195254102 0.971078157 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.31196552e-007 -0.00137742702 -2.31196552e-007 2 1 1 0.400000006 1 2 2 http://www.watrbx.wtf/asset/?id=7635903 5 Mesh 0 0 0 1.07000005 1.07000005 1.07000005 http://www.watrbx.wtf/asset/?id=7635885 1 1 1 18 18 24 Body Colors 18 24 18 Shirt http://www.watrbx.wtf/asset/?id=36209994 0 0 0 1 0 0 0 1 0 0 0 1 Player76 RBX4210 false -0.5 0.5 0 0 -0.5 0.5 4 0 23 55.9375 5.12500286 -27.6875 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.77985833e-007 0.00607269304 -2.77985833e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=10749222 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 -0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX4210 RBX4214 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX4210 RBX4216 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 -0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX4210 RBX4214 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX4210 RBX4216 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 -0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX4210 RBX4214 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX4210 RBX4216 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 -0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX4210 RBX4214 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX4210 RBX4216 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 -0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX4210 RBX4214 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX4210 RBX4216 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 -0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX4210 RBX4214 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX4210 RBX4216 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 -0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX4210 RBX4214 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX4210 RBX4216 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.5 -0.100000001 1 0 0 0 1 0 0 0 1 HeadWeld RBX4210 RBX4214 0 0.5 0 1 0 0 0 1 0 0 0 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 HeadWeld RBX4210 RBX4216 false -0.5 0.5 0 0 -0.5 0.5 4 0 23 55.9375 3.62500262 -27.6875 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -2.77985833e-007 0.00607269304 -2.77985833e-007 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=26910348 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX4231 RBX4234 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX4231 RBX4236 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX4231 RBX4238 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX4231 RBX4240 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX4231 RBX4210 false -0.5 0.5 0 0 -0.5 0.5 4 0 23 57.4375 3.62500262 -27.6875 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.77985833e-007 0.00607269304 -2.77985833e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 23 54.4375 3.62500262 -27.6875 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.77985833e-007 0.00607269304 -2.77985833e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 23 56.4375 1.62500262 -27.6875 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.77985833e-007 0.00607269304 -2.77985833e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 23 55.4375 1.62500262 -27.6875 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.77985833e-007 0.00607269304 -2.77985833e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 -0.5 -0.100000001 1 0 0 0 1 0 0 0 1 WhiteWitchHat false -0.5 0.5 0 0 -0.5 0.5 0 0 194 55.9375 6.12500286 -27.7875004 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.77985833e-007 0.00607269304 -2.77985833e-007 2 1 2 1.20000005 2 2 2 http://www.watrbx.wtf/asset/?id=1165242 5 Mesh 0 0 0 0.0599999987 0.0599999987 0.0599999987 http://www.watrbx.wtf/asset/?id=5206966 1 1 1 0 1.39999998 -0.800000012 1 0 0 0 1 0 0 0 1 Swordpack false -0.5 0.5 0 0 -0.5 0.5 0 0 194 55.9375 4.22500277 -28.4874992 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.77985833e-007 0.00607269304 -2.77985833e-007 0 1 3 3 2 2 2 http://www.watrbx.wtf/asset/?id=19367813 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=19367808 1 1 1 Pants http://www.watrbx.wtf/asset/?id=18305482 http://www.watrbx.wtf/asset/?id=26910348 Shirt Graphic Shirt http://www.watrbx.wtf/asset/?id=18305436 23 23 23 Body Colors 23 23 23 0 0 0 1 0 0 0 1 0 0 0 1 Player77 RBX4257 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 48.9375 5.17500114 -1.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.94270883e-008 -0.00192853366 -2.94270883e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=7074882 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.340000004 -0.239999995 1 3.41884443e-005 -2.63400671e-005 -2.63400671e-005 0.966930389 0.255040765 3.41884443e-005 -0.255040765 0.966930389 HeadWeld RBX4257 RBX4261 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 -0.100000001 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX4257 RBX4263 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.340000004 -0.239999995 1 3.41884443e-005 -2.63400671e-005 -2.63400671e-005 0.966930389 0.255040765 3.41884443e-005 -0.255040765 0.966930389 HeadWeld RBX4257 RBX4261 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 -0.100000001 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX4257 RBX4263 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.340000004 -0.239999995 1 3.41884443e-005 -2.63400671e-005 -2.63400671e-005 0.966930389 0.255040765 3.41884443e-005 -0.255040765 0.966930389 HeadWeld RBX4257 RBX4261 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 -0.100000001 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX4257 RBX4263 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.340000004 -0.239999995 1 3.41884443e-005 -2.63400671e-005 -2.63400671e-005 0.966930389 0.255040765 3.41884443e-005 -0.255040765 0.966930389 HeadWeld RBX4257 RBX4261 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 -0.100000001 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX4257 RBX4263 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.340000004 -0.239999995 1 3.41884443e-005 -2.63400671e-005 -2.63400671e-005 0.966930389 0.255040765 3.41884443e-005 -0.255040765 0.966930389 HeadWeld RBX4257 RBX4261 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 -0.100000001 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX4257 RBX4263 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.340000004 -0.239999995 1 3.41884443e-005 -2.63400671e-005 -2.63400671e-005 0.966930389 0.255040765 3.41884443e-005 -0.255040765 0.966930389 HeadWeld RBX4257 RBX4261 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 -0.100000001 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX4257 RBX4263 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.340000004 -0.239999995 1 3.41884443e-005 -2.63400671e-005 -2.63400671e-005 0.966930389 0.255040765 3.41884443e-005 -0.255040765 0.966930389 HeadWeld RBX4257 RBX4261 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 -0.100000001 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX4257 RBX4263 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.340000004 -0.239999995 1 3.41884443e-005 -2.63400671e-005 -2.63400671e-005 0.966930389 0.255040765 3.41884443e-005 -0.255040765 0.966930389 HeadWeld RBX4257 RBX4261 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 -0.100000001 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX4257 RBX4263 false -0.5 0.5 0 0 -0.5 0.5 4 0 199 48.9375 3.67500091 -1.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -2.94270883e-008 -0.00192853366 -2.94270883e-008 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX4278 RBX4281 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX4278 RBX4283 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX4278 RBX4285 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX4278 RBX4287 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX4278 RBX4257 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 50.4375 3.67500091 -1.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.94270883e-008 -0.00192853366 -2.94270883e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 47.4375 3.67500091 -1.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.94270883e-008 -0.00192853366 -2.94270883e-008 0 1 1 2 1 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -0.699999988 -0.200000003 1 0 0 0 0 -1 0 1 0 RightGrip RBX4281 RBX4290 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -0.699999988 -0.200000003 1 0 0 0 0 -1 0 1 0 RightGrip RBX4281 RBX4290 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -0.699999988 -0.200000003 1 0 0 0 0 -1 0 1 0 RightGrip RBX4281 RBX4290 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -0.699999988 -0.200000003 1 0 0 0 0 -1 0 1 0 RightGrip RBX4281 RBX4290 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -0.699999988 -0.200000003 1 0 0 0 0 -1 0 1 0 RightGrip RBX4281 RBX4290 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -0.699999988 -0.200000003 1 0 0 0 0 -1 0 1 0 RightGrip RBX4281 RBX4290 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -0.699999988 -0.200000003 1 0 0 0 0 -1 0 1 0 RightGrip RBX4281 RBX4290 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 -0.699999988 -0.200000003 1 0 0 0 0 -1 0 1 0 RightGrip RBX4281 RBX4290 false -0.5 0.5 0 0 -0.5 0.5 0 0 199 49.4375 1.67500091 -1.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.94270883e-008 -0.00192853366 -2.94270883e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 199 48.4375 1.67500091 -1.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.94270883e-008 -0.00192853366 -2.94270883e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 -0.340000004 -0.239999995 1 3.41884443e-005 -2.63400671e-005 -2.63400671e-005 0.966930389 0.255040765 3.41884443e-005 -0.255040765 0.966930389 ValkyrieHelm false -0.5 0.5 0 0 -0.5 0.5 0 0 194 48.9375 5.9425478 -1.88127708 -1 2.63400671e-005 -3.41884443e-005 3.41884443e-005 0.966930389 -0.255040765 2.63400671e-005 -0.255040765 -0.966930389 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.94270883e-008 -0.00192853366 -2.94270883e-008 2 1 1 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=1365696 5 Mesh 0 0 0 1 1 1.14999998 http://www.watrbx.wtf/asset/?id=1365693 1 1 1 0 0.400000006 -0.100000001 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 Bluetooth false -0.5 0.5 0 0 -0.5 0.5 0 0 194 48.9374847 5.26703501 -1.62219691 -1 2.89589861e-005 -3.19997998e-005 3.19997998e-005 0.995035768 -0.0995167717 2.89589861e-005 -0.0995167717 -0.995035768 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.94270883e-008 -0.00192853366 -2.94270883e-008 2 1 2 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=13652771 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=13652772 1 1 1 true true 0 -0.699999988 -0.200000003 1 0 0 0 0 -1 0 1 0 Revolver http://www.watrbx.wtf/asset/?id=25301918 false -0.5 0.5 0 0 -0.5 0.5 0 0 26 47.4375 1.97500086 -1.36249995 -1 0 0 0 -1 0 0 0 1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 false 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.94270883e-008 -0.00192853366 -2.94270883e-008 0 1 1 2 1 false EquipSound 1 false http://www.watrbx.wtf/asset/?id=13510737 1 2 2 http://www.watrbx.wtf/asset/?id=25298496 5 Mesh 0 0 0 1.5 1.5 1.5 http://www.watrbx.wtf/asset/?id=25298514 1 1 1 false reloadSound 1 false http://www.watrbx.wtf/asset/?id=25299064 1 true LaserBlast 24 false RayGun 25 false Local Gui local Tool = script.Parent; enabled = true function onButton1Down(mouse) if not enabled then return end enabled = false mouse.Icon = "rbxasset://textures\\GunWaitCursor.png" wait(.2) mouse.Icon = "rbxasset://textures\\GunCursor.png" enabled = true end function onEquippedLocal(mouse) if mouse == nil then print("Mouse not found") return end mouse.Icon = "rbxasset://textures\\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end Tool.Equipped:connect(onEquippedLocal) Pants http://www.watrbx.wtf/asset/?id=9026602 Shirt http://www.watrbx.wtf/asset/?id=2353241 125 125 199 Body Colors 125 199 199 0 0 0 1 0 0 0 1 0 0 0 1 Player78 RBX4319 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 43.9375 5.11247921 -41.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.56926375e-007 0.00861046556 -6.56926375e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=7074780 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX4319 RBX4323 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.150000006 -0.0599999987 1 3.09716052e-005 -3.00561005e-005 -3.00561005e-005 0.999550045 0.0299955942 3.09716052e-005 -0.0299955942 0.999550045 HeadWeld RBX4319 RBX4325 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX4319 RBX4323 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.150000006 -0.0599999987 1 3.09716052e-005 -3.00561005e-005 -3.00561005e-005 0.999550045 0.0299955942 3.09716052e-005 -0.0299955942 0.999550045 HeadWeld RBX4319 RBX4325 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX4319 RBX4323 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.150000006 -0.0599999987 1 3.09716052e-005 -3.00561005e-005 -3.00561005e-005 0.999550045 0.0299955942 3.09716052e-005 -0.0299955942 0.999550045 HeadWeld RBX4319 RBX4325 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX4319 RBX4323 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.150000006 -0.0599999987 1 3.09716052e-005 -3.00561005e-005 -3.00561005e-005 0.999550045 0.0299955942 3.09716052e-005 -0.0299955942 0.999550045 HeadWeld RBX4319 RBX4325 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX4319 RBX4323 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.150000006 -0.0599999987 1 3.09716052e-005 -3.00561005e-005 -3.00561005e-005 0.999550045 0.0299955942 3.09716052e-005 -0.0299955942 0.999550045 HeadWeld RBX4319 RBX4325 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX4319 RBX4323 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.150000006 -0.0599999987 1 3.09716052e-005 -3.00561005e-005 -3.00561005e-005 0.999550045 0.0299955942 3.09716052e-005 -0.0299955942 0.999550045 HeadWeld RBX4319 RBX4325 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX4319 RBX4323 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.150000006 -0.0599999987 1 3.09716052e-005 -3.00561005e-005 -3.00561005e-005 0.999550045 0.0299955942 3.09716052e-005 -0.0299955942 0.999550045 HeadWeld RBX4319 RBX4325 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX4319 RBX4323 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.150000006 -0.0599999987 1 3.09716052e-005 -3.00561005e-005 -3.00561005e-005 0.999550045 0.0299955942 3.09716052e-005 -0.0299955942 0.999550045 HeadWeld RBX4319 RBX4325 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 43.9375 3.61247945 -41.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -6.56926375e-007 0.00861046556 -6.56926375e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX4340 RBX4343 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX4340 RBX4345 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX4340 RBX4347 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX4340 RBX4349 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX4340 RBX4319 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 45.4375 3.61247945 -41.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.56926375e-007 0.00861046556 -6.56926375e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 42.4375 3.61247945 -41.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.56926375e-007 0.00861046556 -6.56926375e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1030 44.4375 1.61247945 -41.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.56926375e-007 0.00861046556 -6.56926375e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1030 43.4375 1.61247945 -41.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -6.56926375e-007 0.00861046556 -6.56926375e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 Nerd Glasses false -0.5 0.5 0 0 -0.5 0.5 0 0 194 43.9375 5.31247902 -41.3125 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.56926375e-007 0.00861046556 -6.56926375e-007 2 1 1 0.400000006 1 2 2 http://www.watrbx.wtf/asset/?id=11419729 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=11419678 1 1 1 0 0.150000006 -0.0599999987 1 3.09716052e-005 -3.00561005e-005 -3.00561005e-005 0.999550045 0.0299955942 3.09716052e-005 -0.0299955942 0.999550045 BoyNormalHair1 false -0.5 0.5 0 0 -0.5 0.5 0 0 194 43.9374924 5.46074677 -41.6179733 -1 3.00561005e-005 -3.09716052e-005 3.09716052e-005 0.999550045 -0.0299955942 3.00561005e-005 -0.0299955942 -0.999550045 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -6.56926375e-007 0.00861046556 -6.56926375e-007 2 1 1 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=13332444 5 Mesh 0 0 0 1.04999995 1 1.04999995 http://www.watrbx.wtf/asset/?id=13332337 1 1 1 Pants http://www.watrbx.wtf/asset/?id=30848848 Shirt http://www.watrbx.wtf/asset/?id=23586731 1030 1030 1030 Body Colors 1030 1030 1030 0 0 0 1 0 0 0 1 0 0 0 1 Player79 RBX4365 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 62.9985695 5.18665028 8.49848938 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.44106417e-007 0.00319955172 -2.44106417e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=7074780 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4365 RBX4369 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4365 RBX4369 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4365 RBX4369 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4365 RBX4369 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4365 RBX4369 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4365 RBX4369 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4365 RBX4369 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4365 RBX4369 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 62.9985695 3.68665028 8.49848938 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -2.44106417e-007 0.00319955172 -2.44106417e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX4377 RBX4380 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX4377 RBX4382 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX4377 RBX4384 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX4377 RBX4386 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX4377 RBX4365 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 64.4985657 3.68665028 8.49848938 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.44106417e-007 0.00319955172 -2.44106417e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 61.4985695 3.68665028 8.49848938 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.44106417e-007 0.00319955172 -2.44106417e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1030 63.4985695 1.68665028 8.49848938 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.44106417e-007 0.00319955172 -2.44106417e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1030 62.4985695 1.68665028 8.49848938 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.44106417e-007 0.00319955172 -2.44106417e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 Shirt http://www.watrbx.wtf/asset/?id=29913245 false Health 7 false HealthScript v3.1 8 0 1 27111894 Roblox 2.0 torso 0 0 3 27111864 Roblox 2.0 Right Arm 0 0 2 27111419 Roblox 2.0 Left Arm 0 0 4 27111857 Roblox 2.0 Left Leg 0 0 5 27111882 Roblox 2.0 Right Leg 0 1030 1030 1030 Body Colors 1030 1030 1030 0 -0.300000012 0 1 0 0 0 1 0 0 0 1 EnglishBowler false -0.5 0.5 0 0 -0.5 0.5 0 0 194 62.9985695 5.98665047 8.49848938 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.44106417e-007 0.00319955172 -2.44106417e-007 0 1 1 1 2 2 2 http://www.watrbx.wtf/asset/?id=13202137 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=13202149 1 1 1 Pants http://www.watrbx.wtf/asset/?id=30967926 0 0 0 1 0 0 0 1 0 0 0 1 Player8 RBX4405 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -66.0010834 5.09832096 -28.5002708 -1 0 0 0 1 0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.49352189e-007 -0.00978794508 -1.49352189e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=10747810 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0.150000006 1 0 0 0 1 0 0 0 1 HeadWeld RBX4405 RBX4409 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0.150000006 1 0 0 0 1 0 0 0 1 HeadWeld RBX4405 RBX4409 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0.150000006 1 0 0 0 1 0 0 0 1 HeadWeld RBX4405 RBX4409 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0.150000006 1 0 0 0 1 0 0 0 1 HeadWeld RBX4405 RBX4409 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0.150000006 1 0 0 0 1 0 0 0 1 HeadWeld RBX4405 RBX4409 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0.150000006 1 0 0 0 1 0 0 0 1 HeadWeld RBX4405 RBX4409 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0.150000006 1 0 0 0 1 0 0 0 1 HeadWeld RBX4405 RBX4409 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0.150000006 1 0 0 0 1 0 0 0 1 HeadWeld RBX4405 RBX4409 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 -66.0010834 3.59832072 -28.5002708 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.49352189e-007 -0.00978794508 -1.49352189e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX4417 RBX4420 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX4417 RBX4422 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX4417 RBX4424 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX4417 RBX4426 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX4417 RBX4405 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -64.5010834 3.59832072 -28.5002708 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.49352189e-007 -0.00978794508 -1.49352189e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -67.5010834 3.59832072 -28.5002708 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.49352189e-007 -0.00978794508 -1.49352189e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1030 -65.5010834 1.59832072 -28.5002708 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.49352189e-007 -0.00978794508 -1.49352189e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1030 -66.5010834 1.59832072 -28.5002708 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.49352189e-007 -0.00978794508 -1.49352189e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 1030 1030 1030 Body Colors 1030 1030 1003 false Health 7 false HealthScript v3.1 8 Shirt http://www.watrbx.wtf/asset/?id=13343842 0 5 27111882 Roblox 2.0 Right Leg 0 0 4 27111857 Roblox 2.0 Left Leg 0 0 2 27111419 Roblox 2.0 Left Arm 0 0 3 27111864 Roblox 2.0 Right Arm 0 0 -0.25 0.150000006 1 0 0 0 1 0 0 0 1 TBCHardHat false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -66.0010834 5.84832096 -28.3502712 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.49352189e-007 -0.00978794508 -1.49352189e-007 2 1 1 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=1073659 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=11844713 1 1 1 Pants http://www.watrbx.wtf/asset/?id=27223103 0 1 27111894 Roblox 2.0 torso 0 0 0 0 1 0 0 0 1 0 0 0 1 Player80 RBX4445 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -39.0625 5.11247826 -62.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -9.56458663e-008 -0.000113968134 -9.56458663e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=7074749 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4445 RBX4449 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX4445 RBX4451 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4445 RBX4453 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4445 RBX4449 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX4445 RBX4451 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4445 RBX4453 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4445 RBX4449 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX4445 RBX4451 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4445 RBX4453 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4445 RBX4449 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX4445 RBX4451 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4445 RBX4453 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4445 RBX4449 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX4445 RBX4451 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4445 RBX4453 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4445 RBX4449 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX4445 RBX4451 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4445 RBX4453 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4445 RBX4449 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX4445 RBX4451 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4445 RBX4453 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.349999994 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4445 RBX4449 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX4445 RBX4451 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4445 RBX4453 false -0.5 0.5 0 0 -0.5 0.5 4 0 208 -39.0625 3.61247849 -62.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -9.56458663e-008 -0.000113968134 -9.56458663e-008 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=32707950 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX4475 RBX4478 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX4475 RBX4480 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX4475 RBX4482 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX4475 RBX4484 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX4475 RBX4445 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -37.5625 3.61247849 -62.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.56458663e-008 -0.000113968134 -9.56458663e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1030 -40.5625 3.61247849 -62.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.56458663e-008 -0.000113968134 -9.56458663e-008 0 1 1 2 1 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.150000006 0 -1.10000002 0 0 1 1 0 0 0 1 0 RightGrip RBX4478 RBX4487 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.150000006 0 -1.10000002 0 0 1 1 0 0 0 1 0 RightGrip RBX4478 RBX4487 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.150000006 0 -1.10000002 0 0 1 1 0 0 0 1 0 RightGrip RBX4478 RBX4487 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.150000006 0 -1.10000002 0 0 1 1 0 0 0 1 0 RightGrip RBX4478 RBX4487 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.150000006 0 -1.10000002 0 0 1 1 0 0 0 1 0 RightGrip RBX4478 RBX4487 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.150000006 0 -1.10000002 0 0 1 1 0 0 0 1 0 RightGrip RBX4478 RBX4487 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.150000006 0 -1.10000002 0 0 1 1 0 0 0 1 0 RightGrip RBX4478 RBX4487 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0.150000006 0 -1.10000002 0 0 1 1 0 0 0 1 0 RightGrip RBX4478 RBX4487 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 -38.5625 1.61247849 -62.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.56458663e-008 -0.000113968134 -9.56458663e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 -39.5625 1.61247849 -62.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -9.56458663e-008 -0.000113968134 -9.56458663e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 1030 1030 1003 Body Colors 1030 1003 208 false Health 7 false HealthScript v3.1 8 0 0.349999994 0 1 0 0 0 1 0 0 0 1 Chainmail false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -39.0625 5.26247835 -62.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -9.56458663e-008 -0.000113968134 -9.56458663e-008 0 1 2 2 2 2 2 http://www.watrbx.wtf/asset/?id=17420255 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=17420251 1 1 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 Sideswept Bangs Brown false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -38.9585533 5.31247234 -62.6546478 -0.980608702 2.73636051e-005 -0.195971295 3.33735225e-005 1 -2.73636051e-005 0.195971295 -3.33735225e-005 -0.980608702 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -9.56458663e-008 -0.000113968134 -9.56458663e-008 0 1 1 1 2 2 2 http://www.watrbx.wtf/asset/?id=19999424 5 Mesh 0 0 0 1.07000005 1.07000005 1.07000005 http://www.watrbx.wtf/asset/?id=20571982 1 1 1 0 0 0 1 0 0 0 1 0 0 0 1 Knight false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -39.0625 5.61247826 -62.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -9.56458663e-008 -0.000113968134 -9.56458663e-008 0 1 1 2 2 2 2 http://www.watrbx.wtf/asset/?id=18752668 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=18752665 1 1 1 true true 0.150000006 0 -1.10000002 0 0 1 1 0 0 0 1 0 Elf Blade http://www.watrbx.wtf/asset/?id=22770279 false SwordScript 45 false -0.5 0.5 0 0 -0.5 0.5 0 0 199 -40.5625 2.46247864 -61.4625015 0 -1 0 1 0 0 0 0 1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -9.56458663e-008 -0.000113968134 -9.56458663e-008 2 1 1 0.800000012 4 2 2 http://www.watrbx.wtf/asset/?id=22769578 5 Mesh 0 0 0 0.200000003 0.200000003 0.200000003 http://www.watrbx.wtf/asset/?id=22769571 1 1 1 false Sound 1 false rbxasset://sounds/swordslash.wav 0.699999988 false Sound 1 false rbxasset://sounds/swordlunge.wav 0.600000024 false Sound 1 false rbxasset://sounds/unsheath.wav 1 false http://www.watrbx.wtf/asset/?id=1014476 Local Gui Pants http://www.watrbx.wtf/asset/?id=24113039 Shirt http://www.watrbx.wtf/asset/?id=19148373 http://www.watrbx.wtf/asset/?id=32707950 Shirt Graphic 0 0 0 1 0 0 0 1 0 0 0 1 Player81 RBX4519 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 -56.0010338 5.1369772 -60.5011902 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.91803655e-008 0.00387844443 -5.91803655e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=14861556 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.340000004 -0.239999995 1 3.41884443e-005 -2.63400671e-005 -2.63400671e-005 0.966930389 0.255040765 3.41884443e-005 -0.255040765 0.966930389 HeadWeld RBX4519 RBX4523 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX4519 RBX4525 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4519 RBX4527 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.340000004 -0.239999995 1 3.41884443e-005 -2.63400671e-005 -2.63400671e-005 0.966930389 0.255040765 3.41884443e-005 -0.255040765 0.966930389 HeadWeld RBX4519 RBX4523 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX4519 RBX4525 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4519 RBX4527 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.340000004 -0.239999995 1 3.41884443e-005 -2.63400671e-005 -2.63400671e-005 0.966930389 0.255040765 3.41884443e-005 -0.255040765 0.966930389 HeadWeld RBX4519 RBX4523 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX4519 RBX4525 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4519 RBX4527 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.340000004 -0.239999995 1 3.41884443e-005 -2.63400671e-005 -2.63400671e-005 0.966930389 0.255040765 3.41884443e-005 -0.255040765 0.966930389 HeadWeld RBX4519 RBX4523 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX4519 RBX4525 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4519 RBX4527 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.340000004 -0.239999995 1 3.41884443e-005 -2.63400671e-005 -2.63400671e-005 0.966930389 0.255040765 3.41884443e-005 -0.255040765 0.966930389 HeadWeld RBX4519 RBX4523 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX4519 RBX4525 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4519 RBX4527 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.340000004 -0.239999995 1 3.41884443e-005 -2.63400671e-005 -2.63400671e-005 0.966930389 0.255040765 3.41884443e-005 -0.255040765 0.966930389 HeadWeld RBX4519 RBX4523 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX4519 RBX4525 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4519 RBX4527 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.340000004 -0.239999995 1 3.41884443e-005 -2.63400671e-005 -2.63400671e-005 0.966930389 0.255040765 3.41884443e-005 -0.255040765 0.966930389 HeadWeld RBX4519 RBX4523 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX4519 RBX4525 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4519 RBX4527 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.340000004 -0.239999995 1 3.41884443e-005 -2.63400671e-005 -2.63400671e-005 0.966930389 0.255040765 3.41884443e-005 -0.255040765 0.966930389 HeadWeld RBX4519 RBX4523 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 HeadWeld RBX4519 RBX4525 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4519 RBX4527 false -0.5 0.5 0 0 -0.5 0.5 4 0 1011 -56.0010338 3.63697696 -60.5011902 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -5.91803655e-008 0.00387844443 -5.91803655e-008 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?id=89008305 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX4549 RBX4552 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX4549 RBX4554 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX4549 RBX4556 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX4549 RBX4558 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX4549 RBX4519 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 -54.5010338 3.63697696 -60.5011902 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.91803655e-008 0.00387844443 -5.91803655e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1 -57.5010338 3.63697696 -60.5011902 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.91803655e-008 0.00387844443 -5.91803655e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1 -55.5010338 1.63697696 -60.5011902 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.91803655e-008 0.00387844443 -5.91803655e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1 -56.5010338 1.63697696 -60.5011902 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -5.91803655e-008 0.00387844443 -5.91803655e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 -0.340000004 -0.239999995 1 3.41884443e-005 -2.63400671e-005 -2.63400671e-005 0.966930389 0.255040765 3.41884443e-005 -0.255040765 0.966930389 ValkyrieHelm false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -56.0010338 5.90452385 -60.8199692 -1 2.63400671e-005 -3.41884443e-005 3.41884443e-005 0.966930389 -0.255040765 2.63400671e-005 -0.255040765 -0.966930389 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.91803655e-008 0.00387844443 -5.91803655e-008 2 1 1 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=1365696 5 Mesh 0 0 0 1 1 1.14999998 http://www.watrbx.wtf/asset/?id=1365693 1 1 1 0 0.300000012 0.25 1 0 0 0 1 0 0 0 1 Nerd Glasses false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -56.0010338 5.33697701 -60.2511902 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.91803655e-008 0.00387844443 -5.91803655e-008 2 1 1 0.400000006 1 2 2 http://www.watrbx.wtf/asset/?id=11419729 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=11419678 1 1 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 Angel false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -56.0010338 4.78697729 -60.5011902 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -5.91803655e-008 0.00387844443 -5.91803655e-008 0 1 4 3 3 2 2 http://www.watrbx.wtf/asset/?id=15392960 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=15392970 1 1 1 http://www.watrbx.wtf/asset/?id=89008305 Shirt Graphic 1 1 1 Body Colors 1 1 1011 0 0 0 1 0 0 0 1 0 0 0 1 Player82 RBX4575 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 -44.0625 5.1124754 -55.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.61476544e-007 -0.00131816359 -2.61476544e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=7074972 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4575 RBX4579 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4575 RBX4579 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4575 RBX4579 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4575 RBX4579 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4575 RBX4579 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4575 RBX4579 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4575 RBX4579 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.850000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4575 RBX4579 false -0.5 0.5 0 0 -0.5 0.5 4 0 26 -44.0625 3.61247563 -55.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -2.61476544e-007 -0.00131816359 -2.61476544e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX4587 RBX4590 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX4587 RBX4592 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX4587 RBX4594 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX4587 RBX4596 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX4587 RBX4575 false -0.5 0.5 0 0 -0.5 0.5 4 0 199 -42.5625 3.61247563 -55.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.61476544e-007 -0.00131816359 -2.61476544e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 199 -45.5625 3.61247563 -55.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.61476544e-007 -0.00131816359 -2.61476544e-007 0 1 1 2 1 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 0.25 1 0 0 0 1 0 0 0 1 RightGrip RBX4590 RBX4599 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 0.25 1 0 0 0 1 0 0 0 1 RightGrip RBX4590 RBX4599 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 0.25 1 0 0 0 1 0 0 0 1 RightGrip RBX4590 RBX4599 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 0.25 1 0 0 0 1 0 0 0 1 RightGrip RBX4590 RBX4599 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 0.25 1 0 0 0 1 0 0 0 1 RightGrip RBX4590 RBX4599 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 0.25 1 0 0 0 1 0 0 0 1 RightGrip RBX4590 RBX4599 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 0.25 1 0 0 0 1 0 0 0 1 RightGrip RBX4590 RBX4599 0 -1 0 1 0 -0 0 0 1 0 -1 -0 0 0 0.25 1 0 0 0 1 0 0 0 1 RightGrip RBX4590 RBX4599 false -0.5 0.5 0 0 -0.5 0.5 0 0 1011 -43.5625 1.61247563 -55.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.61476544e-007 -0.00131816359 -2.61476544e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1011 -44.5625 1.61247563 -55.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.61476544e-007 -0.00131816359 -2.61476544e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 Shirt http://www.watrbx.wtf/asset/?id=30966566 false Health 7 false HealthScript v3.1 8 0 0.850000024 0 1 0 0 0 1 0 0 0 1 Angel false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -44.0625 4.76247549 -55.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.61476544e-007 -0.00131816359 -2.61476544e-007 0 1 4 3 3 2 2 http://www.watrbx.wtf/asset/?id=15392960 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=15392970 1 1 1 0 1 27120789 Robot 2.0 torso 27121095 0 2 27120452 Robot Left Arm 27121095 0 4 27120565 Robot Left Leg 27121095 0 3 27120597 Robot Right Arm 27121095 0 5 27120624 Robot Right Leg 27121095 24 199 1011 Body Colors 199 1011 26 true true 0 0 0.25 1 0 0 0 1 0 0 0 1 Sunfire http://www.watrbx.wtf/asset/?id=82953283 Sun fire false -0.5 0.5 0 0 -0.5 0.5 4 0 194 -45.5625 2.36247563 -55.5625 -1 0 0 0 0 1 0 1 0 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.61476544e-007 -0.00131816359 -2.61476544e-007 3 1 0.869999826 1 0.819999754 2 2 http://www.watrbx.wtf/asset/?id=82953265 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=82953279 1 1 1 4294934528 false Fire 4294901760 9 5 false SunScript local function waitForChild(parent, child) while parent:FindFirstChild(child) == nil do wait() end return parent[child] end local Tool = script.Parent local Sun = Tool.Handle local vCharacter local vTorso local vHumanoid local vPlayer local PlayerGui local SunClone local Eye_Part = Instance.new("Part") Eye_Part.Name = "EyePart" Eye_Part.FormFactor = 3 Eye_Part.Size = Vector3.new(1, 2, 1) local Eye_Mesh = Instance.new("SpecialMesh") Eye_Mesh.MeshId = "http://www.watrbx.wtf/asset/?id=69433615" Eye_Mesh.TextureId = "http://www.watrbx.wtf/asset/?id=69433631" Eye_Mesh.Parent = Eye_Part Eye_Mesh.Scale = Vector3.new(1.1, 1.1, 1.1) local Hat_Part = Eye_Part:Clone() Hat_Part.Size = Vector3.new(2, 2, 2) Hat_Part.Name = "HatPart" local Hat_Mesh = waitForChild(Hat_Part, "Mesh") Hat_Mesh.MeshId = "http://www.watrbx.wtf/asset/?id=22009651" Hat_Mesh.TextureId = "http://www.watrbx.wtf/asset/?id=22009647" Hat_Mesh.Scale = Vector3.new(1, 1, 1) local RBX_Debris = game:GetService("Debris") Tool.Enabled = true local function litThemUp(key) if key:lower() == "q" then end end local function fireBeam(beamStart, beamEnd) print("Firing beam") local distance =(beamStart - beamEnd).magnitude if distance > 500 then distance = 500 end local laser = Instance.new("Part") laser.Name = "Bullet" laser.Anchored = true laser.CanCollide = false laser.Shape = "Block" laser.formFactor = "Custom" laser.Size = Vector3.new(0.2, 0.2, distance + 0.2) laser.Material = Enum.Material.Plastic laser.Locked = true laser.TopSurface = 0 laser.BottomSurface = 0 laser.BrickColor = BrickColor.new("Bright red") laser.CFrame = CFrame.new(beamEnd, beamStart) * CFrame.new(0, 0, -distance/2) laser.Parent = game.Workspace RBX_Debris:AddItem(laser, 0.25) end local function launchSun() SunClone = Sun:Clone() local sMesh = waitForChild(SunClone, "Mesh") Sun.Transparency = 1.0 SunClone.Anchored = true SunClone.CFrame = Sun.CFrame SunClone.Parent = game.Workspace vHumanoid.WalkSpeed = 2.0 local fire = Instance.new("Fire") fire.Parent = SunClone fire.Size = 25 fire.Heat = 25 local ePart = Eye_Part:Clone() local head = waitForChild(vCharacter, "Head") local eWeld = Instance.new("Weld") eWeld.Part0 = head eWeld.Part1 = ePart eWeld.C1 = CFrame.new(0, -0.0500000305, -0.25, 1, 0, 0, 0, -4.37113883e-008, -1, 0, 1, -4.37113883e-008) eWeld.Parent = head ePart.Parent = vCharacter --RBX_Debris:AddItem(ePart, 7.0) local vHat = nil local vChildren = vCharacter:GetChildren() for i = 1, #vChildren do if vChildren[i]:IsA("Hat") then vHat = vChildren[i] vHat.Transparency = 1.0 end end Spawn(function() wait(7.0) if vHat then vHat.Transparency = 0.0 end end) local hPart = Hat_Part:Clone() local hWeld = Instance.new("Weld") hWeld.Part0 = head hWeld.Part1 = hPart hWeld.Parent = head hWeld.C1 = CFrame.new(0, -0.799999952, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) hPart.Parent = vCharacter RBX_Debris:AddItem(hPart, 6.5) local duration = 2.75 while duration > 0 do duration = duration - wait() wait() SunClone.CFrame = SunClone.CFrame + Vector3.new(0, 2, 0) sMesh.Scale = sMesh.Scale * 1.05 end local players = game.Players:GetPlayers() for i = 1, #players do if players[i] and players[i] ~= vPlayer and players[i].Character then local char = players[i].Character local torso = waitForChild(char, "Torso") local blind = false local distance = (SunClone.Position - torso.Position).magnitude if distance < 240 then blind = true fireBeam(SunClone.Position, torso.Position) else local ray = game.Workspace:FindPartOnRay(Ray.new(SunClone.Position, (torso.Position - SunClone.Position).unit * 500.0), vCharacter) if ray and ray.Parent == torso.Parent then fireBeam(SunClone.Position, torso.Position) blind = true end end if blind == true and char:FindFirstChild("BlindScript") == nil then local bScript = Tool.BlindScript:Clone() bScript.Parent = char bScript.Disabled = false end end end wait(0.75) vHumanoid.WalkSpeed = 16.0 RBX_Debris:AddItem(SunClone, 1.5) end local function onActivated() if Tool.Enabled == false then return end if vTorso == nil or vHumanoid == nil then return end if SunClone and SunClone.Parent then return end Tool.Enabled = false launchSun() wait(7.0) Sun.Transparency = 0.0 Tool.Enabled = true end local function onEquipped(mouse) vCharacter = Tool.Parent vTorso = waitForChild(vCharacter, "Torso") vHumanoid = waitForChild(vCharacter, "Humanoid") vPlayer = game.Players:GetPlayerFromCharacter(vCharacter) if mouse then Mouse = mouse Mouse.KeyDown:connect(litThemUp) end local f = waitForChild(Sun, "Fire") f.Enabled = false end Tool.Activated:connect(onActivated) Tool.Equipped:connect(onEquipped) Tool.Unequipped:connect(onUnequipped) true BlindScript local function waitForChild(parent, child) while parent:FindFirstChild(child) == nil do wait() end return parent[child] end local vCharacter = script.Parent local vPlayer = game.Players:GetPlayerFromCharacter(vCharacter) local vTorso = waitForChild(vCharacter, "Torso") local vHumanoid = waitForChild(vCharacter, "Humanoid") local PlayerGui = waitForChild(vPlayer, "PlayerGui") local duration = 5.0 local Blind_Gui local Blind_Frame vHumanoid:TakeDamage(45) local RBX_Debris = game:GetService("Debris") local fire = Instance.new("Fire") fire.Parent = vTorso RBX_Debris:AddItem(fire, 5) if PlayerGui then Blind_Gui = Instance.new("ScreenGui") Blind_Gui.Name = "BlindGui" Blind_Gui.Parent = PlayerGui Blind_Frame = Instance.new("Frame") Blind_Frame.Name = "BlindFrame" Blind_Frame.Size = UDim2.new(1, 0, 1, 0) Blind_Frame.BackgroundColor3 = Color3.new(1, 1, 1) Blind_Frame.Position = UDim2.new(0, 0, 0, 0) Blind_Frame.Parent = Blind_Gui end wait(5) local duration = 2.0 while duration > 0 do duration = duration - wait(0.2) vHumanoid:TakeDamage(1.5) wait(0.2) end if Blind_Gui then Blind_Gui:Destroy() end wait(2.0) script:Destroy() false Local Gui Tool = script.Parent local stillEquipped = false function onEquippedLocal(mouse) stillEquipped = true if mouse == nil then print("Mouse not found") return end while stillEquipped do print("Setting Mouse to go") mouse.Icon = "rbxasset://textures\\GunCursor.png" while Tool.Enabled and stillEquipped do wait(0.01) end print("Setting Mouse to wait") mouse.Icon = "rbxasset://textures\\GunWaitCursor.png" while not Tool.Enabled and stillEquipped do wait(0.01) end end end function onUnequippedLocal() stillEquipped = false end Tool.Equipped:connect(onEquippedLocal) Tool.Unequipped:connect(onUnequippedLocal) 0 0 0 1 0 0 0 1 0 0 0 1 Player83 RBX4629 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 -37.0625 5.17500114 -48.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.21943151e-006 0.0034746374 -9.01318913e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=8329438 0 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX4629 RBX4633 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.1269632e-005 -2.97450351e-005 -2.97450351e-005 0.998752117 0.0499412194 3.1269632e-005 -0.0499412194 0.998752117 HeadWeld RBX4629 RBX4635 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX4629 RBX4633 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.1269632e-005 -2.97450351e-005 -2.97450351e-005 0.998752117 0.0499412194 3.1269632e-005 -0.0499412194 0.998752117 HeadWeld RBX4629 RBX4635 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX4629 RBX4633 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.1269632e-005 -2.97450351e-005 -2.97450351e-005 0.998752117 0.0499412194 3.1269632e-005 -0.0499412194 0.998752117 HeadWeld RBX4629 RBX4635 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX4629 RBX4633 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.1269632e-005 -2.97450351e-005 -2.97450351e-005 0.998752117 0.0499412194 3.1269632e-005 -0.0499412194 0.998752117 HeadWeld RBX4629 RBX4635 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX4629 RBX4633 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.1269632e-005 -2.97450351e-005 -2.97450351e-005 0.998752117 0.0499412194 3.1269632e-005 -0.0499412194 0.998752117 HeadWeld RBX4629 RBX4635 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX4629 RBX4633 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.1269632e-005 -2.97450351e-005 -2.97450351e-005 0.998752117 0.0499412194 3.1269632e-005 -0.0499412194 0.998752117 HeadWeld RBX4629 RBX4635 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX4629 RBX4633 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.1269632e-005 -2.97450351e-005 -2.97450351e-005 0.998752117 0.0499412194 3.1269632e-005 -0.0499412194 0.998752117 HeadWeld RBX4629 RBX4635 0 0.5 0 1 0 0 0 1 0 0 0 1 -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 HeadWeld RBX4629 RBX4633 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.1269632e-005 -2.97450351e-005 -2.97450351e-005 0.998752117 0.0499412194 3.1269632e-005 -0.0499412194 0.998752117 HeadWeld RBX4629 RBX4635 false -0.5 0.5 0 0 -0.5 0.5 4 0 11 -37.0625 3.67500114 -48.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.21943151e-006 0.0034746374 -9.01318913e-007 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?version=1&id=1221846 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX4650 RBX4653 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX4650 RBX4655 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX4650 RBX4657 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX4650 RBX4659 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX4650 RBX4629 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 -35.5625 3.67500114 -48.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.21943151e-006 0.0034746374 -9.01318913e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 -38.5625 3.67500114 -48.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.21943151e-006 0.0034746374 -9.01318913e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 119 -36.5625 1.67500114 -48.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.21943151e-006 0.0034746374 -9.01318913e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 119 -37.5625 1.67500114 -48.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.21943151e-006 0.0034746374 -9.01318913e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 http://www.watrbx.wtf/asset/?version=1&id=1221846 Shirt Graphic -0.699999988 1.5 0.600000024 1 0 0 0 1 0 0 0 1 Vet's Medal false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -37.7625008 4.17500114 -47.9625015 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.21943151e-006 0.0034746374 -9.01318913e-007 0 1 1 1 1 2 2 http://www.watrbx.wtf/asset/?id=42157374 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=42157349 1 1 1 0 -0.25 0 1 3.1269632e-005 -2.97450351e-005 -2.97450351e-005 0.998752117 0.0499412194 3.1269632e-005 -0.0499412194 0.998752117 SteamPunk false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -37.0624924 5.92468929 -48.5749855 -1 2.97450351e-005 -3.1269632e-005 3.1269632e-005 0.998752117 -0.0499412194 2.97450351e-005 -0.0499412194 -0.998752117 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.21943151e-006 0.0034746374 -9.01318913e-007 2 1 2 0.800000012 2 2 2 http://www.watrbx.wtf/asset/?id=12259127 5 Mesh 0 0 0 0.899999976 0.800000012 0.899999976 http://www.watrbx.wtf/asset/?id=12259232 1 1 1 24 24 119 Body Colors 24 119 11 0 0 0 1 0 0 0 1 0 0 0 1 Player84 RBX4674 false -0.5 0.5 0 0 -0.5 0.5 4 0 1001 -46.0625 5.17500257 -17.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -4.52431379e-007 0.00988351461 -1.50810465e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=7074749 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX4674 RBX4678 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4674 RBX4680 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX4674 RBX4682 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX4674 RBX4678 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4674 RBX4680 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX4674 RBX4682 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX4674 RBX4678 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4674 RBX4680 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX4674 RBX4682 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX4674 RBX4678 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4674 RBX4680 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX4674 RBX4682 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX4674 RBX4678 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4674 RBX4680 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX4674 RBX4682 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX4674 RBX4678 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4674 RBX4680 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX4674 RBX4682 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX4674 RBX4678 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4674 RBX4680 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX4674 RBX4682 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.100000001 0.0199999996 1 0 0 0 1 0 0 0 1 HeadWeld RBX4674 RBX4678 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4674 RBX4680 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.200000003 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX4674 RBX4682 false -0.5 0.5 0 0 -0.5 0.5 4 0 1001 -46.0625 3.67500257 -17.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -4.52431379e-007 0.00988351461 -1.50810465e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX4704 RBX4707 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX4704 RBX4709 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX4704 RBX4711 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX4704 RBX4713 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX4704 RBX4674 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 -44.5625 3.67500257 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -4.52431379e-007 0.00988351461 -1.50810465e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 -47.5625 3.67500257 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -4.52431379e-007 0.00988351461 -1.50810465e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 -45.5625 1.67500257 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -4.52431379e-007 0.00988351461 -1.50810465e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 -46.5625 1.67500257 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -4.52431379e-007 0.00988351461 -1.50810465e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 Shirt http://www.watrbx.wtf/asset/?id=21374824 0 0.100000001 0.0199999996 1 0 0 0 1 0 0 0 1 LeBolt false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -46.0625 5.57500267 -17.5424995 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -4.52431379e-007 0.00988351461 -1.50810465e-007 0 1 3 2 1 2 2 http://www.watrbx.wtf/asset/?id=31087361 5 Mesh 0 0 0 1.14999998 1.04999995 1.14999998 http://www.watrbx.wtf/asset/?id=31087368 1 1 1 0 0 0 1 0 0 0 1 0 0 0 1 Screw false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -46.0625 5.67500257 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -4.52431379e-007 0.00988351461 -1.50810465e-007 2 1 1 1.60000002 1 2 2 http://www.watrbx.wtf/asset/?id=1091657 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=1091658 1 1 1 Pants http://www.watrbx.wtf/asset/?id=27209628 0 0.200000003 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 DisneyXDHelmet2 false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -46.0625076 5.47599554 -17.5425968 -1 2.89589861e-005 -3.19997998e-005 3.19997998e-005 0.995035768 -0.0995167717 2.89589861e-005 -0.0995167717 -0.995035768 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -4.52431379e-007 0.00988351461 -1.50810465e-007 0 1 1 1 2 2 2 http://www.watrbx.wtf/asset/?id=23153430 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=23153427 1 1 1 1001 1003 1003 Body Colors 1003 1003 1001 0 0 0 1 0 0 0 1 0 0 0 1 Player85 RBX4731 false -0.5 0.5 0 0 -0.5 0.5 4 0 18 -61.0625 5.14997578 -17.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.98658762e-007 -0.00177935464 -2.98658762e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=7074749 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX4731 RBX4735 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.170000002 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4731 RBX4737 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX4731 RBX4735 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.170000002 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4731 RBX4737 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX4731 RBX4735 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.170000002 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4731 RBX4737 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX4731 RBX4735 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.170000002 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4731 RBX4737 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX4731 RBX4735 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.170000002 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4731 RBX4737 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX4731 RBX4735 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.170000002 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4731 RBX4737 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX4731 RBX4735 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.170000002 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4731 RBX4737 0 0.5 0 1 0 0 0 1 0 0 0 1 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 HeadWeld RBX4731 RBX4735 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.170000002 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4731 RBX4737 false -0.5 0.5 0 0 -0.5 0.5 4 0 18 -61.0625 3.64997554 -17.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -2.98658762e-007 -0.00177935464 -2.98658762e-007 0 1 2 2 1 5 roblox 20 0 http://www.watrbx.wtf/asset/?version=1&id=1017246 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX4752 RBX4755 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX4752 RBX4757 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX4752 RBX4759 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX4752 RBX4761 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX4752 RBX4731 false -0.5 0.5 0 0 -0.5 0.5 4 0 18 -59.5625 3.64997554 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.98658762e-007 -0.00177935464 -2.98658762e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 18 -62.5625 3.64997554 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.98658762e-007 -0.00177935464 -2.98658762e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 -60.5625 1.64997554 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.98658762e-007 -0.00177935464 -2.98658762e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 -61.5625 1.64997554 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -2.98658762e-007 -0.00177935464 -2.98658762e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0.119999997 0.300000012 -0.0700000003 0.980608702 3.33735225e-005 -0.195971295 -2.73636051e-005 1 3.33735225e-005 0.195971295 -2.73636051e-005 0.980608702 Sideswept Bangs Brown false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -60.9585533 5.34996986 -17.6546497 -0.980608702 2.73636051e-005 -0.195971295 3.33735225e-005 1 -2.73636051e-005 0.195971295 -3.33735225e-005 -0.980608702 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.98658762e-007 -0.00177935464 -2.98658762e-007 0 1 1 1 2 2 2 http://www.watrbx.wtf/asset/?id=19999424 5 Mesh 0 0 0 1.07000005 1.07000005 1.07000005 http://www.watrbx.wtf/asset/?id=20571982 1 1 1 0 -0.170000002 0 1 0 0 0 1 0 0 0 1 Winter Cap false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -61.0625 5.81997585 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -2.98658762e-007 -0.00177935464 -2.98658762e-007 0 1 1 1 2 2 2 http://www.watrbx.wtf/asset/?id=13030731 5 Mesh 0 0 0 0.949999988 0.949999988 0.949999988 http://www.watrbx.wtf/asset/?id=21024861 1 1 1 Pants http://www.watrbx.wtf/asset/?id=10862805 http://www.watrbx.wtf/asset/?version=1&id=1017246 Shirt Graphic Shirt http://www.watrbx.wtf/asset/?id=15131280 18 18 1003 Body Colors 18 1003 18 0 0 0 1 0 0 0 1 0 0 0 1 Player86 RBX4778 false -0.5 0.5 0 0 -0.5 0.5 4 0 18 -65.0625 5.11248159 -1.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.70255248e-006 -0.00858295988 -1.70255248e-006 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=7074749 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4778 RBX4782 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX4778 RBX4784 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4778 RBX4782 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX4778 RBX4784 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4778 RBX4782 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX4778 RBX4784 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4778 RBX4782 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX4778 RBX4784 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4778 RBX4782 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX4778 RBX4784 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4778 RBX4782 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX4778 RBX4784 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4778 RBX4782 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX4778 RBX4784 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.400000006 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4778 RBX4782 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 HeadWeld RBX4778 RBX4784 false -0.5 0.5 0 0 -0.5 0.5 4 0 18 -65.0625 3.61248159 -1.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.70255248e-006 -0.00858295988 -1.70255248e-006 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX4799 RBX4802 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX4799 RBX4804 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX4799 RBX4806 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX4799 RBX4808 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX4799 RBX4778 false -0.5 0.5 0 0 -0.5 0.5 4 0 18 -63.5625 3.61248159 -1.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.70255248e-006 -0.00858295988 -1.70255248e-006 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 18 -66.5625 3.61248159 -1.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.70255248e-006 -0.00858295988 -1.70255248e-006 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 18 -64.5625 1.61248159 -1.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.70255248e-006 -0.00858295988 -1.70255248e-006 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 18 -65.5625 1.61248159 -1.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.70255248e-006 -0.00858295988 -1.70255248e-006 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.400000006 0 1 0 0 0 1 0 0 0 1 NinjaMaskOfShadows false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -65.0625 5.2124815 -1.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.70255248e-006 -0.00858295988 -1.70255248e-006 2 1 1 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=1286427 5 Mesh 0 0 0 1.10000002 1.10000002 1.10000002 http://www.watrbx.wtf/asset/?id=1309894 1 1 1 0 -0.25 0 1 3.19997998e-005 -2.89589861e-005 -2.89589861e-005 0.995035768 0.0995167717 3.19997998e-005 -0.0995167717 0.995035768 Fedora false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -65.0624924 5.86124039 -1.58737922 -1 2.89589861e-005 -3.19997998e-005 3.19997998e-005 0.995035768 -0.0995167717 2.89589861e-005 -0.0995167717 -0.995035768 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.70255248e-006 -0.00858295988 -1.70255248e-006 2 1 2 0.800000012 2 2 2 http://www.watrbx.wtf/asset/?id=13640868 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=18987684 1 1 1 Pants http://www.watrbx.wtf/asset/?id=22515618 Shirt http://www.watrbx.wtf/asset/?id=22915548 18 18 18 Body Colors 18 18 18 0 0 0 1 0 0 0 1 0 0 0 1 Player87 RBX4824 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 -45.0625 5.17500019 -1.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.57686259e-007 0.00344470888 -1.57686259e-007 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 rbxasset://textures/face.png 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4824 RBX4828 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4824 RBX4830 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4824 RBX4832 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4824 RBX4828 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4824 RBX4830 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4824 RBX4832 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4824 RBX4828 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4824 RBX4830 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4824 RBX4832 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4824 RBX4828 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4824 RBX4830 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4824 RBX4832 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4824 RBX4828 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4824 RBX4830 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4824 RBX4832 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4824 RBX4828 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4824 RBX4830 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4824 RBX4832 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4824 RBX4828 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4824 RBX4830 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4824 RBX4832 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4824 RBX4828 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4824 RBX4830 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4824 RBX4832 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 -45.0625 3.67500019 -1.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.57686259e-007 0.00344470888 -1.57686259e-007 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX4854 RBX4857 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX4854 RBX4859 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX4854 RBX4861 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX4854 RBX4863 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX4854 RBX4824 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 -43.5625 3.67500019 -1.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.57686259e-007 0.00344470888 -1.57686259e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 125 -46.5625 3.67500019 -1.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.57686259e-007 0.00344470888 -1.57686259e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 125 -44.5625 1.67500019 -1.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.57686259e-007 0.00344470888 -1.57686259e-007 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 125 -45.5625 1.67500019 -1.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.57686259e-007 0.00344470888 -1.57686259e-007 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 SilverTetris false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -45.0625 6.47500038 -1.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.57686259e-007 0.00344470888 -1.57686259e-007 2 1 1 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=5839199 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=5839160 1 1 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 GoldTetris false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -45.0625 6.2750001 -1.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.57686259e-007 0.00344470888 -1.57686259e-007 2 1 1 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=5839207 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=5839168 1 1 1 Shirt http://www.watrbx.wtf/asset/?id=32162990 0 -0.800000012 0 1 0 0 0 1 0 0 0 1 RustyTetris false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -45.0625 6.47500038 -1.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.57686259e-007 0.00344470888 -1.57686259e-007 2 1 1 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=5839197 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=5839140 1 1 1 Pants http://www.watrbx.wtf/asset/?id=25936711 125 125 125 Body Colors 125 125 125 0 0 0 1 0 0 0 1 0 0 0 1 Player88 RBX4881 false -0.5 0.5 0 0 -0.5 0.5 4 0 24 -37.0625 5.17500114 -17.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.97166401e-007 0.00430716574 6.57221335e-008 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=16132434 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4881 RBX4885 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.119999997 0 1 3.33893549e-005 -2.73440473e-005 -2.73440473e-005 0.980379641 0.197113216 3.33893549e-005 -0.197113216 0.980379641 HeadWeld RBX4881 RBX4887 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4881 RBX4889 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4881 RBX4885 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.119999997 0 1 3.33893549e-005 -2.73440473e-005 -2.73440473e-005 0.980379641 0.197113216 3.33893549e-005 -0.197113216 0.980379641 HeadWeld RBX4881 RBX4887 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4881 RBX4889 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4881 RBX4885 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.119999997 0 1 3.33893549e-005 -2.73440473e-005 -2.73440473e-005 0.980379641 0.197113216 3.33893549e-005 -0.197113216 0.980379641 HeadWeld RBX4881 RBX4887 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4881 RBX4889 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4881 RBX4885 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.119999997 0 1 3.33893549e-005 -2.73440473e-005 -2.73440473e-005 0.980379641 0.197113216 3.33893549e-005 -0.197113216 0.980379641 HeadWeld RBX4881 RBX4887 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4881 RBX4889 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4881 RBX4885 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.119999997 0 1 3.33893549e-005 -2.73440473e-005 -2.73440473e-005 0.980379641 0.197113216 3.33893549e-005 -0.197113216 0.980379641 HeadWeld RBX4881 RBX4887 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4881 RBX4889 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4881 RBX4885 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.119999997 0 1 3.33893549e-005 -2.73440473e-005 -2.73440473e-005 0.980379641 0.197113216 3.33893549e-005 -0.197113216 0.980379641 HeadWeld RBX4881 RBX4887 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4881 RBX4889 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4881 RBX4885 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.119999997 0 1 3.33893549e-005 -2.73440473e-005 -2.73440473e-005 0.980379641 0.197113216 3.33893549e-005 -0.197113216 0.980379641 HeadWeld RBX4881 RBX4887 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4881 RBX4889 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4881 RBX4885 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.119999997 0 1 3.33893549e-005 -2.73440473e-005 -2.73440473e-005 0.980379641 0.197113216 3.33893549e-005 -0.197113216 0.980379641 HeadWeld RBX4881 RBX4887 0 0.5 0 1 0 0 0 1 0 0 0 1 0 -0.200000003 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4881 RBX4889 false -0.5 0.5 0 0 -0.5 0.5 4 0 1011 -37.0625 3.67500091 -17.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.97166401e-007 0.00430716574 6.57221335e-008 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Shoulder RBX4911 RBX4914 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Shoulder RBX4911 RBX4916 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX4911 RBX4918 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX4911 RBX4920 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX4911 RBX4881 false -0.5 0.5 0 0 -0.5 0.5 4 0 1011 -35.5625 3.67500091 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.97166401e-007 0.00430716574 6.57221335e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1011 -38.5625 3.67500091 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.97166401e-007 0.00430716574 6.57221335e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1011 -36.5625 1.67500091 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.97166401e-007 0.00430716574 6.57221335e-008 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1011 -37.5625 1.67500091 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.97166401e-007 0.00430716574 6.57221335e-008 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 -0.600000024 0 1 0 0 0 1 0 0 0 1 GoldTetris false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -37.0625 6.27500105 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.97166401e-007 0.00430716574 6.57221335e-008 2 1 1 0.800000012 1 2 2 http://www.watrbx.wtf/asset/?id=5839207 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=5839168 1 1 1 0 -0.119999997 0 1 3.33893549e-005 -2.73440473e-005 -2.73440473e-005 0.980379641 0.197113216 3.33893549e-005 -0.197113216 0.980379641 ThugBeanie false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -37.0624962 5.79264688 -17.586153 -1 2.73440473e-005 -3.33893549e-005 3.33893549e-005 0.980379641 -0.197113216 2.73440473e-005 -0.197113216 -0.980379641 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.97166401e-007 0.00430716574 6.57221335e-008 2 1 1 0.400000006 1 2 2 http://www.watrbx.wtf/asset/?id=1038653 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=1038654 1 1 1 Pants http://www.watrbx.wtf/asset/?id=8220825 Shirt http://www.watrbx.wtf/asset/?id=7973773 0 -0.200000003 0 1 0 0 0 1 0 0 0 1 BoltHelm false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -37.0625 5.87500095 -17.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.97166401e-007 0.00430716574 6.57221335e-008 2 1 2 2.4000001 2 2 2 http://www.watrbx.wtf/asset/?id=6547833 5 Mesh 0 0 0 0.899999976 0.899999976 0.899999976 http://www.watrbx.wtf/asset/?id=6551163 1 1 1 24 1011 1011 Body Colors 1011 1011 1011 0 0 0 1 0 0 0 1 0 0 0 1 Player89 RBX4938 false -0.5 0.5 0 0 -0.5 0.5 4 0 226 -32.0625 5.11250114 -29.5625 -1 0 0 0 1 0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Head 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.98698763e-006 0.0434064046 -1.98698763e-006 0 1 2 1 1 2 2 0 Mesh 0 0 0 1.25 1.25 1.25 1 1 1 5 face 20 0 http://www.watrbx.wtf/asset/?id=7074749 0 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4938 RBX4942 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4938 RBX4944 0 0.5 0 1 0 0 0 1 0 0 0 1 0.100000001 0.400000006 -0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX4938 RBX4946 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4938 RBX4942 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4938 RBX4944 0 0.5 0 1 0 0 0 1 0 0 0 1 0.100000001 0.400000006 -0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX4938 RBX4946 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4938 RBX4942 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4938 RBX4944 0 0.5 0 1 0 0 0 1 0 0 0 1 0.100000001 0.400000006 -0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX4938 RBX4946 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4938 RBX4942 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4938 RBX4944 0 0.5 0 1 0 0 0 1 0 0 0 1 0.100000001 0.400000006 -0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX4938 RBX4946 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4938 RBX4942 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4938 RBX4944 0 0.5 0 1 0 0 0 1 0 0 0 1 0.100000001 0.400000006 -0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX4938 RBX4946 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4938 RBX4942 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4938 RBX4944 0 0.5 0 1 0 0 0 1 0 0 0 1 0.100000001 0.400000006 -0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX4938 RBX4946 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4938 RBX4942 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4938 RBX4944 0 0.5 0 1 0 0 0 1 0 0 0 1 0.100000001 0.400000006 -0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX4938 RBX4946 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.300000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4938 RBX4942 0 0.5 0 1 0 0 0 1 0 0 0 1 0 0.800000012 0 1 0 0 0 1 0 0 0 1 HeadWeld RBX4938 RBX4944 0 0.5 0 1 0 0 0 1 0 0 0 1 0.100000001 0.400000006 -0.200000003 1 0 0 0 1 0 0 0 1 HeadWeld RBX4938 RBX4946 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 -32.0625 3.61250138 -29.5625 -1 -0 0 0 1 -0 0 0 -1 true 0.5 0.300000012 -0.5 0.5 0 0 0 0 2 0 true 256 Torso 0 0 0 2 0 0 0 0 -0.5 0.5 3 0 0 -1.98698763e-006 0.0434064046 -1.98698763e-006 0 1 2 2 1 5 roblox 20 0 0 1 0.5 0 0 0 1 0 1 -0 -1 0 0 -0.5 0.5 0 0 0 1 0 1 -0 -1 0 0 0 0.5 Right Shoulder RBX4968 RBX4971 -1 0.5 0 0 0 -1 0 1 0 1 0 0 0.5 0.5 0 0 0 -1 0 1 0 1 0 0 0 0.5 Left Shoulder RBX4968 RBX4973 1 -1 0 0 0 1 0 1 -0 -1 0 0 0.5 1 0 0 0 1 0 1 -0 -1 0 0 0 0.100000001 Right Hip RBX4968 RBX4975 -1 -1 0 0 0 -1 0 1 0 1 0 0 -0.5 1 0 0 0 -1 0 1 0 1 0 0 0 0.100000001 Left Hip RBX4968 RBX4977 0 1 0 -1 0 0 0 0 1 0 1 -0 0 -0.5 0 -1 0 0 0 0 1 0 1 -0 0 0.100000001 Neck RBX4968 RBX4938 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 -30.5625 3.61250138 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.98698763e-006 0.0434064046 -1.98698763e-006 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 4 0 1003 -33.5625 3.61250138 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Arm 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.98698763e-006 0.0434064046 -1.98698763e-006 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 -31.5625 1.61250138 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Left Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.98698763e-006 0.0434064046 -1.98698763e-006 0 1 1 2 1 false -0.5 0.5 0 0 -0.5 0.5 0 0 1003 -32.5625 1.61250138 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Right Leg 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 3 0 0 -1.98698763e-006 0.0434064046 -1.98698763e-006 0 1 1 2 1 100 100 Humanoid 0 16 false Sound 4 false Animate function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end -- ANIMATION -- declarations local Figure = script.Parent local Torso = waitForChild(Figure, "Torso") local RightShoulder = waitForChild(Torso, "Right Shoulder") local LeftShoulder = waitForChild(Torso, "Left Shoulder") local RightHip = waitForChild(Torso, "Right Hip") local LeftHip = waitForChild(Torso, "Left Hip") local Neck = waitForChild(Torso, "Neck") local Humanoid = waitForChild(Figure, "Humanoid") local pose = "Standing" local toolAnim = "None" local toolAnimTime = 0 -- functions function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end -- same as jump for now function moveFreeFall() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(3.14) LeftShoulder:SetDesiredAngle(-3.14) RightHip:SetDesiredAngle(0) LeftHip:SetDesiredAngle(0) end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end function animateTool() if (toolAnim == "None") then RightShoulder:SetDesiredAngle(1.57) return end if (toolAnim == "Slash") then RightShoulder.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(0) return end if (toolAnim == "Lunge") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightHip.MaxVelocity = 0.5 LeftHip.MaxVelocity = 0.5 RightShoulder:SetDesiredAngle(1.57) LeftShoulder:SetDesiredAngle(1.0) RightHip:SetDesiredAngle(1.57) LeftHip:SetDesiredAngle(1.0) return end end function move(time) local amplitude local frequency if (pose == "Jumping") then moveJump() return end if (pose == "FreeFall") then moveFreeFall() return end if (pose == "Seated") then moveSit() return end local climbFudge = 0 if (pose == "Running") then RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 amplitude = 1 frequency = 9 elseif (pose == "Climbing") then RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 amplitude = 1 frequency = 9 climbFudge = 3.14 else amplitude = 0.1 frequency = 1 end desiredAngle = amplitude * math.sin(time*frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) local tool = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else toolAnim = "None" toolAnimTime = 0 end end -- connect events 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) -- main program local runService = game:service("RunService"); while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end false RobloxTeam 6 false Health 7 false HealthScript v3.1 8 0 0.300000012 0 1 0 0 0 1 0 0 0 1 Headphones false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -32.0625 5.31250095 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.98698763e-006 0.0434064046 -1.98698763e-006 2 1 1 1.60000002 1 2 2 http://www.watrbx.wtf/asset/?id=1051545 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=1051546 1 1 1 Pants http://www.watrbx.wtf/asset/?id=1804738 0 0.800000012 0 1 0 0 0 1 0 0 0 1 Bandana false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -32.0625 4.81250095 -29.5625 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.98698763e-006 0.0434064046 -1.98698763e-006 0 1 1 1 1 2 2 http://www.watrbx.wtf/asset/?id=20637493 5 Mesh 0 0 0 1 0.899999976 1 http://www.watrbx.wtf/asset/?id=20637003 1 1 1 0.100000001 0.400000006 -0.200000003 1 0 0 0 1 0 0 0 1 MessyHairBlue false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -31.9624996 5.21250105 -29.7625008 -1 0 0 0 1 0 0 0 -1 false 0.5 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 true 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 -1.98698763e-006 0.0434064046 -1.98698763e-006 3 1 1.99999928 1.79999995 2.00000024 2 2 http://www.watrbx.wtf/asset/?id=76056263 5 Mesh 0 0 0 1 1 1 http://www.watrbx.wtf/asset/?id=76055088 1 1 1 Shirt http://www.watrbx.wtf/asset/?id=3417154 226 1003 1003 Body Colors 1003 1003 1003 StarterPack StarterGui true 0 10 1 Soundscape 1 CollectionService PhysicsService BadgeService Geometry RenderHooksService SocialService GamePassService 1000 Debris Instance Instance CookiesService Teleport Service true Players Instance Instance Selection true LoadingGui 4286611584 1 4278190080 4278190080 4290822336 100000 0 41.7332993 Lighting 4289967032 14:00:00 ChangeHistoryService