generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Backspace

Previous Thread :: Next Thread 
Johnny_Dev is not online. Johnny_Dev
Joined: 25 Apr 2014
Total Posts: 101
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 is not online. 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 is not online. 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
Johnny_Dev is not online. Johnny_Dev
Joined: 25 Apr 2014
Total Posts: 101
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 is not online. 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
Johnny_Dev is not online. Johnny_Dev
Joined: 25 Apr 2014
Total Posts: 101
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image