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

The GUI is not appearing on specified player entry?

Asked by 9 years ago

I had set up a script to make it so when a player joins that a GUI would appear on their screen. However it does not seem to work. And I am trying to figure out whether or not I missed something or encountered an Error.

01print ("Begining player loading sequence")
02BB = "BrotherBerzerk"
03GUI = game.ServerStorage.BB2
04Clone = GUI:clone()
05 
06 
07function newPlayer(player)
08                if player.Name == BB then
09wait(5)
10        Clone.Parent = player.PlayerGui
11 
12                wait(5)
13                player.PlayerGui.SystemPannel:remove()
14        end
15                print("Complete")
16end
17game.Players.ChildAdded:connect(newPlayer)

Any help would be most appreciated, and an explanation if possible. Ideas?

0
use playeradded. not childadded. seriously guys unmiss 337 — 9y
0
Also, use :Destroy() instead of :remove() Validark 1580 — 9y
0
Oh thanks, I was scratching my head there for a while. BrotherBerzerk 17 — 9y

Answer this question