Activ tool

Hello, FacePunch.
How to get active tool? (ex. duplicator or remover)
Thx =)

Player:GetTool

[editline]15th May 2016[/editline]

If you want the name of the tool:



ply:GetTool().Name


[editline]15th May 2016[/editline]

Note that usually the name of the tool is something like



#tool.colour.name


So you have to use

language.GetPhrase to get the proper name (you also have to remove the # or it doesn’t seem to work)

Thx, but i must get class of tool (ex.2D3D TextScreen - textscreen (filename of tool))

Try doing



PrintTable(LocalPlayer():GetTool())


And see if you can find what you’re after

Thx you