script.Parent.Tool.Activated:Connect(function() print("x") end)
So basically, if your script is within the tool, there is no need to add "Tool" after the "script.Parent" part.