How to Make a Controllable Camera

From Goodblox Wiki
Jump to navigationJump to search

How to make

Find a brick, put a script in it, copy and paste this into the script:

local cam = game.Workspace.CurrentCamera
local isfollowing = false
function onTouched(hit)
	if hit.Parent:findFirstChild("Humanoid") ~= nil and isfollowing == false then
		game.Workspace.CurrentCamera.CameraType = Follow
        end
end	

See Also


Camera
Part
Scripting