I don't understand why this script doesn't work, when I click a textButton I want it to search through the player's character and find the tool (that is equipped) and print the name of the tool. However, nothing is being printed and I'm not sure why.
Code:
textButton.MouseButton1Click:Connect(function()
local tool = character:FindFirstChild("Tool")
if tool then
end
end)

2 comments
I'd already answered the question. ^
k