Okay, so I'm trying to disable the whole HUD for every player so the HUD doesn't cover the GUI I'm doing. The script I did works in the studio but doesn't work when I publish the game and join. This script is located in StarterGui.
local UserInputService = game:GetService("UserInputService") UserInputService.MouseIconEnabled = false local StarterGui = game:GetService('StarterGui') StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false) wait(9) local StarterGui = game:GetService('StarterGui') StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, true) wait(0.16) local StarterGui = game:GetService('StarterGui') StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, true) wait(1) local StarterGui = game:GetService('StarterGui') StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true) wait(0.22) local StarterGui = game:GetService('StarterGui') StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true) local UserInputService = game:GetService("UserInputService") UserInputService.MouseIconEnabled = true
To solve this issue, I turned the script from a Script to a LocalScript. Pianotech from two years ago wasn't that smart.