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 8 years ago
local Cut = game.Workspace.CutsceneScript
local player = game.Workspace.HELP ME HERE.Humandroid

Cut.Disabled = true
if player health is down to 0
    the cutscene will never appear again
end

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 — 8y

2 answers

Log in to vote
1
Answered by 8 years ago

Idk.. but have you tried player?

Ad
Log in to vote
0
Answered by 8 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.

local Cut = game.Workspace.CutsceneScript
local player = game.Players.LocalPlayer.Character.Humanoid

Cut.Disabled = true
if player.Health == 0 then
    -- Place your code here
end)
end

Answer this question