I am getting the “exception while signaling: Must be a LuaSourceContainer” error for cloning an object. I did some tests and apparently it is triggered at the line I clone the object again.
here: local new = a:clone()
local a = script.Parent.Parent:FindFirstChild("2Cart"):clone()
local deb = false
local rides = workspace:WaitForChild("Rides")
function chng()
if deb == true then return end
deb = true
local new = a:clone()
new.Parent = rides
new:MakeJoints()
--for i,v in pairs(new:GetDescendants()) do
-- if v:IsA("BasePart") then
-- v:SetNetworkOwner(nil)
-- end
--end
script.Parent.BrickColor = BrickColor.new(21)
wait(6)
script.Parent.BrickColor = BrickColor.new(28)
deb = false
end
script.Parent.Click.MouseClick:Connect(chng)