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?