I have a game with forced first person how would i allow a players mouse to move when in a GUI or in a purchase screen

yeah bassically i just want the player to be able to move their mouse but only in GUI’s or buy screens

unbind the mouse from the screen or something? most things are bound to a function making the mouse stuck in the center. or you could just use shortcuts like q, e, r, etc…
this is something that i’ve dreamed about doing once, but i still dont know how.

1 Like

make property “modal” on a button in your gui true

if anyone searches this up i found a sort of fix: when you press whatever key you choose you will be able to move your mouse using this script:

local Gui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local screenGUI = Instance.new("ScreenGui", Gui)
local button = Instance.new("TextButton")
local InputService = game:GetService("UserInputService")
button.Transparency = 1
button.Size = UDim2.new(0,0,0,0)
button.Parent = screenGUI


InputService.InputBegan:Connect(function(Key)
	if Key.KeyCode == Enum.KeyCode.T then --CHANGE YOUR KEY
		if button.Modal == true then
			button.Modal = false
		else
			button.Modal = true
		end
	end
end)

easyyyy
for easy acsess use this layout (the localscript is the script and make the text label "press [key] to move your mouse

yeah i found you can unlock it using the modal

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