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

How do i make a block like a camera that shows a part of the map without interaction?

Asked by 5 years ago

this is filler cause my full ques is up there

1 answer

Log in to vote
0
Answered by
Kyokamii 133
5 years ago

I think what you'd want to do is have a local script inside the player (PlayerGui, StarterPack or StarterPlayerScripts, StarterCharacterScripts) that would change your camera to scriptable and have it's CFrame be the same as that of the part. Here's a quick code I wrote as an example:

local part = workspace.CameraPart
local C = workspace.CurrentCamera
C.CameraType = "Scriptable"
C.CFrame = part.CFrame

Place the local script in StarterCharacterScripts and it should place the camera where the part is.

Putting the script in StarterCharacterScripts will make your code run everytime the player respawns.

Next time you should do a bit of research before asking a question on scriptinghelpers, because asking questions with no code can ruin your rep.

Ad

Answer this question