Attempt to call a cframe value?

Here’s the code:

	if camera and camera.CFrame then
		local cframe = camera.CFrame
		return cframe
	else
		return nil
	end
end

RF.OnClientInvoke = returnCamCframe()

I am not sure why this happens.
Error:

Try changing the camera to scriptable

1 Like

This is because it need to equal a function, so to fix this just take the 2 paranthesis at the end out :ok_hand:

3 Likes

OHH! Thank you so much! That fixed it!

1 Like