#keybinds overlapping

1 messages · Page 1 of 1 (latest)

cyan stump
#

so basically im trying to make it so that if i press a keybind and an animation plays no other keybinds will work until the animation is finished playing

#

i tried making a system similar to debounce but it didnt work and im not sure how to fix it

summer glen
#

trying to do an if when the animation started

#

if animation.Played()

#

idrk so yea

#

and you can make a debounce if that works

cyan stump
#

didhnt work

#

these are the scripts that overlap with each other when i press both of their keybinds at the same time

summer glen
#

cant you change the

#

keybind

#

cuz when i work in my ui

#

i use debounce

#

so it doesnt overlap when someone press another button

cyan stump
#

yeah the keybinds are different for both scripts the only issue is taht when i press both keybinds itll play both at the same time when i only want it to play one at a time

summer glen
#

oh i know a solution

#

make a thing

#

local active = false

#

if active = true then

#

try to disable the script cuz idk how xd

cyan stump
#

thats the same as the "local endlag = false" that i made

velvet veldtBOT
#

studio** You are now Level 4! **studio

cyan stump
#

and it would disable the other script itself because its checking for if its true or not

summer glen
#

is it a one fuction

#

or seperate fuctions

cyan stump
#

its one big function for each