#Player mouse locked in the GUI

1 messages · Page 1 of 1 (latest)

lyric lance
#

The player mouse get locked after the BillBoardGui gets enabled:

Lua(u)
local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local Event = game.ReplicatedStorage:WaitForChild("EnterPc")

Event.OnClientEvent:Connect(function()
local gui = player:WaitForChild("PlayerGui"):WaitForChild("PcGui")

player.CameraMode = Enum.CameraMode.Classic

task.wait(0.5)
gui.Enabled = true

end)

frosty egret
#

in what way does it get locked

lyric lance
#

The mouse can't move, and it is locked in the middle of the screen

#

But the properties of the player "says" that the camera mode is classic

#

Detail: The player "born" with camera in first person.

frosty egret
#

ye idk

lyric lance
#

I realized how to solve it

#

How can I close this?