So, I have a "randomized" number, but every time I start up the server, it's playing the same song. Here's my script. (It's a LocalScript with FilteringEnabled active)
math.randomseed(tick()) local player = game.Players.LocalPlayer local menuSounds = { 846744087; --@other devs this song is here as a joke remove this upon release and please don't kill meeeeeeeeeeee -git 629166622; 247050817; 130798504; 902587196; } local soundtrack = Instance.new("Sound") soundtrack.Parent = player.PlayerGui soundtrack.SoundId = "rbxassetid://" .. menuSounds[math.random(1,#menuSounds)] soundtrack.Looped = true soundtrack.Name = "MenuSound" soundtrack:Play()
You do math.randomseed(tick()) and then don't do anything with it? You just do that line but you don't save it or use it for anything later on...