i want make a If the player is down, the model is destroyed
COMMUNITY QUESTION
how i can make yes the player down destroyed the model?
1 answer
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);
2 comments
0
With lua, you don't require the semicolons. :P
0
It's a habit :P
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Take a look at the documentation here: http://wiki.roblox.com/index.php?title=API:Class/Humanoid/Died
That can not solve my problem
I'm not sure what you are asking. What exactly do you want this script to do?