Here is the script...
function onKeyDown(Key) if Key=="k" then Game.Player.Humanoid.Health = 0 end end
Can some one fix this script please? And maybe tell my why it's didn't work?
Here is the script...
function onKeyDown(Key) if Key=="k" then Game.Player.Humanoid.Health = 0 end end
Can some one fix this script please? And maybe tell my why it's didn't work?
Seriously, do you know what functions are? This functions means nothing because is NOT called. For this script works you need to connect on the key event typed, use this at the end of your code:
local thePlayer = game.Players.LocalPlayer
local theInputs = thePlayer:GetMouse()
theInputs.KeyDown:connect(onKeyDown)
I think you need to learn functions...
Like serousily
I KNOW WHAT FUNCTIONS ARE I ACEDENTLY PUT IT IN, GOSH FREKING CRITICS!
ITS GONE, HAPPY!?!?
Thank you.
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
It didn't work...
are you using a local script? You need that put it in StarterGui