How To Show A GUI Only On PC(Roblox Studio)

preview_player
Показать описание
In this video, I'm teaching you how to Show a GUI only on PC.

Script
-------------------------
uis = game:GetService("UserInputService")

PCK = uis.KeyboardEnabled

PCM = uis.MouseEnabled

if PCK then
script.Parent.Visible = true

elseif PCM then

script.Parent.Visible = true

end
-------------------------
Script Link
Рекомендации по теме
Комментарии
Автор

Use this script it works 100%.

local ui = script.Parent

-- Function to check if the player is using a PC
local function isPC()
local userInputService =
return and not
end

-- Hide the frame for non-PC platforms
if not isPC() then
ui.Visible = false
end

LaxmisudhaB
Автор

if its not working for you, use this i added a line of code to it that makes it work | SCRIPT:

uis =

PCK = uis.KeyboardEnabled

PCM = uis.MouseEnabled


if PCK then
script.Parent.Visible = true

elseif PCM then

script.Parent.Visible = true
else
script.Parent.Visible = false

end

TG_
Автор

like the healy in the background booga booga on top

BrobroBrubru
Автор

TYSM YOUR THE BEST MAN U DESERVE UHMM MAYBE 829K SUBSCRIBER LOL

a_rhysmikhailm.asugui
Автор

Ima need this for my macintosh game for the notepad

Jacobthehighwayfan
Автор

There is a problem in the script, Also if everyone thinks its outdated its not here is the right script:

uis =

PCK = uis.KeyboardEnabled

PCM = uis.MouseEnabled


if PCK then
script.Parent.Visible = true

elseif PCM then

script.Parent.Visible = false

end

themoonshowofficial
Автор

I need help, it still appears on ipad.

mamdushi
Автор

I think this script is outdated. I have tried and did all the steps and it doesn't work. I still appreciate you making this tutorial tho!

BlinqStar