Universal Script 📌
22.5k Views
414 Executions

ftap thing I found idk was dat fr

Universal Script 📌
RootPart
RootPart10K executions
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

IDK BRO

View Raw
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

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Script hub
49.2k
304.8k
Bumped 9 minutes ago

Script hub

Nameless Admin

Script hub
2.4M
750.0k
Bumped 40 minutes ago
Key System

Script hub

#1 today

Verified script badgeLumin Hub | #1 | Insta Steal

Script hub
17.8k
3.5k
Bumped 1 hour ago
Key System
Paid
Universal Script 📌
33.4k
144
Bumped 3 hours ago