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

Trying to rotate the camera by using Vector3 not Cframe?

Asked by 6 years ago
Edited 6 years ago

I have a custom 3rd person camera script and I am trying to rotate the camera but I dont really know how id go about that.

Heres the script

function GuiOpened()
    if Player.PlayerGui.ScreenGui.Crafting.Enabled.Value == true then
        game.Players.LocalPlayer.Character.Humanoid.CameraOffset = Vector3.new(-5,1,0)
    end
end

game:GetService("UserInputService").InputBegan:Connect(OnKeyPress)

Player.PlayerGui.ScreenGui.Crafting.Enabled.Changed:Connect(GuiOpened)

There is more to it but that is just the stuff I think it important to this question.

I am trying to when that function runs also rotate the camera a certain way but I dont know how id go about doing this since I am using a vector3 and not a Cframe.

Anyone have any ideas?

0
Why dont u wanna use CFrame tho? Benjamin_pro1000 3 — 6y

Answer this question