Why do I get this error?

So I get this error

  21:34:00.437  Attempt to connect failed: Passed value is not a function  -  Studio

the script is

local Event = game.ReplicatedStorage:WaitForChild("SetSubject")

function onEvent_SetSubject(Humanoid)
	workspace.CurrentCamera.CameraSubject = Humanoid
end

Event.OnClientEvent:Connect(Event)

You are passing the RemoteEvent instance itself to :Connect. Perhaps you meant to pass the function onEvent_SetSubject instead?

2 Likes

let me see and test it real quick then.

Thanks for helping man! :smiley: love ya man.

1 Like

Yeah, I can already see the problem.