So, I would like to Attach the Camera to a Part. I've gotten a few suggestions and I have no idea where to begin anymore and the Roblox Wiki isn't helping me. How do I do this?
What I have so far:
function player()
repeat wait() until game.Workspace.CurrentCamera
local cam = game.Workspace.CurrentCamera
cam.CameraSubject = game.Workspace.Cheese
cam.CameraType = ("Attach")
cam.FieldOfView = 50
end
game.Players.PlayerAdded:connect(player)
It is a LocalScript in StarterGui, but now I know that the PlayerAdded event does not work in a LocalScript. What do I do??

1 comment
Casual comment, forgot to mention the Part I want to attach it to is called Cheese