Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to lock a camera in a position?

Asked by
rokedev 71
6 years ago

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

Log in to vote
0
Answered by
Echtic 128
6 years ago

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

Ad

Answer this question