How do I tell if a part is loaded?

Alright guys, so I wanted to know how I could tell if a part is loaded. There are some games that won’t start the game unless the game has loaded properly. So far, I have no leads as to what to do, so I will give this example code.

local Part = game.Workspace.Part
-- What do I put here?
Part.Color = Color3.fromRGB(200, 0, 0)

For example, if the part is loaded, then the part should turn red. How would I check if the part has loaded in for the player?

in client

repeat task.wait() until game:IsLoaded()

to know if ur part is loaded u can js

local Part = workspace:WaitForChild("Part")

it will await until its loaded (30 sec time i think)

2 Likes
local Part = game.Workspace:WaitForChild("Part")

if Part then
   Part.Color = Color3.fromRGB(200, 0, 0)
end
1 Like

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