Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = nil
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- if v.Name == "G_osty" then
- plr = v
- end
- end
- 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 RootWeld = Instance.new("Weld",Torso)
- RootWeld.Part0 = Root
- RootWeld.Part1 = Torso
- Neck.C0 = CFrame.new(0,1.5,0)
- local Sine = 0
- function Example()
- Sine = Sine+1
- Neck.C0 = Neck.C0:Lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(4*math.cos(Sine/20)),math.rad(0),math.rad(0)),.15)
- if Sine>= 999999999610 then
- Sine = 0
- end
- end
- game:GetService("RunService").Heartbeat:Connect(Example)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement