Messing around with scripts and such, I was trying to make a double jump script ( LocalScript Parent is Folder, Folder Parent is Workspace ) i've also tried putting the LocalScript in StarterPlayer.StarterPlayerScripts but still the same issue
Here is the LocalScript:
-----------Variables-------------
local player = game.Players.LocalPlayer
local character = player.Character
local Humanoid = character:WaitForChild("Humanoid")
local oldJumpPower
local CanDoubleJump = false
local Mult = 2
local Cooldown = 0.2
local DoubleJumped = false
-------------------------------------
function DoubleJumpRequest()
if not character or not Humanoid or not player then
return
end
if CanDoubleJump and not DoubleJumped then
CanDoubleJump = true
Humanoid.JumpPower = oldJumpPower * Mult
Humanoid.ChangeStats(Enum.HumanoidStateType.Jumping)
end
end
Humanoid.StateChanged:Connect(function(new)
if new == Enum.HumanoidStateType.Landed then
CanDoubleJump = false
DoubleJumped = true
wait(Cooldown)
DoubleJumped = false
end
end)
The Output Says nothing, Could you help me fix this??? I'm so confused me potato brain :P

3 comments
You can't run a LocalScript in server(in this case WorkSpace).
i've tried doing that but still the same issue
Uh is oldJumpPower nil. Because you just do local oldJumpPower so the oldJumpPower don't have any value.