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

How to make my script detect if player's humandroid is at 0? Much more...

Asked by 9 years ago
1local Cut = game.Workspace.CutsceneScript
2local player = game.Workspace.HELP ME HERE.Humandroid
3 
4Cut.Disabled = true
5if player health is down to 0
6    the cutscene will never appear again
7end

I was making something with the cutscene thing. There is a script called "CutsceneScript" which is disabled. When the player enter's the game, the cutscene show's. When the player die's, the cutscene must be disabled. How do I do this?

0
Humanoid, not Humandroid. Marios2 360 — 9y

2 answers

Log in to vote
1
Answered by 9 years ago

Idk.. but have you tried player?

Ad
Log in to vote
0
Answered by 9 years ago

Seems you have a few error's. Stand me if I am not correct. Place it in a localscript and do the following.

1local Cut = game.Workspace.CutsceneScript
2local player = game.Players.LocalPlayer.Character.Humanoid
3 
4Cut.Disabled = true
5if player.Health == 0 then
6    -- Place your code here
7end)
8end

Answer this question