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: Controlled Jumping

Previous Thread :: Next Thread 
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
29 Apr 2014 04:25 PM
I just made this off the top of my head, obviously I didn't did it correctly.

tool.Parent.Humanoid.Jumping:connect(function(jumpbool)
if jumpbool == true then
justjumped = tool:FindFirstChild("JustJumped")
if justjumped then
tool.Parent.Humanoid.Jump = false
elseif not justjumped then
bodyforce = Instance.new("BodyForce",tool.Parent.Torso)
bodyforce.force = Vector3.new(0,-2000,0)
game.Debris:AddItem(bodyforce,1)
boolvalue = Instance.new("BoolValue",tool)
boolvalue.Name = "JustJumped"
game.Debris:AddItem(boolvalue,3)
end
end
end)
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
29 Apr 2014 04:58 PM
B
Report Abuse
ruines is not online. ruines
Joined: 25 Oct 2013
Total Posts: 7823
29 Apr 2014 05:25 PM
What do you mean control jumping? like,someone controls another person's jump? or wut? ;P
Report Abuse
robomax11 is not online. robomax11
Joined: 07 Jul 2011
Total Posts: 6828
29 Apr 2014 05:40 PM
something like stamina

ˢᶦᵈᵉ ᵉᶠᶠᵉᶜᵗˢ ᵐᵃʸ ᶦᶰᶜᶫᵘᵈᵉ﹕ ᶫᵃᶜᵗᵃᵗᶦᶰᵍ, ʰᵉᵃᵈ ᵉˣᵖᶫᵒᵈᶦᶰᵍ ˢʸᶰᵈʳᵒᵐᵉ, ᵃᶰᵈ ᶫᵒˢˢ ᵒᶠ ᵍᵉᶰiᵗᵃᶫˢ
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
29 Apr 2014 06:04 PM
@above
Correct(nice text by the way). It should make the player only be able to jump every 3 seconds and when they do jump, it isnt as high
Report Abuse
Perci1 is not online. Perci1
Joined: 24 Jan 2011
Total Posts: 1027
29 Apr 2014 06:11 PM
Is jumping a valid event? I always just used the Changed event.
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
29 Apr 2014 06:41 PM
Jumping is. It creates the bodyforce, the problem is that it doesnt stop you from jumping if justjumped is in the tool
Report Abuse
Fusi0nScripter is not online. Fusi0nScripter
Joined: 26 Mar 2013
Total Posts: 171
29 Apr 2014 06:45 PM
SO somehting like Apocoypse Rising has.

I used to have one but I don;t know where I put it(or if I removed it from one of my games)
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