Check the asset the developer has selected

Hello.
I am looking for a script that will get the location of the selected asset. For instance say I had a model in the workspace selected the code would return game.workspace.model.
Thank you very much for any help. ICrann

You’ll want to use ‘GetFullName’

for _, item in ipairs(game.Selection:Get()) do
	print(item:GetFullName())
end
1 Like