Anders Lindén
Anders Lindén

Reputation: 7323

Setting CameraType to Scriptable does not fix camera to a location

How do I make the camera in a roblox game fixed?

It seems like if I add this LocalScript

workspace treeview highlighting the LocalScript

that reads

local cam = workspace.CurrentCamera 

cam.CameraType = Enum.CameraType.Scriptable

then, the effects are overridden by some script, because when I move the player, the camera moves.

Upvotes: 0

Views: 1196

Answers (1)

SetAsync
SetAsync

Reputation: 72

Firstly, if you do this before the character loads in then it messes up. This is because character spawning includes setting the CurrentCamera property to the default value. You should avoid this by using a repeat until workspace.CurrentCamera.CameraType ~= Enum... then set it to your desired value.

(Basically): Your doing it before the character loads, the character loads and sets it to default value.

Upvotes: 1

Related Questions