Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

My gui isn't showing up, though I am enabling it right now?

Asked by 5 years ago

I have a local script that's supposed to make this visible, but it isn't working

local gui = game.StarterGui.ScreenGui
wait(20)
gui.Enabled = true

1 answer

Log in to vote
0
Answered by 5 years ago

This is happening because everything in startergui replicates to the player's gui, and it replicates every time the player spawns in, this is the way to do it

local gui = game.Players.LocalPlayer.PlayerGui:WaitForChild("ScreenGui")
wait(20)
gui.Enabled = true
0
Thx TheHappy4Life 28 — 5y
0
true HomieFirePGN 137 — 5y
Ad

Answer this question