Forum > General >

How can i get the name of an object?

Posts: 3

Threads: 1

Joined: Nov, 2021

Reputation: 0

Posted

Theres this item thats placed on the workspace. There are over a thousand objects so workspace:GetChildren() isnt very helpful /:

 

I can see the object and even interact with it (touching it collects it and makes it disapear)

 

I tried using simple spy but i couldnt find the name through it.

 

I also tried searching by names that could match but got nothing /:

 

Is there a way for me to find the name of an object in the workspace?

It will really help me a lot :)

 

Thanks in advance!

  • 0

Posts: 83

Threads: 11

Joined: Nov, 2018

Reputation: 8

Replied

Give me a screenshot of the workspace with the part selected

  • 0

GitHub: https://github.com/sound-infinity

Discord: SoundInfinity#2135

Posts: 3

Threads: 1

Joined: Nov, 2021

Reputation: 0

Replied

Exacly, i dont have the workshop.

 

I cant select the part.

  • 0

Posts: 673

Threads: 30

Joined: Aug, 2020

Reputation: 6

Replied

Instances have property called "Name", If you can't select it then maybe try using the index to select the "Object"

  • 0

Posts: 3

Threads: 1

Joined: Nov, 2021

Reputation: 0

Replied

You dont get my problem.

 

I cant select or do anything with the object.

 

Im looking and it in game, NOT in editor.

 

I have no idea how i can find the instance or name of the object. Or even index. thats what im asking, how can i find it :)

  • 0

Posts: 3

Threads: 0

Joined: Oct, 2021

Reputation: 0

Replied

assuming you have a script executer, synapes or krnl etc .you can use a script called dark dex that will alow you to veiw the games index or you could even use the infiniteyield script im pretty sure it also has a dex exlporer.  when the tab pops up on the side , go to the settings icon and make sure "Click part to select" is switched to 'ON" then click the icon with 3 lines (explorer icon) now ... back to the game ,you want to click on the part you wish to interact with and hey presto! you might have to scroll down but that part will be highlighted in the explorer list.

 

where you go from here depends on how you wish to intereact with the object/part .

 

  • 0

Added

if its a coin/gem/collectable you probably want this 

 

local playerHead = game.Players.LocalPlayer.Character.Head -- the players head

 

for i, v in pairs(game:GetService("Workspace").Gem:GetDescendants()) do -- replace the underlined bit with your own partpath

    if v.Name == "TouchInterest" and v.Parent then

       firetouchinterest(playerHead, v.Parent, 0)

       wait()

       firetouchinterest(playerHead, v.Parent, 1)

    end

end

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )