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

How to stop Module3d from auto scaling models?

Asked by 4 years ago
Edited 4 years ago

When using module3d to clone the character, if parts are added like armor, for example, the model is set farther from the camera in order to fit all the parts in, is there any way to counter this and always have the model and the camera in the same place or base the cframe from a part like humanoidrootpart?

Not much code, I have absolutely no idea how id do this but here is what I have by default:

game.Players.LocalPlayer.Character.Archivable = true
local char = game.Players.LocalPlayer.Character:Clone()
local cframe = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(180),0)
char.HumanoidRootPart.CFrame = cframe
char.Parent = game.Workspace
player.PlayerGui.ScreenGui.playerFrame.preview:ClearAllChildren()
local model = module3d:Attach3D(player.PlayerGui.ScreenGui.playerFrame.preview,char)
model.Visible = true

Video: https://www.youtube.com/watch?v=ZSU7ixtd5h0

Answer this question