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.