Universal Script 📌
544 Views
30 Executions

The script that gives the path to the Text OPEN SOURCE

Universal Script 📌
Kystarnik
Kystarnik10K executions
8 months 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

When you click on H, it says the path where a certain text is written, hover over any text in any mode and click on H. Then open the F9 console and look at the path to the textLabel

View Raw
local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local GuiService = game:GetService("GuiService")
local LocalPlayer = Players.LocalPlayer
local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")

local BIND_KEY = Enum.KeyCode.H

print("--- Script Started ---")
print("Press [" .. BIND_KEY.Name .. "] to find GUI objects under cursor.")

local function findGuiUnderCursor()
    local mousePos = UserInputService:GetMouseLocation()
    local inset = GuiService:GetGuiInset()
    
    local adjustedX = mousePos.X - inset.X
    local adjustedY = mousePos.Y - inset.Y
    
    local foundObjects = PlayerGui:GetGuiObjectsAtPosition(adjustedX, adjustedY)
    
    print("--- Scanning Coordinates: " .. math.floor(adjustedX) .. ", " .. math.floor(adjustedY) .. " ---")
    
    local found = false
    for _, obj in ipairs(foundObjects) do
        if obj:IsA("TextLabel") or obj:IsA("TextButton") or obj:IsA("TextBox") or obj:IsA("Frame") or obj:IsA("ScrollingFrame") or obj:IsA("ImageLabel") or obj:IsA("ImageButton") then
            found = true
            print("------------------------------------------")
            print("Object Found: " .. obj.ClassName)
            print("Name: " .. obj.Name)
            print("Path: " .. obj:GetFullName())
            
            if obj:IsA("TextLabel") or obj:IsA("TextButton") or obj:IsA("TextBox") then
                print("Text: " .. tostring(obj.Text))
            end
            
            if obj:IsA("ImageLabel") or obj:IsA("ImageButton") then
                print("Image ID: " .. obj.Image)
            end

            local valChild = obj:FindFirstChild("Value")


Comments

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

More universal scripts

See all
Universal Script 📌
47
1
Approved 1 hour ago
Script hub
11.2k
56.8k
Bumped 2 hours ago
Key System
Script hub
1.6M
2.1M
Bumped 2 hours ago
Key System

Script hub

#14 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Universal Script 📌
106
9
Approved 2 hours ago
Universal Script 📌
103
8
Approved 2 hours ago