Viewport frame model not going where its supposed to

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? I want each character inside of the folder to be placed into its viewport frame

  2. What is the issue? The clone of the model does not end up inside the viewport frame.

  3. What solutions have you tried so far? Placing the model in different locations works, just not the viewport

I believe the script did as what it was intended to do.
What you might’ve mistaken is that you parented the character to the original template’s viewport; in order to fix the issue ur having all you need to do is to just define the viewport in the newTemplate that you cloned

for i, v in pairs(chars:GetChildren()) do
	print(v)
	local newTemp = template:Clone()
	newTemp.Parent = script.Parent.Frame.Select
	newTemp.Name = v.Name
	
	local clone = v:Clone()
	clone.Parent = newTemp.ViewportFrame
	newTemp.CharName.Text = v.Name
end

I need to stop scripting at 1am :sob: Thank you!

1 Like