|
| 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 |
|
|
| |
|
|
| 09 Jul 2013 05:42 PM |
| I don't believe Jumping is a property jump is a property though. |
|
|
| Report Abuse |
|
|
|
| 09 Jul 2013 05:44 PM |
| @Per .Jumping is an event of the Humanoid. |
|
|
| Report Abuse |
|
|
| |
|
|
| 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
|
  |
| 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 |
|
|
|
| 10 Jul 2013 06:40 PM |
| . It's seriously that easy? .-. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 10 Jul 2013 06:42 PM |
use stickmasterluke's jumping cooldown script.
~im captain kickass and i will kickass!~ |
|
|
| Report Abuse |
|
|
ToboboT
|
  |
| Joined: 25 Jun 2011 |
| Total Posts: 2385 |
|
| |
|
|
| 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 |
|
|
|
| 10 Jul 2013 06:54 PM |
| My idea, however, does work. Its just much more complex. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|