
22.5k Views
414 Executions
ftap thing I found idk was dat fr
Universal Script 📌
RootPart10K executions
2 years ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
IDK BRO
local Utilities = {}
print("omg sigma")
function Utilities.IsDescendantOf(child, parent)
while child do
if child == parent then
return true
end
child = child.Parent
end
return false
end
function Utilities.GetDescendant(parent, name, className)
for _, descendant in pairs(parent:GetDescendants()) do
if descendant.Name == name and descendant:IsA(className) then
return descendant
end
end
return nil
end
function Utilities.GetAncestor(child, name, className)
local current = child.Parent
while current do
if current.Name == name and current:IsA(className) then
return current
end
current = current.Parent
end
return nil
end
function Utilities.FindFirstAncestorOfType(child, className)
local current = child.Parent
while current do
if current:IsA(className) then
return current
end
current = current.Parent
end
return nil
end
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!







