Sorry if I’m late here but is there an option to zoom in? Because I was fixing bugs and then suddenly the models appeared really small instead of their actual size. I’ll show you a photo:
And here’s a snippet of the code that uses Module3D V6:
local function onTemplatePress(temp)
selectedTemplate = temp
if selectedTemplate:FindFirstChild(“Equipped”).Value == true then
selectedTemplate.Checkmark.Visible = true
equipBTN.Text = “UNEQUIP”
else
selectedTemplate.Checkmark.Visible = false
equipBTN.Text = “EQUIP”
end
petNameDisplayInfo.Text = temp.Name
for i, v in pairs(displayPets:GetChildren()) do
if v:IsA("ViewportFrame") then
v:Destroy()
end
end
local petModel = Module3D:Attach3D(displayPets,replicatedStorage.Pets:FindFirstChild(temp.Name, true):Clone())
petModel:SetDepthMultiplier(1.2)
petModel.Camera.FieldOfView = 5
petModel.Visible = true
runService.RenderStepped:Connect(function()
petModel:SetCFrame(CFrame.Angles(0,tick() % (math.pi * 2),0) * CFrame.Angles(math.rad(-10),0,0))
end)
end
_G.newTemplate = function(petName)
local newTemplate = template:Clone()
newTemplate.Name = petName
newTemplate.Visible = true
newTemplate.Parent = container
local petModel = Module3D:Attach3D(newTemplate.Display,replicatedStorage.Pets:FindFirstChild(petName, true):Clone())
petModel:SetDepthMultiplier(1.2)
petModel.Camera.FieldOfView = 5
petModel.Visible = true
runService.RenderStepped:Connect(function()
petModel:SetCFrame(CFrame.Angles(0,tick() % (math.pi * 2),0) * CFrame.Angles(math.rad(-10),0,0))
end)
newTemplate.MouseButton1Click:Connect(function()
onTemplatePress(newTemplate)
end)
end
btw module3d is located in replicated storage