So I'm doing stuff with jumping mechanics as seen here:
UserInput = game:GetService("UserInputService")
UserInput.InputBegan:Connect(function(KeyDown, gameProcessed)
if not gameProcessed then
if KeyDown.KeyCode == Enum.KeyCode.Space then
wait(0.2)
game.Workspace.Gravity = 88
wait(2)
game.Workspace.Gravity = 110
end
end
end)
When they hit the Space bar it will do something, but I want it where the Gravity will be 88 until the player hits the ground, once they hit the ground it will reset it to 110. I know I would need to use the until statement or something, but I just don't know how to detect if a player hits the ground or not.
[P.S, READ I'm also not talking about terrain material, I'm talking about parts. I'm using parts as my terrain.]

1 comment
I don't know if this works, but maybe you could use the 'Landed' humanoid state type and when it happens, change the gravity. https://www.robloxdev.com/api-reference/enum/HumanoidStateType