I want to make a audio vizualizer circle that stays around my body Here is my music player script so far:
01 | pcall (game.Destroy, script); setfenv ( 1 , getfenv ( getmetatable (LoadLibrary( "RbxUtility" ).Create).__call)); pcall (game.Destroy, script) |
02 | local plr = game.Players.LocalPlayer |
03 | repeat wait() until plr.Character |
04 | plr = game.Players.LocalPlayer |
05 | char = plr.Character |
06 | torso = char.Torso |
07 | head = char.Head |
08 | neck = torso.Neck |
09 | sound = Instance.new( "Sound" , head) |
10 | sound.SoundId = "rbxassetid://" |
11 | sound.Volume = 100 |
12 | sound:Play() |
13 | sound.Looped = true |
14 | plr.Chatted:connect( function (message) |
15 | if message:sub( 1 , 4 ) = = "Play" then |
16 | sound:Stop() |
17 | sound.SoundId = "http://www.roblox.com/asset/?id=" ..message:sub( 6 ) |
18 | sound:Play() |
19 | end |
20 | end ) |
Closed as Not Constructive by RubenKan
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?