@@ -292,10 +292,10 @@ return function(Config)
292292 IsPC = nil
293293 end
294294
295- local OpenButtonContainer
296- local OpenButton
297- local OpenButtonIcon
298- local Glow
295+ local OpenButtonContainer = nil
296+ local OpenButton = nil
297+ local OpenButtonIcon = nil
298+ local Glow = nil
299299
300300 if not IsPC then
301301 OpenButtonIcon = New (" ImageLabel" , {
@@ -408,7 +408,7 @@ return function(Config)
408408 })
409409
410410 RunService .RenderStepped :Connect (function (deltaTime )
411- if Window .UIElements .Main and OpenButtonContainer then
411+ if Window .UIElements .Main and OpenButtonContainer and OpenButtonContainer . Parent ~= nil then
412412 if uiGradient then
413413 uiGradient .Rotation = (uiGradient .Rotation + 1 ) % 360
414414 end
@@ -723,7 +723,7 @@ return function(Config)
723723 end
724724 end )
725725
726- local NotifiedText = IsPC and " Press " .. Window .Name .. " to open the Window" or " Click the Button to open the Window"
726+ local NotifiedText = IsPC and " Press " .. Window .ToggleKey . Name .. " to open the Window" or " Click the Button to open the Window"
727727
728728 if not Notified then
729729 Notified = not Notified
@@ -765,10 +765,17 @@ return function(Config)
765765 local OpenButtonModule = {
766766 Title = OpenButtonConfig .Title or Window .Title ,
767767 Icon = OpenButtonConfig .Icon or Window .Icon ,
768+ OnlyMobile = OpenButtonConfig .OnlyMobile or true ,
768769 Color = OpenButtonConfig .Color
769770 or ColorSequence .new (Color3 .fromHex (" 40c9ff" ), Color3 .fromHex (" e81cff" )),
770771 }
771772
773+ if OpenButtonModule .OnlyMobile then
774+ IsPC = UserInputService .KeyboardEnabled or not UserInputService .TouchEnabled
775+ else
776+ IsPC = false
777+ end
778+
772779 if OpenButtonTitle then
773780 OpenButtonTitle .Text = OpenButtonModule .Title
774781 end
0 commit comments