So I am making a plane game. Each time the player dies, he/she is supposed to see a GUI asking them where to spawn. Here is the script. It uses PlayerAdded()
function.
local player = game.Players.LocalPlayer local character = player.Character game.Players.LocalPlayer.CharacterAdded:Connect(function() print("Character Added") --Neither print statement printing! script.Parent.Visible = true print("parent was made visible so player can select where to spawn again!") end)
This gui is crucial to my game, please help!