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

Wait for object to be removed then do the following not working ?

Asked by
Bulvyte 388 Moderation Voter
8 years ago

what i want this to do is to clone to player then, when IntroMusic is deleted it plays the Aviici song after 2.50 seconds as showed below, but only after IntroMusic is gone how i do that ?

local Aviici = script.Aviici:Clone()
game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:wait()
    Aviici.Parent = player
game.Players.LocalPlayer:WaitForChild("IntroMusic")
        wait(2.50)
    player.Aviici:Play()
end)
0
So you basically want to clone the intro music,Play it then when that finishes playing you play the other sound iLegitus 130 — 8y
0
Yes, the cloning works everything works, just the small thing when the IntroMusic finishes playing Aviici plays Bulvyte 388 — 8y

Answer this question