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

Previous Thread :: Next Thread 
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
09 Jul 2013 05:08 PM
Because on a war game, the ability to spam jump does not end well... I want to limit it,

the only problem is, I'm not sure how I'd go about doing it, I have this so far, how would I prevent jumping? I noticed games like Apoc Rising and ROBLOX Battle have something similiar.

------------------

Maxjump = 5
jump = 0

while wait(5) do
jump = 0
game.Players.LocalPlayer.Character.Humanoid.Jumping:connect(function()
jump = jump + 1
if jump >= Maxjump then
----?
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
09 Jul 2013 05:16 PM
Bump
Report Abuse
Perversion is not online. Perversion
Joined: 07 Jul 2013
Total Posts: 78
09 Jul 2013 05:42 PM
I don't believe Jumping is a property jump is a property though.
Report Abuse
Unsubstantial is not online. Unsubstantial
Joined: 11 Sep 2012
Total Posts: 872
09 Jul 2013 05:44 PM
@Per .Jumping is an event of the Humanoid.
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
10 Jul 2013 05:44 PM
Bump
Report Abuse
RoyStanford is not online. RoyStanford
Joined: 21 Oct 2008
Total Posts: 2222
10 Jul 2013 05:47 PM
hum.Changed:connect(function(prop)
if prop == "Jump" then
if hum.Jump == true then
hum.Jump = false
end
end
end)
Report Abuse
ToboboT is not online. ToboboT
Joined: 25 Jun 2011
Total Posts: 2385
10 Jul 2013 05:49 PM
Maxjump = 5
jump = 0

while wait(5) do
jump = 0
game.Players.LocalPlayer.Character.Humanoid.Jumping:connect(function()
jump = jump + 1
if jump == Maxjump then
for i = 1,100 do
game.Players.LocalPlayer.Character.Humanoid.Jump = false
end
wait(1)
jump = 0
end
end)

Try this
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
10 Jul 2013 06:40 PM
. It's seriously that easy? .-.
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
10 Jul 2013 06:41 PM
If you dont like jumping, you can do this:

In a LocalScript, get the players mouse. Then set their Humanoid's PlatformStanding to true. Then insert BodyVelocity, BodyPosition and BodyGyro into their torso. Then use Mouse.KeyDown to control movement, with a loop that uses raycasting to calculate their distance from the ground, set their BodyGyro to be based off of their cameras direction, and control WASD movement control. You may then add other things like sprint and maybe jumping, if thats what you want.
Report Abuse
MonkeyMusketeer is not online. MonkeyMusketeer
Joined: 23 Oct 2012
Total Posts: 71
10 Jul 2013 06:42 PM
use stickmasterluke's jumping cooldown script.

~im captain kickass and i will kickass!~
Report Abuse
ToboboT is not online. ToboboT
Joined: 25 Jun 2011
Total Posts: 2385
10 Jul 2013 06:45 PM
Thecaptian did it work?
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
10 Jul 2013 06:51 PM
None of the Jump=false ones are working for me. =/

neither is stickmasterluke's which I find odd
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
10 Jul 2013 06:54 PM
My idea, however, does work. Its just much more complex.
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
10 Jul 2013 06:56 PM
Well I want to just prevent the constant spam jumping [Refered to as "Bunny hoping" a lot] not to make a psedo control for the characters
Report Abuse
Unsubstantial is not online. Unsubstantial
Joined: 11 Sep 2012
Total Posts: 872
10 Jul 2013 07:04 PM
local char = Game.Players.LocalPlayer.Character
char.Humanoid.Changed:connect(function(property)
if (property=="Jump") then
char.Humanoid.Jump=false
char.Torso.Velocity=Vector3.new(0,-30,0)
end
end)

--inside a localscript in playergui
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