I don’t want to spawn any 3d humanoid player character or avatar when running the game.
What script can actually do that?
thx a bunch for any ideas.
I don’t want to spawn any 3d humanoid player character or avatar when running the game.
What script can actually do that?
thx a bunch for any ideas.
you don’t need a script, just disable CharacterAutoLoads in Players
In the Players
instance there is a property CharacterAutoLoads
, you can set it to false. However, this would mean that the GUI nor the Map would load. To fix this issue you would have to manually put the GUI instances in the PlayerGui using a script and to load the map you can just disable StreamingEnabled
in workspace.
thank you, and yes. This is the issue. When the CharacterAutoLoads is set to false, nothing loads anymore. Not the Skybox, not the baseplate. Literally nothing.
Hmm… so with the GUI instances, how would that practically look like?
It’s simple really.
local Players = game:GetService("Players")
local StarterGui = game:GetService("StarterGui")
local Guis = StarterGui:GetChildren()
Players.PlayerAdded:Connect(function(playerInstance)
for _,Gui in Guis do
Gui = Gui:Clone()
Gui.Parent = playerInstance.PlayerGui
end
end)
You could make the starter character a model with nothing in it and then make the animations scripts (all scripts that need a 3d character to work) empty.
The only thing that is ESSENTIAL in the character is the Humanoid
(maybe even the HumanoidRootPart
but you can test around a bit to see what works)