How would I make the player jump mid-air inside a block that has CanCollide true?

As this video shown, I want the player to be able to jump mid-air inside the block.

I am confused on how people do this, because I have tried Humanoid.Jump = true and Humanoid:ChangeState(Enum.HumanoidStateType.Jumping), but nothing seems to be working.

local Elevator = script.Parent

Elevator.Touched:Connect(function(Hit)
	local Character = Hit.Parent
	local Humanoid = Character:FindFirstChildOfClass("Humanoid")
	
	if Humanoid then
		wait()
		Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
	end
end)

I’ve also tried setting the Velocity but that didn’t work either.

How would I fix this problem?

2 Likes

I’d use FloorMaterial property of Humanoid and when it equals to Air I would just change can collide of the part to false.

1 Like

I just found out how to do it, by using body velocity.

Apologies for the late response, I am not as active as I used to be.

https://www.roblox.com/library/3268407653/JToH-Tower-Creation-Kit-v5-2

You can simply take a look at the JToH kit, and see how the levitation is created.

Other Difficulty Chart Obbies use the JToH kit for its levitation.