Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why wont this health script work?

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 comment

1

The script is in Workspace. This shows a mirthless lack of understanding.

1 answer

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??

This discussion is preserved as it was. New answers, comments, and votes are closed.