game is first person and So I made script that will make mousebehavior default when shop is opened so player can move cursor freely but game does not even detect if that ScreenGui is enabled...
workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable local UserInputService = game:GetService("UserInputService") if script.Parent.ToolShop.Enabled == true then print("HI") UserInputService.MouseBehavior = Enum.MouseBehavior.Default end if script.Parent.ToolShop.Enabled == false and script.Parent.RealMenu.Enabled == false then UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter end
it does not even print "HI"