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

Why is my game stuck in Edit mode?

Asked by 10 years ago

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)

1 answer

Log in to vote
0
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
10 years ago

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?

0
Oh yeah. There is a script that is supposed to be like RAP but for the number of clicks you have in game and it is supposed to be on top of your head. And it messes around with the character. raystriker6707 30 — 10y
0
I will put the script for the RAP above. raystriker6707 30 — 10y
0
Can you fix this script. THe RAP is supposed to be like the RAP in trade hangout. raystriker6707 30 — 10y
Ad

Answer this question