Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to lock a camera in a position?

I'm attempting to make a type of conquest map for a medieval game, no clue how to make the camera locked in a position. I mean by making a sort of overhead view, with no actual player existing.

1 answer

✓ Accepted answer

Here you go, make sure the script is local and is located in the starter gui

wait()
local cam = workspace.CurrentCamera ----- gets your character's camera
local player = game.Players.LocalPlayer  ---- finds a player

	repeat wait() until player.Character ----- waiting until the character is found
	
	cam.CameraType = "Scriptable" ----- makes sure that the camera is changable
	
	cam.CFrame = workspace.Cam.CFrame --- workspace.Cam is the location of the camera brick, your camera will be facing the front surface of the brick

Hope this solves your problem

This discussion is preserved as it was. New answers, comments, and votes are closed.