-
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
-
What is the issue? Include screenshots / videos if possible!
something is happening to camera, it should be following the menucam
-
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
end
game:GetService("RunService").RenderStepped:Connect(function()
if script.Parent.Enabled == true then
updateCamera() -- Sticks player camera to the menu cam till player presses play
end
end)
wait(0.4)
script.Parent.Frame.MenuBackground.PlayButton.MouseButton1Click:Connect(function()
for i = 0, 44, 1 do
blur.Size = blur.Size + i
wait(0.0045)
end
wait(3)
camera.CameraType = Enum.CameraType.Custom
player.Character.HumanoidRootPart.CFrame = game.Workspace.Map.MenuCam.CFrame
blur.Size = 0
game.ReplicatedStorage.WeaponGiver:FireServer(player)
script.Disabled = true
end)
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