So, I made a new camera but it will not zoom in and out when i scroll/ press I / O. Does any one know what I am missing here?
I am probably just stupid and it is a easy fix. I honestly don’t know.
To be honest it’s not the players camera so you would have to change that
What do you mean? I Have been looking for a week now.
Well it’s not their camera so you would have to find a way to set it to their camera
It’s the servers camera
Are you saying I would have to make a entire new camera?
No I was saying that you have to set that camera to the players camera
Can you give me an example. I am kind of new to studio. I also have never messed with the camera before.
Do you want to set the new camera to the players camera
I am trying to fix it, it wont zoom in or out, when scrolling in/out, or pressing o/i.
Did you delete the old camera?
Yes, I deleted the old camera and inserted a new one.
get the old one by making a new game basically copy and paste and delete that new camera you got there
Alright. I will let you know if it works or not. Thanks for the help!
Still can’t zoom in. Do you know what the problem is?
Im pretty sure you should just revert to the time where before you deleted the camera because I have no solutions beyond that
How come you made a new camera? Try just reloading the game, I think a new camera should be there automatically.
The camera you want to modify, belongs to the client.
To manipulate the client’s camera, you will have to retrieve its camera first. This should all be done locally in a localscript.
local ws = game:GetService("Workspace")
local camera = ws.CurrentCamera
wait(1)
--turn the camera into a custom position:
if camera.CameraType ~= Enum.CameraType.Scriptable then
camera.CameraType = Enum.CameraType.Scriptable
--set the camera cframe to the location you want, you can use a part for this
camera.CFrame = ws.MyDesiredCameraPosition.CFrame
end
if you want to set the camera back to the player you can do the following:
if camera.CameraType ~= Enum.CameraType.Custom then
camera.CameraType = Enum.CameraType.Custom
end
Would this fix the zooming in and out bug?
Have you already written code to handle the “zoom”?