So i have a figthing game with a gui class selection screen, the gui appears when a player connects but when a player dies, the gui wont appear again. How do I make it appear? My current code:
1 | Menu = script.Menu |
2 |
3 |
4 | game.Players.PlayerAdded:connect( function (player) |
5 | local MenuClone = Menu:Clone() |
6 | MenuClone.Parent = player.PlayerGui |
7 | end ) |
Menu is the name of the ScreenGui.
1 | local Menu = script.Menu |
2 |
3 | game.Players.PlayerAdded:Connect( function (player) |
4 | player.CharacterAdded:Connect( function () |
5 | local MenuClone = Menu:Clone() |
6 | MenuClone.Parent = player.PlayerGui |
7 | end ) |
8 | end ) |