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

Idk why it isnt working i see no fault?

Asked by 9 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
01local Player = game.Players.LocalPlayer
02local Humaniod = Player.Character.Humaniod
03local Health = script.Parent
04while wait()do
05    Health.Size = UDim2.new((Humaniod.Health / Humaniod.MaxHealth)*0.975,0,0.9,0)
06    if Humaniod.Health <= 50 then
07        Health.BackgroundColor3 = Color3.new(181,0,0)
08    end
09    if Humaniod.Health <= 25 then
10        Health.BackgroundColor3 = Color3.new(181,0,0)
11    end
12end

16:50:16.207 - Humaniod is not a valid member of Model~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~

0
You've misspelt Humanoid Nickyninja07 35 — 9y
0
Fixed formatting Shawnyg 4330 — 9y

2 answers

Log in to vote
1
Answered by 9 years ago

One: Humanoid isn't spelled Humaniod. That's the only problem. Two: You're not using LUA converter correctly, so it's hard for some of us to read. Thanks ^^; -Nickyninja07 also pointed out the Humanoid incorrect spelling.

Ad
Log in to vote
0
Answered by 9 years ago

The mistake I clearly see (no offence) is spelling "humanoid" as "humaniod" "Model.Humaniod" doesn't exist, while "Model.Humanoid" does.

Answer this question