I'm making a combat system where if i press a Certain key it'll move to a different mode and give it different attacks. A bit like the star glitcher. How do i do this?
what i would do is use 0 and 1, as the "modes" so the concept basically is :
local mode = 0 --lets say the button to switch modes is Q if Q is pressed and mode == 0 then mode = 1 end if Q is pressed and mode == 1 then mode = 0 end if ..........keypressed and mode == 0 then do .... if ........ keypressed and mode == 1 then do .....