asdasdaaa11

adsdad what

Jun 5th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.88 KB | None | 0 0
  1. --Define le values list by victiny1223
  2. lplr = game.Players.LocalPlayer
  3. lchar = lplr.Character
  4. lhum = lchar:FindFirstChild("Humanoid")
  5. lrootpart = lhum:FindFirstChild("HumanoidRootPart")
  6. torso = lchar:FindFirstChild("Torso")
  7. animator = lhum.Animator
  8. backpack = lplr.Backpack
  9. ls = torso:FindFirstChild("Left Shoulder")
  10. ra = lchar:FindFirstChild("Right Arm")
  11. lh = torso:FindFirstChild("Left Hip")
  12. la = lchar:FindFirstChild("Left Arm")
  13. rs = torso:FindFirstChild("Right Shoulder")
  14. rh = torso:FindFirstChild("Right Hip")
  15. rl = lchar:FindFirstChild("Right Leg")
  16. ll = lchar:FindFirstChild("Left Leg")
  17. neck = torso:FindFirstChild("Neck")
  18. v3 = Vector3.new
  19. cf = CFrame
  20. create = Instance.new
  21. pgui = lplr.PlayerGui --game.CoreGui
  22. --[[To do:
  23. 1. Make a working FE kill gui[./]
  24. a) Position to bottom right [./]
  25. b) Finish it :)[./]
  26. 2. Add tp into it (tp to other player)[x]
  27. {Additional Info: I edited the kill gui into this music gui}
  28. --]]
  29. local gui = Instance.new("ScreenGui")
  30. gui.Parent = pgui
  31. local generalframe = Instance.new("Frame")
  32. generalframe.Size = UDim2.new(0, 350, 0, 140)
  33. generalframe.Position = UDim2.new(0.75, 0, 0.75, 0)
  34. generalframe.BackgroundColor3 = BrickColor.new("Really black").Color
  35. generalframe.BorderSizePixel = 5
  36. generalframe.BorderColor3 = BrickColor.new("Institutional white").Color
  37. generalframe.Transparency = 0.25
  38. generalframe.Active = true
  39. generalframe.Draggable = true
  40. generalframe.Parent = gui
  41. local plrBox = Instance.new("TextBox")
  42. plrBox.Parent = generalframe
  43. plrBox.Size = UDim2.new(0, 300, 0, 42.5)
  44. plrBox.Position = UDim2.new(0.075, 0, 0.2, 0)
  45. plrBox.BackgroundColor3 = BrickColor.new("Really black").Color
  46. plrBox.BorderSizePixel = 5
  47. plrBox.BorderColor3 = BrickColor.new("Institutional white").Color
  48. plrBox.FontSize = Enum.FontSize.Size28
  49. plrBox.Font = "SciFi"
  50. plrBox.TextColor3 = Color3.new(255, 255, 255)
  51. plrBox.Transparency = 0.175
  52. plrBox.Text = "Type the music id"
  53. local execbutton = Instance.new("TextButton")
  54. execbutton.Size = UDim2.new(0, 300, 0, 27.5)
  55. execbutton.Position = plrBox.Position + UDim2.new(0, 0, 0, 54)
  56. execbutton.BackgroundColor3 = BrickColor.new("Really black").Color
  57. execbutton.BorderSizePixel = 5
  58. execbutton.BorderColor3 = BrickColor.new("Institutional white").Color
  59. execbutton.Font = "SciFi"
  60. execbutton.FontSize = Enum.FontSize.Size18
  61. execbutton.TextColor3 = Color3.new(255, 255, 255)
  62. execbutton.Transparency = 0.175
  63. execbutton.Text = "Execute"
  64. execbutton.Parent = generalframe
  65. --[[Function/s being made!]]
  66. function PlayMusic(ID)
  67. for i, v in pairs (game.Workspace:GetChildren()) do
  68. if v:IsA("Sound") then
  69. v:Remove()
  70. end
  71. end
  72. local music = Instance.new("Sound")
  73. local asset = "rbxassetid://"
  74. music.SoundId = asset .. ID
  75. music.Parent = workspace
  76. music.Volume = 10
  77. music.Looped = true
  78. music:Play()
  79. end
  80. --[[Connecting functions!]]
  81. execbutton.MouseButton1Down:connect(function()
  82. PlayMusic(plrBox.Text)
  83. end)
Add Comment
Please, Sign In to add comment