#Help why is this an error and why is the color gone
1 messages · Page 1 of 1 (latest)
Bro does not know if else
it's an error
bc i put else
A state manager is one of those systems that separates clean, scalable games from messy ones. In this video, I’ll break down exactly what a state manager is, why almost every serious game uses one (especially combat and simulator games), and how to make a simple, modular one yourself.
✅ Modular — drop it into any system
✅ Stops buggy ov...
i lined it up
show full script
ight
well thats happening because of the nesting
beig horrible
being
add extra end and see what happens
all the way at the end
of this
this
wait
nvm
show the script in order
show script in pastebin
its easier for me
ok
end
else
States[plr]["Stunned"] = nil
if plr.Character and plr.Character:FindFirstChild('Humanoid') then
local currentHumanoid = plr.Character:FindFirstChild('Humanoid')
currentHumanoid.WalkSpeed = States[plr].OriginalWalkSpeed or 16
States[plr].OriginalWalkSpeed = nil
StunTimer[plr] = nil
end
if next(States[plr]) == nil then
States[plr] = nil
end
thisi s the error
@violet surge
@merry dove
how did i format it
i added an extra end it's still
erro
r
oh
can someone tell me
why does it have to be formattedl ike that
watched countless tutorials
and forum
and they didn't tell me
the way something has to be formatted
if you have an error like
something didnt close because it got then instead of ) then check your code
and format it
correctl
oh ok
correctly
i have one more thing
that just means plr stateKey value and duration are nonexistent or they equal to nil
but I referenced
it
how do i not make them nil
they are already in the module
script
show fulls cript
** You are now Level 9! **
script
you cant reference it from the modulescript
you have to reference it from the script that requires the modulescript in order to use it in the modulescript
oh
so i have to be like
local stateKey = "idle"