#context action service is overriding userinputservice :(

1 messages · Page 1 of 1 (latest)

wheat veldt
#

ive got a script that uses context action service to handle abilities, then i have another script that uses userinputservice to handle a visual display of the cooldowns on the abilities. the visual cooldowns thing doesnt work, if i set the visual cooldowns keybind to something else it works. if i remove the "if gameProcessedEvent then return end" then it works. pls help!!

fathom phoenixBOT
#

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

cinder gull
#

contextactionservice takes it up and the gameprocessedevent is therefore true for the keybind

wheat veldt
#

ahh

#

anything i can do to fix it?

cinder gull
#

removing the gameprocessedevent check means you are only listening for the input itself, without regard for whether or not it did something (like type in chat or be used by cas)

wheat veldt
#

hmm

cinder gull
wheat veldt
#

i guess i have to put them in the same script

#

damn i was really hoping to not have to do that </3

cinder gull
#

?

#

if you really dont want to you can just use a bindableevent

#

that fires whenever the contextactionservice call is triggered

#

and the logic stays in 2 diff scripts

wheat veldt
#

oh actually thats a really good idea

cinder gull
#

though i wouldnt reccomend it unless you really have to

#

why is it necessary for them to be in 2 diff scripts?

wheat veldt
#

ehhh im just lazy and dont want to update all of them, i have a bunch of different characters

#

probably should at some point make a module script for the abilities

cinder gull
wheat veldt
#

:P

cinder gull
#

but as a temporary fix you can just do the bindable method

#

though that will be a pain ot maintain