Controller Camera Manipulation?

Hello. sorry if this topic setup isn’t the best I’m fairly new to Forums

Though despite that my question begs to differ.
**Is there a way to manage the roblox built-in controller camera? **

I’m working with a “RPG” so far as of what I call it


Here is the computer’s camera compared to the controller camera

If anyone has found a solution, please note this and thank you :folded_hands:

One thing I could think of if it hasn’t been applied already is trying to find a way to affix the camera using a Part as the camera and then using a script to detect the right mouse button or controller stick input, you can change the camera as normal. I haven’t messed with controller scripting yet, but from my research you can just use UserInputService to detect movement with the right stick. Here’s the most basic way you could make it:

-- need this for if player wants to move cam
local UIS = game:GetService("UserInputService") 

-- the camera
local plr = game.Players.LocalPlayer
local playerCam = game.Workspace.CurrentCamera
local fixedCam = plr.fixedCam --[[here I'm assuming I made a part parented to
the HumanoidRootPart with a weld constraint so the camera moves with the player]]
playerCam.CameraType = Enum.CameraType.Scriptable
playerCam.CFrame = fixedCam.CFrame

UIS.InputBegan:Connect(function(inputGiven)
    local keycode = inputGiven.Enum.KeyCode -- made for brevity
    if keycode == "MouseRightButton" or keycode == "Thumbstick2" then
        -- move the fixed camera position to that direction
        -- you'd do this by trying to track the mouse direction/stick direction
    end
end)

That may be slightly wrong and if you need more guidance let me know. There could possibly be an easier way which I haven’t found or something which I’ve overlooked but hopefully this gets you started!

I’d refer to this as well for limiting camera rotation to get some inspiration as bonus suggestion!!

2 Likes

thank you for trying to find a solution :folded_hands: sorry for the late reply

i think for now i’ll just find a way to manage with roblox’s built in camera ( for the controller part )

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.