I want my game to have all players in 1.0 body, but I don't really know where to start looking...
Mainly what I'm asking is for help on how to change the players Packages to the Roblox 1.0 body as soon as they enter the game? Please help I will thank you so much
This is the EXACT code I've used in one of my games before. I only added comments to make it easier to understand what's going on.
01 | -- I recommend making the CharacterAutoLoads false: |
02 | game.Players.CharacterAutoLoads = false |
03 |
04 | game.Players.PlayerAdded:connect( function (player) |
05 | local function checkChild(child) |
06 | if child:isA( "CharacterMesh" ) then -- This is the mesh of the body packages. They are added directly to the character. |
07 | repeat wait() until child.Parent -- What happens is it's trying to remove the child before it actually has a parent, so we need to wait for it. For some reason, the ChildAdded fires before the child really gets added. |
08 | child:remove() |
09 | end |
10 | end |
11 |
12 | local function characterSpawned(character) |
13 | for _, child in pairs (character:children()) do |
14 | checkChild(child) |
15 | end |