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

Make camera unrotateable by the player?

Asked by
Aimarekin 345 Moderation Voter
6 years ago
Edited 6 years ago

Hi. i wondered if there's a way to make the camera can't be rotated by the player, but to still can move or be rotated by the system by itself. I mean, for example, set the camera to "Watch", but so that the player can't rotate the camera with the mouse or keyboard (Or gamepad, whatever). Yeah, I know I can use "Scriptable" but I want the camera to be on "Watch" type, not "Scriptable". I looked for it on Google, but i couldn't find info about it. I would appreciate any help!

Thanks.

0
I mean I guess you could try settings the CameraType to "Scriptable" and use a RenderStepped function to Interpolate the camera to a custom position behind the character and keep the focus on them. NodaDuck45 15 — 6y
0
Ok, I'll guess I can search for it on the wiki. Aimarekin 345 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

Not sure if this is correct, will check tomorrow - wrote this on my smartphone device.

local player = game.Players.LocalPlayer
local camera = player.Camera

camera.CameraType = Enum.CameraType.Watch
0
Um thanks, but I wasn't searching for that. I know how to change the camera type, but what I'm looking for is that the player can't rotate the camera with the mouse. Aimarekin 345 — 6y
0
Um thanks, but I wasn't searching for that. I know how to change the camera type, but what I'm looking for is that the player can't rotate the camera with the mouse. Aimarekin 345 — 6y
0
Ah, okay. I think I got you, hold on. StoleYourClothes 105 — 6y
Ad

Answer this question