How to Make a Controllable Camera: Difference between revisions

From Goodblox Wiki
Jump to navigationJump to search
(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...")
 
(No difference)

Latest revision as of 17:17, 22 June 2020

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