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

4 comments
No
Is the script a LocalScript?
No, it isn't. I bet that's the problem.
It is!