Problem with finding Part

I was making Tween camera system and I have some problem with finding the part I need to tween in to
can you help me find the problem where I need to fix please?

ModuleScript
function module:TweenCameraPos(Player,Point,Speed,Fov)
    local ReplicatedStorage = game:GetService("ReplicatedStorage")
    local Remote = ReplicatedStorage:WaitForChild("PlayerCamera")

    Remote:FireClient(Player,Point,Speed,Fov)
end
LocalScript
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Remote = ReplicatedStorage:WaitForChild("PlayerCamera")
local Tween = game:GetService("TweenService")

Remote.OnClientEvent:Connect(function(Player,Point,Speed,Fov)
local Cam = workspace.Camera
        Cam.CameraType = Enum.CameraType.Scriptable
         Cam.FieldOfView = 80

Tween:Create(Cam,TweenInfo.new(Speed),{CFrame = Point.CFrame}):Play()
end)
1 Like

Don’t put the Player as the first parameter in OnClientEvent, taht is only needed for OnServerEvent

Remote.OnClientEvent:Connect(function(Point,Speed,Fov)
1 Like