Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

attempt to index field a number value?

Asked by 6 years ago

repeat wait(1) if character.Humanoid.Health.Value == character.Humanoid.Health.Value <50 then ef1 = game.Instance.new("Smoke") ef1.Opacity = 0.5 ef1.Size = 20 ef1.Parent = character.ArmouredTitan.UpperTorso steamy = character.ArmouredTitan.UpperTorso.steamy steamy.Transparency = 0 dead = "healing" end until
dead == "complete" or dead == "healing"

repeat wait(1) if dead == "healing" and character.Humanoid.Health.Value == character.Humanoid.Health.Value >80 then ef1:Destory() steamy.Transparency = 1 dead = "healed" end until dead == "healed"

The error it gives me is

Players.wadeyboy01.Backpack.morpher:66: attempt to index field 'Health' (a number value)

0
bump wadeyboy01 -59 — 6y
1
Can you post the whole script or at least tell us which is line 66? Please also format your code by hitting this button (https://scriptinghelpers.org/images/icons/lua-icon.png) and pasting it between the "~~~". Also, there's no such thing as "bumping" on Scripting Helpers. WillieTehWierdo200 966 — 6y
0
line 66 is the top one wadeyboy01 -59 — 6y

Answer this question