How to Make a Controllable Camera

From Goodblox Wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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