Doesn't let me get up from the seat after jumping to the seat

My issue is that this b-hop script won’t let me get off the seat after I jump to it. Yes, it’s a free model but I’m just trying to do my thing. I know free-models are bad but I don’t know how to make a b-hop script, and it’s 1/4 of the movement system. Found this error through trial and error.

local LocalPlayer = game:GetService("Players").LocalPlayer
local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
local Velocity = Instance.new("BodyVelocity")

Velocity.Parent = HumanoidRootPart
local HumanoidState = nil
local Humanoid = Character:WaitForChild("Humanoid")
local Jumping = false
local CanJump = 10

local function Check()
	HumanoidState = Humanoid:GetState()
	if HumanoidState ~= Enum.HumanoidStateType.Freefall then
		Velocity.MaxForce = Vector3.new(0, 0, 0)
		Velocity.Velocity = HumanoidRootPart.Velocity
		Jumping = false
		return
	end
	Velocity.MaxForce = Vector3.new(5000, 0, 5000)
	if not Jumping then
		Velocity.Velocity = Velocity.Velocity * 1.1
		Jumping = true
	end
	Velocity.Velocity = Velocity.Velocity + Humanoid.MoveDirection * 1
end

game:GetService("RunService").RenderStepped:Connect(function()
	Check()
	CanJump = math.clamp(CanJump - 1, 0, 10)
end)

Humanoid.UseJumpPower = true

game:GetService("UserInputService").JumpRequest:Connect(function()
	if CanJump == 0 then
		Humanoid.JumpPower = 40
	else
		Humanoid.JumpPower = 0
	end
	CanJump = 10
end)

Humanoid.Died:Connect(function()
	Velocity:Destroy()
end)

solved with 1 line of addition, Humanoid.Sit = false

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.