|
| 14 Aug 2015 10:06 PM |
| How would I prevent every player in the game from jumping? |
|
|
| Report Abuse |
|
|
| |
|
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 |
|
|
| |
|
|
| 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 |
|
|
|
| 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
|
  |
| Joined: 06 Aug 2015 |
| Total Posts: 339 |
|
|
| 14 Aug 2015 10:19 PM |
| Try it out and tell us what happens. |
|
|
| Report Abuse |
|
|
| |
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|