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.