When LoadCharacter is called, the character spawns in with at least 2 extra instances of body colors, shirt, pants and each of the character scripts.
The shirts and pants also seem to not do their function in this situation - I didn’t have time to check the asset IDs, so I can’t be specific on that one sorry!
It only seems to happen when called in response to a touch - all other times I have called the LoadCharacter method have worked normally.
To reproduce:
-
Go into studio
-
Make a new part and put a script in it
-
Give the script the following code:
script.Parent.Touched:Connect(function(Hit)
local Player = game.Players:GetPlayerFromCharacter(Hit.Parent)
if Player then
Player:LoadCharacter()
end
end) -
Test with play solo and touch the part, then check the contents of the loaded character
I have no idea how long it has been around - I only experienced it an hour or two before this post - although would it be safe to assume it came with the new studio update?