local function enableLongJump(player)
local character = player.Character or player.CharacterAdded:Wait()
if character and character:FindFirstChild("Humanoid") then
local humanoid = character.Humanoid
humanoid.StateChanged:Connect(function(oldState, newState)
if newState == Enum.HumanoidStateType.Jumping then
local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
if humanoidRootPart then
local force = Instance.new("BodyVelocity")
force.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
force.Velocity = humanoidRootPart.CFrame.LookVector * 20 -- Adjust this value for jump distance
force.Parent = humanoidRootPart
wait(0.5)
force:Destroy()
end
end
end)
end
end
game.Players.PlayerAdded:Connect(function(player)
enableLongJump(player)
end)
for _, player in pairs(game.Players:GetPlayers()) do
enableLongJump(player)
end
Comments
No comments yet
Be the first to share your thoughts!