Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how can I make a viewport frame model say still?

Asked by 3 years ago

-This might not be a question about the script, but it probably is.-

Now then, what is the issue here? - I am creating a character importer plugin. The plugin uses viewport frames to allow the user to see the imported character in 3D. Here's a gif of it: https://gyazo.com/8223db0354b1e4f6b3fb8a16f453d460

  • What's wrong is that when the dummy gets it's appearance rewritten it splits everywhere.

  • The issue only happens in the viewport frame and when I press the import button the character appears as intended.

GIF of how it appears: https://gyazo.com/e8d811410bd360b4567ef1feb62a45d1 GIF of how it gets imported: https://gyazo.com/39b2be802ad618d3c639aaa6d84ce605

Screenshot of how the model looks in the viewport frame and when taken out of it: https://gyazo.com/c7853bada88489724221d3f520ca098b

So the question I am asking is: How could I make the model not look like a bombed soldier?

Import script:

    main.MainTab.Preview.ModelPreview.Model:ClearAllChildren()
    local NewModel = main.Rigs:FindFirstChild(rigType):Clone()
    NewModel:SetPrimaryPartCFrame(main.MainTab.Preview.ModelPreview.Center.CFrame)
    NewModel.Parent = main.MainTab.Preview.ModelPreview.Model
    NewModel.Humanoid:ApplyDescription(game.Players:GetHumanoidDescriptionFromUserId(playerId))

Answer this question