Problem with Loading Script

  1. What do you want to achieve? Keep it simple and clear!
    I wanna achieve my gameGUI load when player is added

  2. What is the issue? Include screenshots / videos if possible!
    Issue is - im getting a error without any output error, didn’t get a problem

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I tryed to fix getting services & local player

wait(5)
local Players = game:GetService("Players")
local LP = Players.LocalPlayer
local GUIService = LP.PlayerGui
local GameGUI = GUIService:WaitForChild("GameGUI")

Players.PlayerAdded:Connect(function()
	GameGUI.Enabled = true
end)

What the parent of the local script?

image
just like i think that’s stupid, idk why i put that here, amma put it in workspace, i’m stupid lol

Hm even if i put it in workspace, nothing changed

Do not put it in workspace, local scripts do not execute in workspace

local Players = game:GetService("Players")
local LP = Players.LocalPlayer
local PlayerGui = LP:WaitForChild("PlayerGui")
local GameGUI = PlayerGui:WaitForChild("GameGUI")

GameGUI.Enabled = true

try this code

Uhhh where do i put it? (30 letterssss)

In your original spot inside of the gui then the gui is inside of the startergui

No i need to do that when player loads, so this won’t make GUI glitch

Okay (30 letterssssssssssssssssssss)

Local scripts execute right after the player loads

hmm okay amma try that, thanks

Yeah now it’s working thanks, solved

local LP = game.Players.LocalPlayer
local GameGUI = LP:WaitForChild("PlayerGui"):WaitForChild("GameGUI")
GameGUI.Enabled = true

More optimised.