Show mouse cursor while scoreboard is open

This commit is contained in:
listik committed 2026-11-29 18:20:13 +05:00
1 parent a85391509d
commit ac3073fb49
3 files changed
+6 -2

No files matched your search

+4 -2
View File
@@ -109,9 +109,11 @@ RunService:BindToRenderStep(renderName, Enum.RenderPriority.Camera.Value + 2, fu
local menu = playerGui:FindFirstChild("MainMenu") :: ScreenGui?
local tunerShown = tuner ~= nil and tuner.Enabled
local menuShown = menu ~= nil and menu.Enabled
local resultsGui = playerGui:FindFirstChild("ArenaResults")
local scoreboardShown = resultsGui ~= nil and resultsGui:GetAttribute("LiveScoreboardOpen") == true
local inArena = player:GetAttribute("InArena") == true
UserInputService.MouseIconEnabled = not inArena or tunerShown or menuShown
if not inArena and not UserInputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton2) then
UserInputService.MouseIconEnabled = not inArena or tunerShown or menuShown or scoreboardShown
if scoreboardShown or (not inArena and not UserInputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton2)) then
UserInputService.MouseBehavior = Enum.MouseBehavior.Default
end
local character = player.Character