local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local function pickup(key)
print("1")
if (player.Character.Torso.Position - script.Parent.Position).Magnitude <= 10 then
print("2")
if key == "f" then
print("3")
game.Players[player.Name]:WaitForChild("Hunger").Value = game.Players[player.Name]:WaitForChild("Hunger").Value -5
script.Parent:Remove()
end
end
end
mouse.KeyDown:connect(pickup)
This code is in a LocalScript, stored in a part in the Workspace, none of the prints are working? Help? thanks

1 comment
http://wiki.roblox.com/index.php?title=API:Class/UserInputService/InputBegan