I’m trying to clone a car model from a folder in ReplicatedStorage to the Workspace. When cloning it gets rid of all the meshes and scripts in the car.
Model in ReplicatedStorage:
Model cloned in workspace, missing Body and Scripts
I’ve tried looking for topics with the same issue but can’t find any.
Here’s the code that spawns the car.
local ev = game:GetService("ReplicatedStorage").Events.SpawnCar
local spawns = game.Workspace.CarDealerSpawns:GetChildren()
function spawnCar(player,s)
local car = s:Clone()
car.Parent = workspace
local cfspawn = spawns[math.random(#spawns)]
car:PivotTo(car:GetPivot() + cfspawn.Position)
end
ev.OnServerEvent:Connect(spawnCar)
Did you ever find more information on this? I’m having a similar issue, where I’m attempting to clone something from storage, and I’ve recently ran into a very strange issue where sometimes the parts within the model aren’t loading all of a sudden. Was wondering if there is a relation, or completely different…
This is an old thread but I’ll add a potential cause and fix.
I had this same problem today, cloning objects from ServerStorage. The folder with the Parts would clone but upon inspection it would show empty. I noticed that if I checked quickly enough, the parts were in fact cloning and disappearing. I then realized they were unanchored and had collision turned off. They were falling through the world and being garbage collected within a few seconds of starting the game. It’s one of those things that are completely bewildering but feel dumb about once you figure out Anchor the parts and your cloning should work properly.