I don't want to let use the skill while jumping

I’m writing a script that won’t let me dash when I’m jumping. But I don’t know how, so I need help

This is a script.

game:GetService("UserInputService").InputBegan:Connect(function(i, gPE)
	if i.KeyCode == Enum.KeyCode.LeftAlt and CanSlide and then
		
	end
	
end)-

help me!

Is this the entirety of your script?

I’m sorry if it wasn’t enough. I thought this was enough. I will try to revise the writing.

Maybe try using. if Humanoid.FloorMaterial == Enum.Material.Air. I not really sure what the problem, but maybe this will help :slight_smile:

Experimented for a while and can’t seem to get it to be accurate majority of the time

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