Unknown error? Unable to query property Health_XML. It is not scriptable
I have no clue what this error is, I have never seen it before in my honest life.
I am creating a respawn script for an npc, and here is what I have so far!
01 | local char = script.Parent |
03 | local lleg = char [ "Left Leg" ] |
04 | local rleg = char [ "Right Leg" ] |
05 | local larm = char [ "Left Arm" ] |
06 | local rarm = char [ "Right Arm" ] |
07 | local torso = char.Torso |
08 | local humanoid = char.Humanoid |
09 | local name = script.Parent.Name |
10 | local clight = game.Lighting:FindFirstChild(name) |
13 | humanoid.Changed:connect( function (property) |
14 | local fvalue = humanoid [ property ] |
15 | local value = tonumber (fvalue) |
16 | if property = = "Health" then |
17 | print ( "health changed" ) |
18 | if value = = 0 or value < 0 then |
24 | if isready = = true then |
26 | print ( "time to respawn" ) |
27 | local clone = clight:clone() |
28 | clone.Parent = game.Workspace |
30 | clone.Script.Disabled = false |
31 | script.Parent:Remove() |
The error that comes up is at Line 14,
The error:
23:12:53.444 - Unable to query property Health_XML. It is not scriptable
23:12:53.446 - Script 'Workspace.urmom.Script', Line 14
23:12:53.448 - Stack End
Does anyone have a clue as to why this happens?