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

How do I play victory music when the tank is killed? [closed]

Asked by 4 years ago

I am making a zombie game and at the last part of the game there is a tank and I wanna know how to do it so that the when everyone kills the tank victory music plays. The tank already has a script that destroys it from the workspace and also I don't want any while true do scripts :)

Closed as Not Constructive by Leamir and youtubemasterWOW

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

You can put a script inside the tank that runs a Humanoid.Died function

local Humanoid = script.Parent.Humanoid

Humanoid.Died:Connect(function()
    --play the victory music
end)
0
I am not sure if that will work because I have a long script but ill show you parts of it (not all) script.Message.Text = "Radio: I will explode the wall." game.Workspace.Explode:Play() wait(10) script.Message.Text = "Ummm why is there a tank here!?!?!?" wait(3) script.Message.Text = "Radio: Umm the tank is blocking the helicopter" wait(3) script.Message.Text = "Radio: Ill raise the helico Sp00ked1 6 — 4y
0
its only gonna run if the scripts parent dies so it should work laurenbtd5 379 — 4y
Ad