This is probably a simple fix although for some reason this script is no changing the properties of a ScreenGui that is located in the PlayerGui, of course it is placed in the PlayerGui when the player loads in from StarterGui:
local Player = game:GetService('Players').LocalPlayer:WaitForChild('PlayerGui')
if script.Disabled == false then
Player.Begin_Match_Countdown.Enabled = true
Player.Begin_Match_Countdown.Integer_Txt.Config.Disabled = false
wait(6)
script.Disabled = true
end
The two instances it is trying to change is a script and the main ScreenGui itself (Making it Visible) although nothing changes. I also get no output errors so I’m completely stuck on what to do from here if any one could help that would be great.
Try this and let me know what prints/doesn’t. To check which sections of the code may not be working.
print("Print1 Worked!")
local Player = game:GetService('Players').LocalPlayer:WaitForChild('PlayerGui')
print("Print2Worked!")
if script.Disabled == false then
Player.Begin_Match_Countdown.Enabled = true
Player.Begin_Match_Countdown.Integer_Txt.Config.Disabled = false
print("Print3 Worked!")
wait(6)
script.Disabled = true
end
I’m not getting anything through Output. Just a question in case it can all be resolved by this; can the local script be located in the Workspace? Or does it have to be a descendent of another Service?
Okay, so I moved the Local Script into Replicated First and altered the code so it gets enabled when it needs to be although I am still not getting any sort of UI on my screen, do you have a Service in particular that the script should be placed under if it is getting enabled at a later point in the game? I did not use StarterGui because I know it will be replicated into the Player Gui, I will try it now.