Clone of a model does not go from replicated storage to workspace

Hello.

So this is the setup:

Module script inside a model. This model needs to be cloned whenever it is needed.

I am trying to parent the Model from the module, but I think it could be causing an issue.

Should I instead parent the model from a server script? I think it gets confused because it gets cloned

Script inside module:

local vanmodule = {}
local scriptservice = script.Parent
local van = game.ReplicatedStorage.Van:Clone()

local sidedoor = van:WaitForChild("SideDoor")

local ts = game:GetService("TweenService")


local primary = van.primary

van.Parent = game.Workspace

primary:SetNetworkOwner(nil)
primary.Anchored = true

This is not the entire code, but I think this is the part I need to fix.

I found the solution. If the van variable is the cloned version of van, then itd obviously not work.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.