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

How do i make a camera have the ability to move around the camera like in studio?

Asked by 6 years ago

What I want to do is make a script that moves the camera like the user can do in studio. What i mean is the player has the ability to move, rotate, look anywhere with their camera.

My (unfinished*) code:

local player = game.Players.LocalPlayer
local Mouse = player:GetMouse()
local dafaultPosition = "-36.94, 13.6, -16.342"

Mouse.KeyDown:Connect(function(key)
    if key == "w" then
        local addPosition = 0
        addPosition = addPosition + 1
        script.SetCamToPosition.Value = "-36.94, 13.6, " ..addPosition.. ""
    end
end)

SetCamToPosition is a Vector3 Value that whenever it changes, it sets the part that i want the script to move to change the position. Like I said, I did not finish it, it's just a draft.

PLEASE DO NOT DELETE THIS QUESTION, IF YOU HAVE NO CLUE WHAT I MEAN, ITS THE CAMERA YOU USE TO BUILD IN STUDIO IS WHAT I WANT TO MAKE, AND I WILL ANSWER ANY QUESTIONS. PLEASE DO NOT ANSWER IN COMMENTS IF YOU HAVE CODE.

0
lol, im too lazy to post the legit answer here greatneil80 2647 — 6y
0
... Chez_Guy 67 — 6y

Answer this question