Is there any way to make this script without using any part?

Hello! I wrote a script and i dont know, is there any way to make this script without using any part.

Its a simple smooth cam script its just tweens the campart.

My script;

local run = game:GetService("RunService")
workspace.Camera.CameraSubject = workspace:WaitForChild("CamPart")
workspace.Camera.CameraType = "Track"

local Speed = 0.1

run.RenderStepped:Connect(function()
	game:GetService('TweenService'):Create(
    workspace.CamPart,TweenInfo.new(Speed,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),
{Position = script.Parent.Head.Position}):Play() 
end)

Thanks!

1 Like

You could change the CameraType to Scriptable and change its CFrame to script.Parent.Head.CFrame.

1 Like

Oh, thank you so much! I hadn’t thought of that oof.