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
 

Re: R Key

Previous Thread :: Next Thread 
CosmicPigeon is not online. CosmicPigeon
Joined: 14 Oct 2012
Total Posts: 5978
10 Oct 2016 07:53 PM
In this gun script how do I make it were if you push r nothing happens instead of reload?
I looked under reload function and can't find "r"


If I shout "Hello fellow ogers!", that would be wrong as i'm a human.
Report Abuse
skydude221 is not online. skydude221
Joined: 15 May 2013
Total Posts: 5014
10 Oct 2016 07:54 PM
give us the code for it


-skydude221
Report Abuse
Wowgnomes is not online. Wowgnomes
Joined: 27 Sep 2009
Total Posts: 26255
10 Oct 2016 08:08 PM
it might be enum.inputobject.value or w/e

aka the number equivalent not the letter


Report Abuse
CosmicPigeon is not online. CosmicPigeon
Joined: 14 Oct 2012
Total Posts: 5978
10 Oct 2016 08:11 PM
So I search for one of those 2


If I shout "Hello fellow ogers!", that would be wrong as i'm a human.
Report Abuse
Wowgnomes is not online. Wowgnomes
Joined: 27 Sep 2009
Total Posts: 26255
10 Oct 2016 08:16 PM
yeah search for the value too, or it might be a depreciated method


Report Abuse
CosmicPigeon is not online. CosmicPigeon
Joined: 14 Oct 2012
Total Posts: 5978
10 Oct 2016 08:22 PM
Nope none of those :(


If I shout "Hello fellow ogers!", that would be wrong as i'm a human.
Report Abuse
Wowgnomes is not online. Wowgnomes
Joined: 27 Sep 2009
Total Posts: 26255
10 Oct 2016 08:24 PM
post script then


Report Abuse
CosmicPigeon is not online. CosmicPigeon
Joined: 14 Oct 2012
Total Posts: 5978
10 Oct 2016 08:25 PM
Maybe this can help

reloadtrigger=waitfor(sp,"Reload")


If I shout "Hello fellow ogers!", that would be wrong as i'm a human.
Report Abuse
CosmicPigeon is not online. CosmicPigeon
Joined: 14 Oct 2012
Total Posts: 5978
10 Oct 2016 08:30 PM
I FIXED IT BY DELETING REMOVE FUNCTION
Should I also delete anything else that says reload


If I shout "Hello fellow ogers!", that would be wrong as i'm a human.
Report Abuse
Wowgnomes is not online. Wowgnomes
Joined: 27 Sep 2009
Total Posts: 26255
10 Oct 2016 08:30 PM
im not helping u


Report Abuse
CosmicPigeon is not online. CosmicPigeon
Joined: 14 Oct 2012
Total Posts: 5978
10 Oct 2016 09:11 PM
I wont let me post script it just says error so


If I shout "Hello fellow ogers!", that would be wrong as i'm a human.
Report Abuse
DlO_BRANDO is not online. DlO_BRANDO
Joined: 24 Feb 2016
Total Posts: 67
10 Oct 2016 09:39 PM
Publish it as a model
Report Abuse
Cytheur is not online. Cytheur
Joined: 12 Aug 2014
Total Posts: 7328
10 Oct 2016 10:29 PM
If you can't figure it out, you can always change the if key == "r" to if key == "~" because nobody is going to press ~


Report Abuse
RubyEpicDragon is not online. RubyEpicDragon
Joined: 02 May 2015
Total Posts: 1211
11 Oct 2016 11:16 AM
local Player = game:GetService("Players").LocalPlayer
local mouse = Player:GetMouse()

function KeyPressed(Key)
if Key = 'r' then
--Your code.
end
end

mouse.KeyDown:connect(KeyPressed)

This should do it I guess.
Report Abuse
12904 is not online. 12904
Joined: 29 Oct 2012
Total Posts: 441
11 Oct 2016 07:51 PM
Use UserInputService.
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