i mean i already made it but it'd be much easier to have roblox just yknow implement it into their stuff
waitForChildOfClass = function(parent, className)
local child = parent:FindFirstChildOfClass(className)
if child then return child end
while true do
child = parent.ChildAdded:wait()
if child.ClassName == className then return child end
end
end
Don't wear black, people! |