I want to have the entire world inside a viewport frame, but I’m unsure on how to go about this.
My main issue is player characters, as once their parents is no longer within the workspace, they no longer update. Is there anyway to get around this?
RunService.RenderStepped:Connect(function()
for _, player in pairs(Players:GetPlayers()) do
local realChar = player.Character
local fakeChar = worldModel:FindFirstChild(player.Name)
if realChar and fakeChar then
for _, part in pairs(realChar:GetDescendants()) do
if part:IsA("BasePart") then
local fakePart = fakeChar:FindFirstChild(part.Name, true)
if fakePart then
fakePart.CFrame = part.CFrame
end
end
end
end
end
end)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.