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

I have a question on what i can do if i stop a player from spawning?

Asked by
qwrn12 85
8 years ago

if i stop a player from spawning does player guis work

2 answers

Log in to vote
1
Answered by 8 years ago

Unfortunately, I have run into the same issue as well.

I just allow the characters to spawn, and then when they're done spawning I just destroy them. The guis load, and it achieves the same effect.

0
how do you load them again? qwrn12 85 — 8y
0
local Players = Game:GetService("Players") Player:LoadCharacter() (i got this off wiki) qwrn12 85 — 8y
0
player:LoadCharacter() loads their character again. ProtectedMethod 105 — 8y
0
ok thanks qwrn12 85 — 8y
Ad
Log in to vote
0
Answered by 8 years ago

No, StarterGui does not clone it's children to PlayerGui if the character doesn't spawn. But, you could easily spawn a player in a black box, then teleport them when you're done.

EDIT: Teams

A simple solution to this would be to kill the character, but this is a method I dislike, when you could just as easily teleport the player to the spawns, like so:

-- this script needs to be a LocalScript inside the button that you click to spawn
local spawn = game.Workspace:FindFirstChild("RedSpawn") -- you can have multiple spawns named this, it will choose the one at the top of the list
local p = game.Players.LocalPlayer
local button  = script.Parent -- button inside gui that you click to spawn

button.MouseButton1Click:connect(function()
    local char = p.Character
    if char then
        char.Torso.CFrame = spawn.Position + Vector3.new(0,7,0)
        button.Parent:remove() -- closes gui when clicked, in this case, gui is the parent of the button
    end
end
0
but if i have teams does it go to a team spawn or any spawn? qwrn12 85 — 8y
0
let me refrais that can i teleport people if there on diffrent teams to diffrent locations qwrn12 85 — 8y

Answer this question