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

Make the game not load shirt, pants and hat?

How do I make the game not load the characters pants and shirt and hat without doing

CanLoadCharacterAppearance = false

1 answer

✓ Accepted answer

EDIT: Someone said about you not wanting to do this, so here is a way of doing that!

What I will be doing is taking the player and waiting for the character to load. Once that happens, I wait for their pants, shirt, and hats to load, then :Remove() them.

game.Players.PlayerAdded:connect(function (player)
	player.CharacterAdded:connect(function (char)
		for _, object in pairs(char:GetChildren()) do
			if object:IsA("Pants") or object:IsA("Shirt") or object:IsA("Hat") then
				object:Remove()
			end
		end
	end)
end)

Hope this helps :)

Below this line is the way you didn't want to do it, but for other's it may be useful, so I left it.

Hey! First off here is a wiki page to the player object! This has some information about it AND the stuff about the character loading stuff!

Okay to begin this is how I believe you can set it up as:

game.Players.PlayerAdded:connect(function (player)
	player.CanLoadCharacterApparence = false
end

That is server side, so I'm not positive it will work! So here a little snippet of code for a local script instead!

game.Players.LocalPlayer.CanLoadCharacterApparence = false

2 comments

0

The OP asked not to use the CanLoadCharacterAppearance property.

0

Oh, let me fix that.

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