Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Player=game.Players.LocalPlayer
- Character=Player.Character
- local LeftArm = Character["Left Arm"]
- local RightArm = Character["Right Arm"]
- local LeftLeg = Character["Left Leg"]
- local RightLeg = Character["Right Leg"]
- local Head = Character.Head
- local Torso = Character.Torso
- THEME=Instance.new('Sound',Character.Torso)
- music=nil
- firsttype=false
- Player.Chatted:connect(function(msg)
- for def in string.gmatch(msg, "%d+") do
- print(def)
- if def~=nil then
- music=def
- end
- end
- for def in string.gmatch(msg,"[%u%l%p]+") do
- print(def)
- if def=='Play/' and music~=nil then
- THEME:stop()
- THEME.SoundId='rbxassetid://'.. music
- THEME.Volume = 5
- THEME:play()
- elseif def=='PrePlay/Sugar' then
- THEME:stop()
- THEME.SoundId='rbxassetid://'.. 142534278
- THEME.Volume = 5
- THEME:play()
- elseif def=='PrePlay/Papa' then
- THEME:stop()
- THEME.SoundId='rbxassetid://'.. 748984518
- THEME.Volume = 5
- THEME:play()
- elseif def=='StopM' then
- THEME:stop()
- end
- end
- music=nil
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement