Camera manipulation looks through map. It was working fine yesterday and broke today for some reason

  1. What do you want to achieve? Keep it simple and clear!
    I want the camera to stop looking through the map, but most of the times it looks through the map

  2. What is the issue? Include screenshots / videos if possible!
    something is happening to camera, it should be following the menucam

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Haven’t found any topic related to this so i guess i am the only one facing this

local player =  game.Players.LocalPlayer
local charachter = player.CharacterAdded
local Mouse = player:GetMouse()
local camera = game.Workspace.CurrentCamera

local defaultCframe = camera.CFrame
local view = 150

local blur = game.Lighting.Blur
blur.Size = 12

function updateCamera()
	camera.CFrame= game.Workspace.Map.MenuCam.CFrame

	if script.Parent.Enabled == true  then
		updateCamera() -- Sticks player camera to the menu cam till player presses play

	for i = 0, 44, 1 do 
		blur.Size = blur.Size + i
	camera.CameraType = Enum.CameraType.Custom
	player.Character.HumanoidRootPart.CFrame = game.Workspace.Map.MenuCam.CFrame
	blur.Size = 0
	script.Disabled = true

Maybe the camera part is close to the wall and the view is a bit large so it passes through the wall.

Tried to put the camera in the middle of map but its still same

Also there are multple rooms after the room in video, if it was clipping through that room it should show other rooms but it goes completely through map. I reverted version back to yesterday’s and script and everything is same and it works fine there. Idk why its like this in newer version. If i revert back to that working version, so much of my work and scripts will be reverted too

Is there a script that moves the camera part?

You can try copying the code that handles the camera in the old version and paste it on the new version so that the other new codes won’t be changed

tried that its still like that, even copied map’s position and cams position but it doesnt work

nope, only the script i gave above. I do have viewmodel script which depends on camera so tried to disable that too but its still like that

Can you send me the game file?

i can do that in discord i guess privately if you have it

Sure. My discord: R3D_W4S_H3R3#9639

one min, i tried to stop the rotation of menu cam, cam doesnt glitch if its still at one place

You could just do that and mark your reply as the solution. But if you want it to be rotating, I can help. Good luck with your game!

1 Like

i guess i’ll keep it still for now just so i can work further without wasting much time on this and fix this once game is finished. Thanks for your time and help

1 Like