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 » Scripting Helpers
Home Search
 

Re: KeyDown crouch?

Previous Thread :: Next Thread 
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
30 Dec 2013 05:56 PM
I need some help with crouching... but I know the event

Player = script.Parent.Parent
mouse = Player:GetMouse()

function onKeyDown(key)
key = key:lower()

if key == "r" then
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
30 Dec 2013 05:59 PM
Bump.
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
30 Dec 2013 06:02 PM
CFrame.
Report Abuse
VilleSlay is not online. VilleSlay
Joined: 14 May 2011
Total Posts: 1405
30 Dec 2013 06:04 PM
Player = script.Parent.Parent
mouse = Player:GetMouse()

function onKeyDown(Key)--Captitalized "K"
Key = key:lower()--Here aswell

if key == "r" then

--Source

end
end

mouse.KeyDown:connect(onKeyDown)

~~> Ville <~~
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
30 Dec 2013 06:05 PM
Player = script.Parent.Parent
mouse = Player:GetMouse()

function onKeyDown(key)
key = key:lower()

if key == "r" then

Player.Humanoid["Left Leg'].CFrame = CFrame.new(Put wanted rotations/CFrames.)
Player.Humanoid["Right Leg"].CFrame = CFrame.new(Put wanted Rotations/CFrames.)
end

--Connection Statement
Report Abuse
VilleSlay is not online. VilleSlay
Joined: 14 May 2011
Total Posts: 1405
30 Dec 2013 06:05 PM
Oh, I almost forgot.

if Key == "r" then

~~> Ville <~~
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
30 Dec 2013 06:06 PM
I don't hae the sufficient amount of end's but you'll figure it out I hope.
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
30 Dec 2013 06:11 PM
I know the right amount of ends
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
30 Dec 2013 06:19 PM
It's not Player.Humanoid, it's Player.Character
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
30 Dec 2013 06:29 PM
Oh sorry I didn't know your parenting system.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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