Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Derpz's Simple Music Player by DerpzDeNugget_YT")
- warn("Derpz's SMP V1")
- local plr = game:service'Players'.localPlayer
- function newThemeCust(ID,timepos,pitch,vol)
- local kanz = kan
- kanz:Stop()
- kanz.Volume = vol
- kanz.TimePosition = timepos
- kanz.PlaybackSpeed = pitch
- kanz.Pitch = pitch
- kanz.SoundId = ID
- kanz.Name = "Derpz's Music"
- kanz.Looped = true
- currentThemePlaying = kanz.SoundId
- currentVol = kanz.Volume
- currentPitch = kanz.Pitch
- kanz:Play()
- coroutine.resume(coroutine.create(function()
- wait(0.05)
- end))
- end
- local kan = Instance.new("Sound",char)
- kan.Volume = 1.25
- kan.TimePosition = 0
- kan.PlaybackSpeed = 1
- kan.Pitch = 1.01
- kan.SoundId = "rbxassetid://463063479"
- kan.Name = "Derpz's Music"
- kan.Looped = true
- kan:Play()
- local OVMID = 497810777
- local OVMPIT = 1
- local OVMVOL = 1
- plr.Chatted:connect(function(message)
- if message:sub(1,5) == "play/" then
- OVMID = message:sub(6)
- newThemeCust("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
- elseif message:sub(1,6) == "pitch/" then
- OVMPIT = message:sub(7)
- newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
- elseif message:sub(1,4) == "vol/" then
- OVMVOL = message:sub(5)
- newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
- end
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement