Topic: changeCurrentCamera help
So i'm trying to get the camera on my player to change when a certain key is pressed. I have 2 cameras set up on it, Camera0 and Camera1.
if isKeyPressed("C") then
changeCurrentCamera(Camera1)
end
I'm new to lua so i'm not sure why this code won't work.