I re-wrote your code, you must’ve accidentally ended a statement with a ‘}’ instead of a ‘)’.
local TweenService = game:GetService("TweenService")
local info = TweenInfo.new(0.3, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
local player = game:GetService("Players")
local character = player.CharacterAdded:Wait()
local HumanoidRootPart = character:WaitForChild("HumanoidRootPart")
local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Attach
camera.CameraSubject = HumanoidRootPart
local function cameraFollow()
local cameraFollow = TweenService:Create(camera, info, {
CFrame = HumanoidRootPart.CFrame * CFrame.new(0, 30, 10) * CFrame.Angles(math.rad(-60),0,0)
})
return cameraFollow
end