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: How to disable Jumping in game.

Previous Thread :: Next Thread 
NewhallDistrict is not online. NewhallDistrict
Joined: 02 Sep 2014
Total Posts: 308
10 Sep 2014 09:14 PM
Don't give that Jumping = false crap because never ever does it ever work online.
Report Abuse
IAmTheRolo is not online. IAmTheRolo
Joined: 12 Nov 2013
Total Posts: 859
10 Sep 2014 09:17 PM
It actually does work...
Report Abuse
NewhallDistrict is not online. NewhallDistrict
Joined: 02 Sep 2014
Total Posts: 308
10 Sep 2014 09:18 PM
Okay is it local or what

What code?
Report Abuse
IAmTheRolo is not online. IAmTheRolo
Joined: 12 Nov 2013
Total Posts: 859
10 Sep 2014 09:19 PM
humanoid.Changed:connect(function()
humanoid.Jump = false
end)

I use this for my game, and yet has it failed.
Report Abuse
NewhallDistrict is not online. NewhallDistrict
Joined: 02 Sep 2014
Total Posts: 308
10 Sep 2014 09:21 PM
Normal script in workspace?
Report Abuse
IAmTheRolo is not online. IAmTheRolo
Joined: 12 Nov 2013
Total Posts: 859
10 Sep 2014 09:22 PM
As long as you define humanoid, it would work in both a local script or a server script.
Report Abuse
cooldude999921 is not online. cooldude999921
Joined: 13 Aug 2011
Total Posts: 3702
10 Sep 2014 09:22 PM
make this a localscript in starterGui


player = game.Players.LocalPlayer


player.Character.Humanoid.Changed:connect(function(n)
if n == "Jump" then
player.Character.Humanoid.Jump = false
end
end)
Report Abuse
IAmTheRolo is not online. IAmTheRolo
Joined: 12 Nov 2013
Total Posts: 859
10 Sep 2014 09:24 PM
@cool

The conditional will slow down the script (at an exponentially small amount), so the humanoid will be in the air by the time Jump is set to false.
Report Abuse
cooldude999921 is not online. cooldude999921
Joined: 13 Aug 2011
Total Posts: 3702
10 Sep 2014 09:27 PM
r u sure?


works for online and test mode in studio


Report Abuse
iiEssence is not online. iiEssence
Joined: 18 Jun 2014
Total Posts: 3467
10 Sep 2014 09:29 PM
It will slow down by a really tiny fraction of a second. It would still work, but yes, your's is more efficient.
Report Abuse
NewhallDistrict is not online. NewhallDistrict
Joined: 02 Sep 2014
Total Posts: 308
10 Sep 2014 09:36 PM


humanoid = game.Players.LocalPlayer.Character.Humanoid

wont work

(local) (iamrobo method)
Report Abuse
iiEssence is not online. iiEssence
Joined: 18 Jun 2014
Total Posts: 3467
10 Sep 2014 09:39 PM
put it in startertools
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