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: How do I stop double jumping?

Previous Thread :: Next Thread 
Barbariancreep is not online. Barbariancreep
Joined: 23 Nov 2012
Total Posts: 1096
06 Jul 2015 03:38 AM
while true do
local humanoid = script.Parent.Parent.Character:FindFirstChild("Humanoid")
if humanoid ~= nil then
if humanoid.Jump == true then
humanoid.Parent.Torso.Velocity=Vector3.new(0,110,0)
wait(.5)
humanoid.Jump = false
humanoid.Parent.Torso.Velocity=Vector3.new(0,0,0)
end
end
wait()
end

I can jump forever while in the air :(
Report Abuse
Septamology is not online. Septamology
Joined: 20 Jun 2013
Total Posts: 2811
06 Jul 2015 03:51 AM
Try using events instead.
Report Abuse
Barbariancreep is not online. Barbariancreep
Joined: 23 Nov 2012
Total Posts: 1096
06 Jul 2015 03:54 AM
i've never used events how would i do that?
Report Abuse
Barbariancreep is not online. Barbariancreep
Joined: 23 Nov 2012
Total Posts: 1096
06 Jul 2015 04:57 AM
b
Report Abuse
louiskk is not online. louiskk
Joined: 31 Dec 2008
Total Posts: 228
06 Jul 2015 05:49 AM
Events are ways of detecting changes and triggering a function in response.

E.g

function jumpHigh()

end

humanoid.Changed:connect(jumpHigh)

Now whenever something in humanoid changes it will run the function.
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