Here is my script attempting to remove all Core GUIs:
if game:FindService("StarterGui")then --If game finds service StartGui then
game:GetService("StarterGui"):SetCoreGuiEnabled("All",false) --Sets PlayerList into disabled mode
end --The end for the if statement
Please leave a reply

4 comments
I tried this way, and it is still not working for me. I tried putting it into my if statement and after that just straight up putting that line of code. Any idea why?
Just don't use the if statement. Just use this one line of code because the if statement isn't needed.
Make sure you're using this in a LocalScript, preferrably inside the StarterGui.
I already mentioned that in my answer.