I have local script in replicated first and I’m trying to make it connect it to starter gui/ player gui. I’m trying to make it so when a player joins a game it will make the loading frame gui and after a certain amount of time it will put visible to false. My problem is I can’t find a way to connect replicated first to starter gui.
Help would be great.
Couldn’t you just call the LocalPlayer
’s Gui? Also if you’re referring about the StarterGui
, that’s only replicated across the server-side
local Player = game.Players.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")
Would this be correct?
local Player = game.Players.LocalPlayer
local PlayerGui = Player:WaitForChild(“PlayerGui”)
wait (5)
script.PlayerGui.Frame.Visible = false
You’re actually referencing the PlayerGui
as a variable, so you don’t need to implement the script
part of it
Oh ok great thanks for your help.
So like this? Sorry for wasting your time I’m not new but it’s been a long time since I scripted and either ways I am pretty bad.
local Player = game.Players.LocalPlayer
local PlayerGui = Player:WaitForChild(“PlayerGui”)
wait (5)
script.Frame.Visible = false
Ah you’re fine don’t worry about it
That last line (Talking about objects here) should belong in the StarterGui
, and you can change that to:
PlayerGui.PlayerGui.Frame.Visible = false
Ohhh thanks for your help sorry for wasting your time
WHY IS THAT EMOJI SO BIG
Again you’re completely fine! Just make sure to parent your objects the correct way
LOL thanks for your help!_______________30 characthers