im looking around for a script can reset character pressing "Y" but i didn't find it anywere,i need help..
✓ ANSWER ACCEPTED
Reset character pressing keybind "Y"?
1 answer
✓ Accepted answer
You can do this easily. Put this script in a local script inside StarterCharacterScripts
local plr = game.Players.LocalPlayer
local player = script.Parent
plr:GetMouse().KeyDown:Connect(function(K)
if K == "y" then
player.Humanoid.Health = 0
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
thanks!!
Don't use deprecated methods.
Use UserInputService instead.
It could be both