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

Why are my print statements not printing?

Asked by
2Loos 168
3 years ago

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!

Answer this question