And sorry that I replied you by accident p-p
If jumping is disabled on the client it will never have an opportunity to be replicated to the server.
Basically, It just needs to use FireServer() Function if Its trying to use it in a client-sided script.
when they jump, the client tells the server they jumped and it replicates to all the other clients. If the client never sends that signal, the server will never replicate it to the other clients. The act of pressing your spacebar can only be detected on the client. There is no need for using a remote event
Then just use a server-side script, or a script in the StarterCharacterScripts. What I was saying is if the guy is trying to use it in a client-sided script then it would use a remote Event if he was trying to share it with the server.
If I’m getting a bit annoying about the sharing of the client that probably doens’t exists, I’m sorry.
dude all you have to do is set the local players jumppower to 0 and it will never replicate to the server if they jump. setting the jumppower on the client and server have the same effect so no remote event should be ever used
By the way, they just left and they aren’t responding anymore o_o
Probably just waiting a random guy give a solution lol.
btw how do you not know basic lua server to client behavior
I’m literally confused, and theres only us here discussing about something, also i understanded that it auto replicates to the server, and until now nobody got a solution so what?
Let me explain client and server for you
Server: the game running
Client: the players computer
when the player presses their spacebar on their keyboard the server isnt able to check that since it isnt the computer. The client which is the computer, is the one who detects the spacebar being pressed. The reason jumping auto replicates is because the server isnt able to tell when they press their spacebar at the same time, the server is able to edit the effects of the jumping. If the server wants it can change the power of the jump. High power = higher jump. Lower power = lower jump.
setting the jumppower to 0 or less will process the jump but the power dictates they dont move at all.
Bassically all of this means that both the client and the server have the same power over jumppower and adding a remote event would be useless
bro i already UNDERSTOOD this functionality of client and server things and stuff, and didn’t you atleast read my latest reply? WE ARE ALONE HERE DISCUSSING ABOUT SOMETHING THAT ENDED LOTS OF MINUTES AGO AND PROBABLY HOURS
Hi.
I’m not sure what kind of argument I stirred up in this post, but thank you all for suggesting solutions and going along with your day (unlike a certain someone). I was not able to respond yesterday but I got it to work with changing the HumanoidStateType.
Not only were you wrong but you also felt the need to yell at everyone for no reason. I get it might be common knowledge for some, but it wasn’t for me. That’s the whole point of this section of the DevForums, helping people who don’t know better. Thanks anyway
use JumpPower not humanoidstate. I’m not wrong I’m just giving you the standard way you’re supposed to stop the player from jumping. With JumpPower you arent limited to just disabling jumping but if you change the “0” and actually increases/decreases the height they jump. The default JumpPower is 50 so making it less than 50 will make their jump less and higher will make their jumps higher.
also you can’t be saying I’m wrong when you don’t know the basics of lua. Go watch some tutorials.
I said in the original post JumpPower wasn’t cutting it. Yes, jumping won’t get the player anywhere, but they can still perform the action of jumping, which is what I wanted to disable.
Don’t use Jumppower for that or the Client us Humanoid.Jump = False
I have improved from scripting lately, i know that
Good! The more you know the better
Like a year late but it usually isn’t a good idea to talk to people like that. In this case it’s especially embarrassing because setting JumpPower to 0 still allows players to exit the Sitting state on PC, so the “simpler” solution you provided is simply incorrect.