How to know if Part loaded?

there are other threads regarding this question but they do not have an answer

So I do

game.ReplicatedStorage.Part:Clone().Parent = workspace

how do I know when Part is fully loaded into workspace? (visible, has physics)

I don’t believe ContentProvider helps let me know if I’m wrong.

local S_RPS = game:GetService("ReplicatedStorage"); -- replicated storage
local Part      = S_RPS:WaitForChild("Part"); -- operator waiting until part will load
local PartClone = Part:Clone(); -- cloning
PartClone.Parent = game:GetService("Workspace") -- puts in workspace

this is a optimized part of your code, in short operator WaitForChild() yields (waiting) until part will be loaded.

that doesn’t tell me if the part is rendered in workspace. You are simply waiting for the Part in ReplicatedStorage, I already know it’s in ReplicatedStorage no need to wait.

tbh it’s a model of parts (a map)

I think there is no way, because on other threads people were suggesting counting the descendants and then sending a message to the server when it’s loaded. but that’s hacky and I don’t really want to do it.

Nevermind. sorry to bother.

1 Like