|
| 31 Jul 2017 02:09 PM |
| How do you stop a stunned person getting up by pressing backspace? Say like I said ":Stun jack" and he got stunned, at the moment jack can get up by pressing backspace, how do I stop this? |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 31 Jul 2017 02:13 PM |
User input service
if input.KeyCode == Enum.KeyCode.Backspace then --dont do anything --or just restun them end
|
|
|
| Report Abuse |
|
|
Mitko0o1
|
  |
| Joined: 30 Nov 2010 |
| Total Posts: 5725 |
|
|
| 31 Jul 2017 02:17 PM |
Kill them if they press backspace?
uis = game:GetService("UserInputService") plr = game.Players.LocalPlayer char = plr.Character or plr.CharacterAdded:wait()
uis.InputBegan:connect(function(input, typing) if typing then return end if input.KeyCode = Enum.KeyCode.Backspace then if not char:FindFirstChild("Humanoid") then return end char.Humanoid.Health = 0 end end end)
|
|
|
| Report Abuse |
|
|
|
| 31 Jul 2017 02:18 PM |
| Thanks but what do I do with this? xD I tried putting it in a script in workspace but input is not defined as a thing...apparently. |
|
|
| Report Abuse |
|
|
Mitko0o1
|
  |
| Joined: 30 Nov 2010 |
| Total Posts: 5725 |
|
|
| 31 Jul 2017 02:20 PM |
Put it in a local script in StarterPack or inside the player or any of its descendants
|
|
|
| Report Abuse |
|
|
|
| 31 Jul 2017 02:22 PM |
| Can you make it so that it doesn't kill you but just stops you getting back up? |
|
|
| Report Abuse |
|
|
Mitko0o1
|
  |
| Joined: 30 Nov 2010 |
| Total Posts: 5725 |
|
|
| 31 Jul 2017 02:25 PM |
I don't know the stun script, it's probably inside your admin script, you can replace the part with "char.Humanoid.Health = 0" with it if you can find it
|
|
|
| Report Abuse |
|
|