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

Why wont this health script work? [closed]

Asked by 8 years ago

It says Humanoid is not a valid member of workspace.

    script.Parent.Humanoid.WalkSpeed.Value = 40 
    script.Parent.Player.Humanoid.Health.Value = 499
    script.Parent.Player.Humanoid.MaxHealth.Value = 500
1
The script is in Workspace. This shows a mirthless lack of understanding. User#6546 35 — 8y

Closed as Not Constructive by User#6546 and Pyrondon

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 8 years ago

Try This

local Player = game.Workspace.PLAYERNAMEHERE

Player.Humanoid.WalkSpeed = "40"
Player.Humanoid.Health = "499"
Player.Humanoid.MaxHealth = "500"

I dont know if you want it like this, But From my understanding thats how you want it.

One question, Where did you get the Value from??

Ad