#why does my script don't remove the prev after an value has been triggered?

1 messages · Page 1 of 1 (latest)

night prawn
#

I'm making a n FNAF game so I'm making a boss, so It'll be good if anyone helps me.

lusty sun
#

Bro you gave so much information for someone to help you

#

It's a lot

#

never give this much information

#

again

night prawn
#

dude I'm just gonna paste the entire script

#

plus it's just a tiny bug

lusty sun
#

Paste it

night prawn
#

aight wait

#

my PC is booting up

#

just the end

#

the ai is so broken that you have to calculate when he is coming

#

dawg 😭

#

plus the prev which is the movement does NOT remove when you activate an value

lusty sun
#

did you use broke ahh ai tf is this code

#

why tf did you use wait after locals

night prawn
#

I used all of my knowledge

#

into that

#

no way the ai uses repeat

lusty sun
#

fr

night prawn
#

I just scripted it all

#

actually I made that script before I even used ai

#

but anyways

#

Ii don't know why it doesn't remove the prev

#

which is the next movement

#

and why hes unpredictable

#

cause he kills you out of nowhere

night prawn
lusty sun
#

so uh

#

why do you destroy the same thing

#

twice

#

without using "if"

night prawn
#

i tried the thing twice

lusty sun
#

so game sees like nil:Destroy()

#

wait

#

not sure if that's the issue but

#

let me send you a part

#

nvm

#

not adding local to the start doesn't break the code

night prawn
#

so thats the main issue?

lusty sun
#

just use local prev at the start and then don't use local again

#

I think so but I'm not a professional about Luau

night prawn
#

isnt local for a variable

lusty sun
#

local x = 1
if blah blah then
local x = 2
end

no need to do this

#

Even if the problem is not this you should call someone who can solve better than me

#

I'm not that good at solving

split zinc
#

skill issue

#

i have spams reading this code

#

cant help sorry

#

tried to not be toxic