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: Prevent character from jumping?

Previous Thread :: Next Thread 
000killnoobs000 is not online. 000killnoobs000
Joined: 03 Feb 2012
Total Posts: 503
14 Aug 2015 10:06 PM
How would I prevent every player in the game from jumping?
Report Abuse
000killnoobs000 is not online. 000killnoobs000
Joined: 03 Feb 2012
Total Posts: 503
14 Aug 2015 10:14 PM
b1
Report Abuse
71428 is not online. 71428
Joined: 06 Aug 2015
Total Posts: 339
14 Aug 2015 10:17 PM
This goes inside a script in Workspace

game:GetService("Players").PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
character.Humanoid.Changed:connect(function()
character.Humanoid.Jump = false
end)
end)
end)
Report Abuse
bosswalrus is not online. bosswalrus
Joined: 04 Jan 2013
Total Posts: 5430
14 Aug 2015 10:17 PM
Use the Toolbox.
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
14 Aug 2015 10:17 PM
there is a newer way then this but here

p = game.Players.LocalPlayer
repeat wait() until p.Character.Humanoid
p.Character.Humanoid.Changed:connect(function()
p.Character.Humanoid.Jump = false
end)

localscript in playergui
Report Abuse
000killnoobs000 is not online. 000killnoobs000
Joined: 03 Feb 2012
Total Posts: 503
14 Aug 2015 10:18 PM
That won't work because the Jump thingy is already false and it only turns to true as you jump.
Report Abuse
71428 is not online. 71428
Joined: 06 Aug 2015
Total Posts: 339
14 Aug 2015 10:19 PM
Try it out and tell us what happens.
Report Abuse
000killnoobs000 is not online. 000killnoobs000
Joined: 03 Feb 2012
Total Posts: 503
14 Aug 2015 10:19 PM
@Legendary thanks :)
Report Abuse
71428 is not online. 71428
Joined: 06 Aug 2015
Total Posts: 339
14 Aug 2015 10:21 PM
Interesting... the script I posted works in Studio Mode but not on an actual server. This is bothering me. I have no idea why that is happening.
Report Abuse
Luxurize is not online. Luxurize
Joined: 31 Mar 2015
Total Posts: 1289
14 Aug 2015 10:24 PM
Local script:

player = game.Players.LocalPlayer.Character.Humanoid
function isJumping()
if player.Jump == true then
return true
end
return
end

if isJumping() == true then
player.Jump = false
end


“Psychopaths are not crazy. They are fully aware of what they do and the consequences of those actions.”
Report Abuse
Luxurize is not online. Luxurize
Joined: 31 Mar 2015
Total Posts: 1289
14 Aug 2015 10:25 PM
Note, I haven't tested it online, but hit me up if something goes wrong.


“Psychopaths are not crazy. They are fully aware of what they do and the consequences of those actions.”
Report Abuse
Xsitsu is not online. Xsitsu
Joined: 28 Jul 2009
Total Posts: 2921
14 Aug 2015 10:26 PM
The best way would be to edit the default ControlScript in PlayerScripts to never set the Jump value of the player to true.

This would still enable you to manually set a character to jumping through their humanoid property, but they wouldn't be able to make themselves jump.
Report Abuse
Luxurize is not online. Luxurize
Joined: 31 Mar 2015
Total Posts: 1289
14 Aug 2015 10:26 PM
Also, just leave the script in the Workspace.


“Psychopaths are not crazy. They are fully aware of what they do and the consequences of those actions.”
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