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?

3 comments

0

use playeradded. not childadded. seriously guys

0

Also, use :Destroy() instead of :remove()

0

Oh thanks, I was scratching my head there for a while.