Help out with some code (:

yeah please help me read the comments:

local player = game:GetService("Players").LocalPlayer
local character = player.Character
local hum = character.Humanoid
local mode = player:WaitForChild("mode")

if mode.Value == "Normal" then
	--make it so player can jump
elseif mode.Value == "Hard" then
	--make it so the player cant jump but if a script tells it to jump it will jump
end
3 Likes

you could put in the line normal:

character.JumpPower = 200

and in the hard one:

character.JumpPower = 0
1 Like

but then if the script tells the character to jump it will nnot jump beacuse there isnt power to jump

I guess you can change back the jump power as the other person said

--under hard
--add function for event(remoteevent or bindablevent)
--change jumppower back to 200(or whatever jumppower you want)
character.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
--above will make the player jump just make a function and hook up to a event so it can make the character jump
1 Like

Oh, I forgot to mention is that you could make the jumppower back to 0 after the player are forced to jump.

1 Like

Did you make the player have the power to jump?

1 Like

let me just send the code and see your self