``Hello there! I have no scripting skills, but I have tried my best, however it will not work. I have a part in the workspace named 'Part'. I am trying to make that part appear when any player is playing music '142376088'. When the player stops playing it, the part will disappear. Could I get some help? Thanks! It could be for the command :music 142376088, however I would prefer it be even on the players personal radio.
Edit: I actually want the part to be moved when the sound is detected, and moved back to its original position when the sound is off
[P.S I am a beginner scripter, only know the basic terms.. excuse my scripting below]
--I have no idea how to make it detect the sound
if game.Player.Types(":music 142376088")
then
game.Workspace.Part.Position(-6, 336.5, -11) --I want this to be where is moved if the music is detected
if game."Sound".Off --I want this to be if the sound is turned off
then
game.Workspace.Part.Position(23727, 336.5, -11) --I want this to be where is moved if music is turned off
Edit #2: With components that chess mentioned. I will change the name 'Part' to 'SpecialPart'. -I also want to use the command :music 142376088. So when it plays, the part is in position and when it is stopped, the part goes back
if musicId == 142376088 then
workspace.SpecialPart.CFrame = CFrame.new(-6, 336.5, -11) --Placement when :music 142376088 command is activated
sound.Stopped:Connect(function() --when music command is detected off
workspace.SpecialPart.CFrame = CFrame.new(23727, 336.5, -11) --Placement when :music 142376088 command is off

3 comments
You need to post your code so that people can help you out.
how do you turn play/stop that sound?
Edit with my script. Please help me fix it