#it says "attempt to call a nil value " after recognizing it

32 messages · Page 1 of 1 (latest)

nocturne fern
#

The printing part works btw

#

and the instance is the humanoid

#

so it already finds the humanoid and its parent before using status checker

feral patrol
#

is the error the line highlighted?

#

@nocturne fern

nocturne fern
#

yes

feral patrol
#

try game.Players:GetPlayerFromCharacter(BlockCast.Instance.Parent)

nocturne fern
#

im not trying to get the player

#

im only trying to send the char as a paramater

viscid spadeBOT
#

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

nocturne fern
#

but it says nil

feral patrol
#

can i see what blockcast.instance is?

nocturne fern
#

if blockCast then
if blockCast.Instance.Parent:FindFirstChild('Humanoid') then
print(blockCast.Instance.Parent)
local EnemyChar = blockCast.Instance.Parent
local StatusChecker = StatusModule.CheckStatuses(EnemyChar, char)
if EnemyChar then
local EnemyHum = blockCast.Instance.Parent:FindFirstChild('Humanoid')
if EnemyHum then

#

i made it check hum twice cause it kept saying nil

feral patrol
#

show me the output with the error

nocturne fern
feral patrol
#

one last thing can i see what is print(blockCast.Instance.Parent)?

nocturne fern
#

its just the dummy

#

so the character name

feral patrol
#

that's the issue

#

dummies can't be characters i'm pretty sure

nocturne fern
#

the rig is the character

feral patrol
#

forget i said that

#

wow 1 am made me think players and character are the same

nocturne fern
#

im trying to fix this before going to bed bruh 😭

#

i got school tomorrow

feral patrol
#

i don't see why this shouldn't be working

#

record a clip

nocturne fern
#

I’ll send it tomorrow I gtg get my sleep

spice ingot
#

It's the line after it. "CheckStatuses" isn't an existing key in the "StatsModule" table