Flying toggling randomly when flying!

Can anyone help me!
I’m just flying and the next thing I know it toogle even though I didn’t press “Y”
here’s the code

fixed

and I start speed walking too

module script here

fixed!

This will be deleted once fixed, the devforum topic I made since its a project that’s not complete at all!
Bioshot is electric state 5000 years in advance!

1 Like

Try replacing your if statement line with this:

if input.KeyCode == Enum.KeyCode.Y or input.KeyCode == Enum.KeyCode.ButtonY then
1 Like