Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to disable CharacterAutoLoads, but still have GUI's appear?

In a main menu I'm working on, I want the GUI's to appear, but the character to not spawn. To make the character not spawn, I'm using CharacterAutoLoads and setting this to false, however, doing this makes all the GUI's not appear. What can I do to make the GUI's still appear, but make the character not load in?

Thanks!

1 comment

0

Try removing the Player's character from workspace instead of disabling CharcterAutoLoads. I don't think that GUI's can't load in without the Player's Character loading in.

2 answers

✓ Accepted answer

You have to manually copy any GUIs you want into the PlayerGui.

local Players = game:GetService("Players")
local StarterGui = game:GetService("StarterGui")

Players.PlayerAdded:Connect(function(player)
	for _, gui in pairs(StarterGui:GetChildren()) do
		gui:Clone().Parent = player:WaitForChild("PlayerGui")
	end
end)

Make sure your GUI's are in StarterGui.

Put this as a LocalScript in StarterPlayerScripts. It destroys/removes the Player's character when it is added into workspace.

repeat wait() until game.Players.LocalPlayer.Character
repeat wait() until game.Players.LocalPlayer.Character:IsDescendantOf(game.workspace)
wait(1 / 20)

game.Players.LocalPlayer.Character:Destroy()

This discussion is preserved as it was. New answers, comments, and votes are closed.