Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you make a camera move when you click a GUI?

I wanted to make a lobby for my projects but I can't seem to figure out how to make the camera move when you click a gui.

1 answer

✓ Accepted answer

It's not easy to make camera angles. This is how to:

script.Parent.MouseButton1Click:connect(function()	
	script.Disabled = true
	local cam = workspace.CurrentCamera -- Get's camera
	cam.CameraType = "Scriptable"
	-- (Camera codes here)
	for i = 1, 100, 1 do
	-- (Camera codes here)
	wait()
	end
	cam.CameraType = "Custom"
	script.Disabled = false
end)

Make sure this is a local script!

For more help: Go to my youtube channel (Wesley1041roblox) for some camera, and other scripting guides.

This discussion is preserved as it was. New answers, comments, and votes are closed.