My game is stuck in edit mode. If you don't know what I'm talking about play my game. It is really weird and none of the guis show up either. How do you fix this?
game.Players.PlayerAdded:connect(function() while wait(100) do local name = Instance.new("Model") name.Parent = game.Players.LocalPlayer.Character local human = Instance.new("Humanoid") human.Parent = name local head = Instance.new("Part") head.Parent = name -- That was just setting the parents name.Name = ""..game.StarterGui.ClickGui.TextLabel.Number.Value human.MaxHealth = 0 end end)
It's not edit mode, what is happening is that the Player's character isn't being loaded, so the Parent is nil. Are there any scripts interfering with the spawning/loading of a Player or its character?