You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? I want to make the camera immovable while being in first person
What is the issue? I can still move the camera
What solutions have you tried so far? The only helpful thread wasn’t answered so i made one
my code:
game:GetService("ReplicatedStorage"):WaitForChild("PurpleHollow").p.OnClientEvent:Connect(function(p)
workspace.Camera.CameraType = Enum.CameraType.Fixed
workspace.Camera.CameraSubject = p -- P is the part that i created on the server which will act as the angle of the camera
game.Players.LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson
end)
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.
Okay, i found the mistake i guess. CameraSubject is a part that camera is locked to. Originally CameraSubject is player, so you can rotate it around the player. If you set camera subject as a part, you will be able to rotate your camera around the part only.