I have a leaderstats, depending on the number it is I want a song to play,
game.Players.PlayerAdded:connect(function(player)
local checkpoint = player:WaitForChild('leaderstats').Checkpoint
checkpoint.Changed:connect(function()
if checkpoint.Value == 2 then
player.PlayerGui.StageMusic.SoundId = "rbxassetid://BLAHBLAHBLAH"
player.PlayerGui.StageMusic:Play()
end
end)
end)
First off, it doesn't check if the checkpoint.Value is actually 2, it does it all the time regardless and second is that I keep getting an error
