I’m trying to do something like a character select menu with preview, the models are located in workspace first, and are then cloned over to the viewport frames.
Problems I have:
- But the models are not visible and have to be moved to workspace and back for them to show up.
They also only show up without moving them if I don’t change their position at start
Seen in this picture, where the original model is moved by 1 stud, while the other models are moved several studs (The script changes their position anyways) - I want to have animations for the models, but they only play when moving them to Workspace and back.
Script I use to change the positions + Clone then
local function UpdateRig(RigWS)
local Container =EmptyContainer:Clone()
Container.Name ="Container"
Container.Parent=OutfitsFrame
local RigClone =RigWS:Clone()
RigClone.HumanoidRootPart.CanCollide = false
RigClone.PrimaryPart.CFrame = CFrame.new(2, 3, 8) * CFrame.Angles(0, math.rad(180), 0)
RigClone.Parent=Container.ViewportFrame
end
I want to add, that when looking at the positions in the explorer everything seems right, but the viewport frames don’t reallyy detect this change