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

Problem playing music in-game?

Asked by 10 years ago
local player = game.Players.LocalPlayer

while wait() do
    if player.leaderstats.Level.Value == 1 then
        game.Workspace.CalmMusic:Play()
    elseif player.leaderstats.Level.Value == 2 then
        game.Workspace.AdventureMusic:Play()
    end
end

Why win't this work, it should. I have the LocalScript inside the StarterGui, and the music in workspace. I want it to bea a different song every level but it dosent work please help.

Answer this question