SHOW:
|
|
- or go back to the newest paste.
| 1 | - | owner = game.Players["TheOfficialSeb"] |
| 1 | + | |
| 2 | - | |
| 2 | + | |
| 3 | - | function FindPlayer(FindUser) |
| 3 | + | if messageLow:sub(1, 7) == ".music " then |
| 4 | - | local findUser = string.lower(FindUser) |
| 4 | + | local Id = "rbxassetid://" .. message:sub(8) |
| 5 | - | local inputsize = string.len(findUser) |
| 5 | + | for i,child in pairs(game.Workspace:GetChildren()) do |
| 6 | - | for i, v in pairs(game.Players:GetChildren()) do |
| 6 | + | if child.ClassName == "Sound" then |
| 7 | - | local NameLow = string.lower(v.Name) |
| 7 | + | child:Remove() |
| 8 | - | if NameLow:sub(1, inputsize) == findUser:sub(1, inputsize) then |
| 8 | + | |
| 9 | - | return v.Name |
| 9 | + | |
| 10 | - | end |
| 10 | + | local Music = Instance.new("Sound", workspace)
|
| 11 | - | end |
| 11 | + | Music.SoundId = Id |
| 12 | - | end |
| 12 | + | Music.Volume = 10 |
| 13 | - | |
| 13 | + | Music:Play() |
| 14 | elseif messageLow:sub(1, 5) == ".stop" then | |
| 15 | for i,child in pairs(game.Workspace:GetChildren()) do | |
| 16 | - | if messageLow:sub(1, 5) == ".get " then |
| 16 | + | if child.ClassName == "Sound" then |
| 17 | - | HitmanPlr(game:FindFirstChildOfClass("Players")[FindPlayer(message:sub(6))])
|
| 17 | + | child:Remove() |
| 18 | end | |
| 19 | - | end) |
| 19 | + | |
| 20 | - | |
| 20 | + | |
| 21 | - | function HitmanPlr(target) |
| 21 | + | end) |