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

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

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?

1 comment

0

Humanoid, not Humandroid.

2 answers

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

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