|
| 14 Jul 2015 02:05 PM |
Hello, I put this local script in my game, but it's not doing what it's intended for, which is disabling the Health Bar, Backpack, Player List, and Chat. Can someone please help me solve this problem?
Thanks, Pikachu84639
local StarterGui = game:GetService('StarterGui') StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
local UIS = game:GetService('UserInputService') UIS.ModalEnabled = true |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2015 02:12 PM |
I just tested it and it worked. Is the script located in StarterPack or StarterGui?
try this if it is and doesnt work
wait(1) local StarterGui = game:GetService('StarterGui') StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
local UIS = game:GetService('UserInputService') UIS.ModalEnabled = true
Im a scripter for Team Theorem. You can trust what I say :) |
|
|
| Report Abuse |
|
|
louiskk
|
  |
| Joined: 31 Dec 2008 |
| Total Posts: 228 |
|
|
| 14 Jul 2015 02:13 PM |
| Local scripts are client side, put it inside playergui and it will replicate to the client, otherwise it's not going to run properly. |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2015 02:20 PM |
| Thank you for replying, I followed both of your suggestions and the script now works. Thank you! |
|
|
| Report Abuse |
|
|