Changing the Camera For an FPS game

So basically im making an FPS shooter, and i made a custom rig which is quite tall and made a script where it Fixes the camera height and this is the result :
image
Seems normal at first, but when i tried zooming in :


The camera is glitching and it gives a weird effect, I dont know why its happening since this really never happened before.

The script i used is a local script along with 4 line of codes :

local Camera = workspace.CurrentCamera
local CameraPart = script.Parent:FindFirstChild("CameraPlacement")

Camera.CameraSubject = CameraPart

If anyone has a solution to this, it would be helpful.

2 Likes

I can’t tell from the second screenshot what the issue is. Could you explain in a bit more detail?

I’ll try and record the glitch, be right back.

1 Like


Not the best quality

[Edit : this one is without the script, but even tho it doesnt use the script the same thing happens]

Ehhh update, the FPS arms scripts is the issue so i fixed it

1 Like

It’s probably from the gun script. It likely checks where the mouse is pointing in 3D to aim the gun and arms and stuff. Problem is (probably) that when the arms move down in front of the mouse cursor, the new aim point in 3D becomes some point on the arms themselves. It’s not correctly ignoring the arms. You’ll have to fix the gun script to ignore the player’s character.

EDIT: Lol I was too slow

3 Likes

Thanks for the reply tho! appreciate it

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.