Cloned Part(s) of Model not Replicating

I’m cloning a map located in ServerStorage with a server script, but some parts are not showing up for the client.

Client:

Server:

The part called thisPART seems to consistently be the only part not replicating to the client. I’ve already ensured Archivable is set to true.

I’ve also disabled all other scripts to no effect. I genuinely have no idea why this is happening. I duplicated other parts to see if they’d disappear as well, & sometimes they do, while sometimes not.

This is the script where the map is being cloned,

-- Services
local Players = game:GetService("Players")
local SS = game:GetService("ServerStorage")

-- Storage
local Maps = game.ServerStorage.Maps
local Highway89Map = Maps["Highway89"]





-- Player Joined Event
game.Players.PlayerAdded:Connect(function(plr)
	
	-- Map
	local newMap = Highway89Map:Clone()
	newMap.Name = "Facility-".. plr.UserId
	newMap:PivotTo(CFrame.new(#Players:GetPlayers() * 1000, 0.5, 0))
	newMap.Parent = game.Workspace
	
	-- Storage
	local Storage = Instance.new("Folder")
	Storage.Name = "Facility-".. plr.UserId.. "-Storage"
	Storage.Parent = game.ReplicatedStorage
	for _, v in pairs(newMap.Floors:GetChildren()) do
		
		-- Floor
		if v:IsA("Folder") then
			local folder = Instance.new("Folder")
			folder.Name = v.Name
			folder.Parent = Storage
			
			-- Category
			for _, a in pairs(v:GetChildren()) do
				if a:IsA("Folder") then
					local folder2 = Instance.new("Folder")
					folder2.Name = a.Name
					folder2.Parent = folder
				end
			end
		end
	end
end)

I’m not sure if this is a bug with Roblox itself, as the parts do exist on the server which means this script is functioning as intended.

EDIT: Moving the part left of its original position beforehand allows it to replicate for some reason…

The Part’s original position (does NOT replicate)

Moving the Part left of it’s original position (replicates)

Moving it further to the right does nothing, it won’t replicate.

I’m so lost with this…

1 Like

You’re sending an entire map to everyone every time a new player joins the game, it’s probably just a network issue. Try adding a WaitForChild on that part

1 Like

I implemented a 10 second pause before the script runs & there was no change

1 Like

image

you can turn off that value to disable parts being unreplicated to the client

3 Likes

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