#ContextActionService not working at all.

1 messages · Page 1 of 1 (latest)

simple turret
#

I have a function run when E is hit and it was working before but idk what caused it to stop working. Someone PLEASE help as this script is kinda the base of the game.

livid crystal
#

Any errors

#

?

simple turret
#

nope

#

it doesnt even print "gathering"

ancient vine
#

it would be good to you try to understand the code

livid crystal
#

Can you put a print inside the if debounce == false bit

#

Also is it local or normal script

simple turret
#

local

simple turret
ancient vine
#

yh

livid crystal
#

I think he is talking to me

ancient vine
#

is pretty obvious the problem

livid crystal
#

Just say the problem

ancient vine
#

xd

#

and I recommend to not chain ifs statements like that

simple turret
#

?

ancient vine
#

also sending arrays to a UDim2.new will just create a empty udim2

livid crystal
#

You didn’t point out the error at all

simple turret
simple turret
ancient vine
#

ye if u didn't understand the error is because your directly dont understand your script

#

I sent the portion of code that contains the probably main problem

#

I'm not here to fix your code

livid crystal
#

Bro are you stupid, the whole point of this is for you to help him

simple turret
#

exactly 😭

ancient vine
#

I'm helping, I don't want to spoonfeed

livid crystal
ancient vine
#

Nope

livid crystal
#

He can learn from his mistakes

ancient vine
#

I'm here to help, I sent the portion of code that contains the problem

livid crystal
#

No shit it’s the portion

ancient vine
#

Okay, so learn what is the event Heartbeat of RunService and first of all why did u put that in there?

ancient vine
simple turret
#

i dont really know but i deleted it to test before and it still didnt work

ancient vine
#

how did u deleted it

simple turret
#

its this now

livid crystal
#

Heartbeat runs after everything is rendered, physics is simulated etc

ancient vine
simple turret
#

what the

#

i tried to send it in a code block

ancient vine
#

here?

simple turret
#

yeah

livid crystal
#

That’s dms

simple turret
#

can i not?

livid crystal
#

Wait what

simple turret
#

imma try again

livid crystal
#

Tf

simple turret
#

still doesnt work

ancient vine
simple turret
#

alright

ancient vine
#

I mean in this way works for me, so try out smth similar

simple turret
#

you do ends like that?

#

does it print for you?

#

uh

livid crystal
#

?

simple turret
#

someone come back my issue isnt solved

livid crystal
#

im back

#

instead of using CAS maybe use UIP

#

instead

simple turret
#

uip or uis?

#

i want all devices to be able play

livid crystal
#

user input service

#

you can make mobile buttons

#

for pc just do

#

uip.InputBegan:Connect(function(key)

#

if key == enum.keycode.e

#

etc

simple turret
#

ok thank you

#

uh

#

new problem @livid crystal

#

still doesnt print ANYTHING

#

it doesnt even check for which input and it doesnt print 😭

#

OMG

#

I FOUND THE PROBLEM

#

SOMEONE MOVED THE SCRIPT TO SSS

#

im gonna crash out

#

IT STILL DOESNT WORK

#

OMGMGNBKJs
C
S
CS
S
DS
D
FGDF
SD

#

please help me 😭

ancient vine
#

bro learn scripting

simple turret
#

bro

simple turret
#

i spent a whole day asking for help bruh

#

i hate my life

#

my problem was never solved either