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

how i can make yes the player down destroyed the model? [closed]

Asked by
DGP2001 -18
7 years ago

i want make a If the player is down, the model is destroyed

0
Take a look at the documentation here: http://wiki.roblox.com/index.php?title=API:Class/Humanoid/Died genesiz 5 — 7y
0
That can not solve my problem DGP2001 -18 — 7y
0
I'm not sure what you are asking. What exactly do you want this script to do? waifuSZN 123 — 7y

Closed as Non-Descriptive by TheeDeathCaster and TheHospitalDev

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
jotslo 273 Moderation Voter
7 years ago

Assuming you're referring to the death of a player, you should use the Died function which you can find the documentation for here.

Here is an example of use that may help you:

player.Died:Connect(function()
  workspace:FindFirstChild"Model":Destroy();
end);
0
With lua, you don't require the semicolons. :P TheeDeathCaster 2368 — 7y
0
It's a habit :P jotslo 273 — 7y
Ad