Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.G_osty
- local p = plr.Character
- local Torso = p:findFirstChild("Torso")
- local Head = p:findFirstChild("Head")
- local RightArm = p:findFirstChild("Right Arm")
- local LeftArm = p:findFirstChild("Left Arm")
- local RightLeg = p:findFirstChild("Right Leg")
- local LeftLeg = p:findFirstChild("Left Leg")
- local Root = p:FindFirstChild("HumanoidRootPart")
- local Neck = Instance.new("Weld",Torso)
- Neck.Part0 = Torso
- Neck.Part1 = Head
- local RightShoulder = Instance.new("Weld", RightArm)
- RightShoulder.Part0 = Torso
- RightShoulder.Part1 = RightArm
- local LeftShoulder = Instance.new("Weld", LeftArm)
- LeftShoulder.Part0 = Torso
- LeftShoulder.Part1 = LeftArm
- local RootWeld = Instance.new("Weld",Torso)
- RootWeld.Part0 = Root
- RootWeld.Part1 = Torso
- local RightHip = Instance.new("Weld", Torso)
- RightHip.Part0 = Torso
- RightHip.Part1 = RightLeg
- local LeftHip = Instance.new("Weld", Torso)
- LeftHip.Part0 = Torso
- LeftHip.Part1 = LeftLeg
- Neck.C0 = CFrame.new(0,1.5,0)
- RightShoulder.C0 = CFrame.new(1.5,0,0)
- LeftShoulder.C0 = CFrame.new(-1.5,0,0)
- RightHip.C0 = CFrame.new(0.5,-2,0)
- LeftHip.C0 = CFrame.new(-0.5,-2,0)
- local Sine = 0
- --math.rad(4*math.cos(Sine/40)) i put this here for copying
- --animation part:
- function Idle()
- Sine = Sine + 1
- Neck.C0 = Neck.C0:Lerp(CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(4*math.cos(Sine/40)),0,0),1)
- end
- game:GetService("RunService").Heartbeat:Connect(function()
- Idle()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement