#Not creating accurate model of character
1 messages · Page 1 of 1 (latest)
hmmmm
the setting BodyTypeScale = 0 creates an invalid body type ... and the value should be between 0 and 1
removing the setting might fix it
local humanoidDescription = Players:GetHumanoidDescriptionFromUserId(Player.UserId)
viewportCharacter = Players:CreateHumanoidModelFromDescription(
humanoidDescription,
Enum.HumanoidRigType.R6,
Enum.AssetTypeVerification.ClientOnly
)
viewportCharacter.Name = "ViewportCharacter"
viewportCharacter.Parent = viewportWorldModel
using a valid number
local humanoidDescription = Players:GetHumanoidDescriptionFromUserId(Player.UserId)
humanoidDescription.BodyTypeScale = 0.3 --0.1+
viewportCharacter = Players:CreateHumanoidModelFromDescription(
humanoidDescription,
Enum.HumanoidRigType.R6,
Enum.AssetTypeVerification.ClientOnly
)
viewportCharacter.Name = "ViewportCharacter"
viewportCharacter.Parent = viewportWorldModel
Yep
function CharactersLoadingModule.LoadCharFromUserId(Id: number): nil
local Character: Model = ReplicatedStorage:WaitForChild("Character"):Clone()
local Info = PlayersService:GetHumanoidDescriptionFromUserId(Id)
local Humanoid: Humanoid = Character and Character:FindFirstChild("Humanoid")
Info.DepthScale = Humanoid.BodyDepthScale.Value
Info.BodyTypeScale = Humanoid.BodyTypeScale.Value
Info.WidthScale = Humanoid.BodyWidthScale.Value
Info.HeightScale = Humanoid.BodyHeightScale.Value
Info.ProportionScale = Humanoid.BodyProportionScale.Value
Humanoid:ApplyDescription(Info)
Character.Parent = workspace
end
I alwways yse this one
@grim saddle
one I made
Hmm I fixed it actually but ty