#it says "attempt to call a nil value " after recognizing it
32 messages · Page 1 of 1 (latest)
and the instance is the humanoid
so it already finds the humanoid and its parent before using status checker
yes
try game.Players:GetPlayerFromCharacter(BlockCast.Instance.Parent)
** You are now Level 4! **
but it says nil
can i see what blockcast.instance is?
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
show me the output with the error
one last thing can i see what is print(blockCast.Instance.Parent)?
the rig is the character
I’ll send it tomorrow I gtg get my sleep
It's got nothing to do with that line
It's the line after it. "CheckStatuses" isn't an existing key in the "StatsModule" table
Thank you, it worked.