local runService = game:GetService("RunService") local replicatedStorage = game:WaitForChild("ReplicatedStorage") local replicatedFirst = game:WaitForChild("ReplicatedFirst") local remotes = replicatedStorage:WaitForChild("Remotes") local pets = replicatedFirst:WaitForChild("Pets") local tweenService = game:GetService("TweenService") local player = game.Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = playerGui:WaitForChild("ScreenGui") local center = screenGui:WaitForChild("Center") local petInventory = center:WaitForChild("PetInventory") local scrollingFrame = petInventory:WaitForChild("ScrollingFrame") local template = scrollingFrame:WaitForChild("Template") local module3D = require(replicatedStorage:WaitForChild("Module3D")) local maxSelectedPets = 10 local selectedPets = 0 local function createTemplate(petName, id) local newTemplate = template:Clone() newTemplate.Name = petName newTemplate.Visible = true newTemplate.Parent = scrollingFrame local petModel3D = module3D:Attach3D(newTemplate:WaitForChild("Viewport"), pets:WaitForChild(petName):Clone() ) --Jeżeli chcecie większe modele, to można ustawić na 1.5 petModel3D:SetDepthMultiplier(2) petModel3D.CurrentCamera.FieldOfView = 5 petModel3D.Visible = true runService.RenderStepped:Connect(function() petModel3D:SetCFrame( CFrame.Angles(0, tick() % (math.pi*2),0) * CFrame.Angles(math.rad(-10),0,0) ) end) end remotes:WaitForChild("CreateTemplate").OnClientEvent:Connect(function(name,id) createTemplate(name,id) end)