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

Why is the script not stopping the music or doing anything?

Asked by 3 years ago
local AnimalsFound = script.Parent
function tp()
    local players = game.Players:GetPlayers()
    for i = 1,#players do
        players[i].Character.HumanoidRootPart.CFrame = game.Workspace.Spawns.BattleHallTele.CFrame + Vector3.new(0, 3, 0)
    end
end



AnimalsFound.Text.Changed:Connect(function()
    if AnimalsFound.Text == 5 then
    game.Workspace.Music.OversizedRoomMusic:Stop()
    wait(3)
    game.Workspace.Music.GlitchFX:Play()
    for i, v in pairs(game.Players:GetChildren()) do
        v.PlayerGui.GlitchTran.Frame.Visible = true
        v.PlayerGui.GlitchTran.Frame.Static:Play()
        v.PlayerGui.Objections.ObjectionLabel.Visible = false
        wait(6.4)
        v.PlayerGui.GlitchTran.Frame.Static:Stop()
        v.PlayerGui.PitchBlack.BLACKNESSBOI.Visible = true
        game.Workspace.Music.MetalNoise:Play()
        tp()
        wait(8.2)
        game.Workspace.DarknessFX:Play()

        for i, v in pairs(game.Players:GetChildren()) do
            v.PlayerGui.PitchBlack.BLACKNESSBOI.Visible = false
            game.Workspace.Music.LightHumming:Play()
            game.Workspace.Music.LightHumming.Looped = true
            game.Workspace.Music.LightHumming.Volume = 0.1
            wait(0.4)
            game.Workspace.Music.LightHumming.Volume = 0.2
            wait(0.4)
            game.Workspace.Music.LightHumming.Volume = 0.3
            wait(0.4)
            game.Workspace.Music.LightHumming.Volume = 0.4
            wait(0.4)
            game.Workspace.Music.LightHumming.Volume = 0.5
            wait(0.4)
            game.Workspace.Music.LightHumming.Volume = 0.6
            wait(0.4)
            game.Workspace.Music.LightHumming.Volume = 0.7
            wait(0.4)
            game.Workspace.Music.LightHumming.Volume = 0.8
            wait(0.4)
            game.Workspace.Music.LightHumming.Volume = 0.9
            wait(0.4)
            game.Workspace.Music.LightHumming.Volume = 1


        end
    end
end

1 answer

Log in to vote
0
Answered by 3 years ago

U need to make it stop you need to fiat create a variable for the music and then stop it for example

AnimalsFound.Text.Changed:Connect(function()
    if AnimalsFound.Text == 5 then
    game.Workspace.Music.OversizedRoomMusic:Stop()
    wait(3)
    game.Workspace.Music.GlitchFX:Play()
    for i, v in pairs(game.Players:GetChildren()) do
        v.PlayerGui.GlitchTran.Frame.Visible = true
        v.PlayerGui.GlitchTran.Frame.Static:Play()
        v.PlayerGui.Objections.ObjectionLabel.Visible = false
        wait(6.4)
        v.PlayerGui.GlitchTran.Frame.Static:Stop()
        v.PlayerGui.PitchBlack.BLACKNESSBOI.Visible = true
        game.Workspace.Music.MetalNoise:Play()
        tp()
        wait(8.2)
        game.Workspace.DarknessFX:Play()

        for i, v in pairs(game.Players:GetChildren()) do
            v.PlayerGui.PitchBlack.BLACKNESSBOI.Visible = false
            game.Workspace.Music.LightHumming:Play()
            game.Workspace.Music.LightHumming.Looped = true
            game.Workspace.Music.LightHumming.Volume = 0.1
            wait(0.4)
            game.Workspace.Music.LightHumming.Volume = 0.2
            wait(0.4)
            game.Workspace.Music.LightHumming.Volume = 0.3
            wait(0.4)
            game.Workspace.Music.LightHumming.Volume = 0.4
            wait(0.4)
            game.Workspace.Music.LightHumming.Volume = 0.5
            wait(0.4)
            game.Workspace.Music.LightHumming.Volume = 0.6
            wait(0.4)
            game.Workspace.Music.LightHumming.Volume = 0.7
            wait(0.4)
            game.Workspace.Music.LightHumming.Volume = 0.8
            wait(0.4)
            game.Workspace.Music.LightHumming.Volume = 0.9
            wait(0.4)
            game.Workspace.Music.LightHumming.Volume = 1
            game.Workspace.DarknessFX:Stop()
        end
    end
end
0
u need to stop it which u didnt kidsteve923 139 — 3y
0
u need to stop it which u didnt kidsteve923 139 — 3y
0
u need to stop it which u didnt kidsteve923 139 — 3y
0
u need to stop it which u didnt kidsteve923 139 — 3y
View all comments (2 more)
0
Please don't constantly spam comments. 2_MMZ 1059 — 3y
0
DWmy interet lagged lol kidsteve923 139 — 3y
Ad

Answer this question