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!
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()