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

can't move camera in first person?

Asked by 1 year ago

when i go in first person in studio, my mouse is unlocked and i can't move the camera even when im holding the right mouse button. i have been having this issue for weeks.

1 answer

Log in to vote
0
Answered by 1 year ago

This seems to be a common issue try this in StarterPlayerScripts as a local script I found this in the Devforum

local plr = game.Players.LocalPlayer
local plrGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local ScreenGui = Instance.new("ScreenGui", plrGui)
local TextButton = Instance.new("TextButton")
local UIS = game:GetService("UserInputService")

TextButton.BackgroundTransparency = 1
TextButton.Size = UDim2.new(0, 0, 0, 0)
TextButton.Text = " "
TextButton.Parent = ScreenGui

UIS.InputBegan:Connect(function(Input, IsTyping)
    if IsTyping then 
        return end
    if Input.KeyCode == Enum.KeyCode.V then
        TextButton.Modal = true
        task.wait()
    else
        TextButton.Modal = false
        task.wait()
    end
end)

Hope this helps!!

Ad

Answer this question