Log in to vote

Why is this print that I made isn't showing up in my output on a local script?

Asked by 3 days ago

(here we go again with a wacky title to avoid the spam question)

Whenever I equip a tool, I have a print in it and it's not showing up in my output. The UI shows, but the XBox one doesn't when I simulate the XBox screen on roblox studio. If this is correct, could it be that I need to be on xbox to view the UI?

local Tool = script.Parent
local PlayerGUI = game.Players.LocalPlayer:WaitForChild('PlayerGui')
local UserInputService = game:GetService("UserInputService")
local GS = game:GetService("GuiService")

function onEquipped()
    if (UserInputService.KeyboardEnabled) then -- PC
        PlayerGUI.StatusUI.PCUI2.Visible = true
    elseif UserInputService.TouchEnabled then -- mobile
        print("Imagine Mobile")
        PlayerGUI.StatusUI.MobileUI4.Visible = true
    elseif GS:IsTenFootInterface() then -- Xbox
        print("Imagine Xbox")
        PlayerGUI.StatusUI.XBOXUI2.Visible = true
UserInputService.GamepadEnabled. No idea why you're relying on the size of the user's GUI setup. DeceptiveCaster 3513 — 3d
Still new to doing certain UI for certain devices. TheBuliderMC 80 — 2d

Answer this question