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

Camera on the front face of a block?

Now, I want to make a game where the camera never moves, and the front face of a certain block is the camera. What I want is where the camera is the face of a particular block, that face I want to be is the front of the block. Sorry, I had not known, as I am still a bit new to lua code.

1 comment

0

Sorry dude, this isn't a request site, you should learn the key-basic aspects of lua scripting before diving into advanced complexities!

1 answer

Hey there, this is quite easy to do using Camera Manipulation

This is advanced for some people but I'll make it as simple as possible for you!

MAKE A PART CALLED "CameraPart" IN WORKSPACE

LOCALSCRIPT IN STARTERGUI:

local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Camera = workspace.CurrentCamera

repeat wait()
    Camera.CameraType = Enum.CameraType.Scriptable
until Camera.CameraType == Enum.CameraType.Scriptable
Camera.CFrame = workspace.CameraPart.CFrame

vvv Don't read below or it will complicate you (additional help) vvv Remember, the camera part (workspace.CameraPart) must be called CameraPart or otherwise the script above won't work, and as addition, it will only manipulate the front of the part and not any other sides.

Have a nice day!

1 comment

0

Also please mark as solved if this worked/helped!

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