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 8 years ago

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




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

``[[](http://)](http://)``

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

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

2 answers

Log in to vote
1
Answered by 8 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 8 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