What do you want to achieve? Keep it simple and clear!
I wanna achieve my gameGUI load when player is added
What is the issue? Include screenshots / videos if possible!
Issue is - im getting a error without any output error, didn’t get a problem
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)
Thedagz
(Dagz)
November 12, 2021, 5:33pm
#2
What the parent of the local script?
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
Thedagz
(Dagz)
November 12, 2021, 5:35pm
#5
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)
Thedagz
(Dagz)
November 12, 2021, 5:36pm
#7
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)
Thedagz
(Dagz)
November 12, 2021, 5:36pm
#10
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.