Im trying to make a single player action game which really needs responsive combat and smooth experience. Right now im rendering the map on the client by parenting map and npc to workspace.CurrentCamera or by cloning server sided object on the client. Howerver lots of time this happens.
My simple code has no error and i have no clue of whats causing this (might be something extremely simple that i forgot). Any help appreciated thanks.
RenderCode
for _, replicate : Instance in workspace.Replicated:GetDescendants() do
if replicate:IsA(“Model”) then
-- Same result
---local copy = replicate:Clone() copy.Parent = workspace replicate:Destroy()
replicate.Parent = workspace.CurrentCamera
print("Copied "..replicate.Name)
-- entity collision (not related)
if replicate.Parent.Name == "Entities" then
for _, c in replicate:GetDescendants() do
if c:IsA("BasePart") then
c.CollisionGroup = "character"
end
end
end
end
end