Nothing wrong comes out in the output, but it still doesn't work. Just like some other time I did something in studio and it worked but in game-play it didn't. but this script doesn't work in studio nor game-play.


currentCam = game.Workspace.CurrentCamera

function onClicked()
	currentCam.CameraSubject = game.Workspace.Cam1
	currentCam.CameraType = "Attach"
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)

2 comments

1

Is this in a Script or a LocalScript?

0

LocalScript