Local Progress = RandomSong.TimePosition / RandomSong.TimeLength If RandomSong and RandomSong.IsPlaying = true then RunService.RenderStepped:Connect(function() Local MusicProgress = PlayerGui:WaitForChild("ProgressBar")įor _, Song in pairs(Songs:GetChildren()) do Local PlayerGui = Player:WaitForChild("PlayerGui") You should have something like this in a LocalScript inside 1 of the local descendants: local RunService = game:GetService("RunService") Use the RunService’s RenderStepped Event to detect changes every frame or so on the client You can either use Size or TweenSize, I suppose Size would be more efficient.Get the progress-bar of the Frame by dividing the Sound.TimePosition / Sound.TimeLength Handle the progress bar locally (As in use Gui Objects/Frames)Ĭreate a ScreenGui inside StarterGui, insert 2 Frame Objects inside (1 for overlaying the background, 1 for getting the progress bar)
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |