Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How do you make a camera move when you click a GUI? [closed]

Asked by 10 years ago

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.

Closed as Not Constructive by evaera

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 10 years ago

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.

Ad