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

Do i need to update my camera every time the brick moves? Is there another way (I'm using a tween)

Asked by 4 years ago
Edited 4 years ago

I have a shop camera and I want it to move when you click the button. But the thing is that usually, the camera doesn't follow the brick (you can see the brick that the camera is assigned to moves away) It's really annoying to make a camera updater-script, how can I make this in another way?

btw I assigned the camera to the brick like this:

local cam = workspace.Camera
local Shop_cam = workspace.Shop.Shop_cam

cam.CameraType = Enum.CameraType.Scriptable

repeat wait(0.01) until
cam.CameraType == Enum.CameraType.Scriptable
cam.CFrame =  Shop_cam.CFrame

Thanks in advance!

Answer this question