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.

print ("Begining player loading sequence")
BB = "BrotherBerzerk"
GUI = game.ServerStorage.BB2
Clone = GUI:clone()


function newPlayer(player)
                if player.Name == BB then
wait(5)
        Clone.Parent = player.PlayerGui

                wait(5)
                player.PlayerGui.SystemPannel:remove()
        end
                print("Complete")
end
game.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