How to Make a Controllable Camera

From Goodblox Wiki
Revision as of 17:17, 22 June 2020 by Pizzaboxer (talk | contribs) (Created page with "__TOC__ == How to make == Find a brick, put a script in it, copy and paste this into the script: <pre> local cam = game.Workspace.CurrentCamera local isfollowing = false fu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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