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…