local Players = game:GetService("Players")
local part = script.Parent
local function onTouched(part)
local player = Players:GetPlayerFromCharacter(part.Parent)
if not player then return end
print(player.Name .. " pressed me!")
When your character's leg or other body part comes into contact with the parent `Part`, a message should display in the Output window saying "(username) pressed me!"