LocalScript
wait(2) game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
thats all. like this is simply to disable jumping, but somehow it dosent work, dosent error, but if i paste this line of code in the shell it works.
game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
seems like it never runs.
Create a normal script inside StarterPlayer > StarterCharacterScripts and paste this.
-- the reason why we put in StarterCharacterScripts is because it will only run if the player spawns/respawns local character = script.Parent -- everything inside StarterCharacterScripts will be moved to the player's character when he/she joins the game, then the scripts will run. this one should get the character of the player when you join the game local humanoid = character:FindFirstChildOfClass("Humanoid") -- FindFirstChildOfClass gets the child of an instance that is the same class as what is written in the argument which is "Humanoid" humanoid.JumpPower = 0 humanoid.JumpHeight = 0 humanoid:SetSateEnabled(Enum.HumanoidStateType.Jumping, false) -- disables jumping
If you want explanations of the script, read the comments in the script.
You don't have to use a script for this, all you need to do is go to StarterPlayer and scroll down until you see CharacterUseJumpPower, then uncheck that
Some places local scripts just won't run, some places it will run in is:
A Player's Backpack, such as a child of a Tool A Player's character model A Player's PlayerGui A Player's PlayerScripts. The ReplicatedFirst service
More about local scripts: https://create.roblox.com/docs/reference/engine/classes/LocalScript