When running the script on the player, and setting the bool value “bunny” to true, i cant jump anymore, I need some help solving this issue.
The problem that I want to solve is that when climbing some part, it stops jumping when the bool “bunny” is true.
Here is the LocalScript (In StarterCharacterScripts) :
local val = game.ReplicatedStorage.Values.Poderes.Bunny
local salto = game.ReplicatedStorage.Values.Poderes.Salto
local hum = script.Parent.Humanoid
while task.wait(.1) do
if hum:GetState(Enum.HumanoidStateType.Climbing) then
if val.Value == false then
if salto.Value == false then
hum.JumpPower = 50
else
hum.JumpPower = 65
end
else
hum.JumpPower = 0
end
end
end