Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.LocalPlayer
- local mouse = plr:GetMouse()
- local Character = plr.Character
- local Torso = Character:WaitForChild("Torso")
- local RightHip = Torso:WaitForChild("Right Hip")
- local LeftHip = Torso:WaitForChild("Left Hip")
- local RightLeg = Character:WaitForChild("Right Leg")
- local CFrameInterpolate=function(s,e,a,r,i,n,g)g,r=CFrame,{{s:toEulerAnglesXYZ()},{e:toEulerAnglesXYZ()}}for _=1,3 do i,n=r[1][_],r[2][_]r[1][_]=i+a*(n-i)end return(g.new(s.p:lerp(e.p,a))*g.Angles(unpack(r[1])))end
- mouse.KeyDown:connect(function(key)
- key:lower()
- if key == "f" then
- local mo = Instance.new("Motor6D", Torso)
- mo.Part0 = Torso
- mo.Part1 = RightLeg
- for i = 1,10,.1 do
- mo.C0 = CFrameInterpolate(mo.C0, CFrame.new(0,1,0) * CFrame.Angles(0,-1.5,0), .1)
- wait()
- end
- end
- end)
- --[[
- local lefthip = Instance.new("Motor6D", child.Torso)
- lefthip.Name = "Left Hip"
- lefthip.DesiredAngle = 0.086
- lefthip.MaxVelocity = 0.1
- lefthip.Part0 = child.Torso
- lefthip.Part1 = child["Left Leg"]--]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement