function onPlayerEntered(player)
repeat wait () until player.Character
wait(46)
script.Parent.Visible = true
game.Workspace.KingBedroomDoor.locked.Value = false
script.Parent.Main.Disabled = false
end
game.Players.PlayerAdded:connect(onPlayerEntered)
It just won't work.

1 comment
is it in a local script?