Advertisement
lolzc4

musicPlayer_v2

Nov 14th, 2021
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.43 KB | None | 0 0
  1. --[[ Music player | v2
  2.  > Made by bIue#2958
  3.  > Key: 5859
  4.  > May be client-sided!
  5. -- ]]
  6.  
  7. -- Objects
  8.  
  9. local musicPlayer = Instance.new("ScreenGui")
  10. local php = Instance.new("Frame")
  11. local smoothCorner = Instance.new("UICorner")
  12. local top = Instance.new("Frame")
  13. local smoothCorner_2 = Instance.new("UICorner")
  14. local TextLabel = Instance.new("TextLabel")
  15. local login = Instance.new("TextButton")
  16. local smoothCorner_3 = Instance.new("UICorner")
  17. local key = Instance.new("Frame")
  18. local smoothCorner_4 = Instance.new("UICorner")
  19. local enter = Instance.new("TextBox")
  20. local main = Instance.new("Frame")
  21. local smoothCorner_5 = Instance.new("UICorner")
  22. local top_2 = Instance.new("Frame")
  23. local smoothCorner_6 = Instance.new("UICorner")
  24. local TextLabel_2 = Instance.new("TextLabel")
  25. local play = Instance.new("TextButton")
  26. local smoothCorner_7 = Instance.new("UICorner")
  27. local id = Instance.new("Frame")
  28. local smoothCorner_8 = Instance.new("UICorner")
  29. local enter_2 = Instance.new("TextBox")
  30. local stop = Instance.new("TextButton")
  31. local smoothCorner_9 = Instance.new("UICorner")
  32. local audio = Instance.new("Sound")
  33.  
  34. -- Properties
  35.  
  36. audio.Parent = id
  37. audio.Name = "audio"
  38.  
  39. musicPlayer.Name = "musicPlayer"
  40. musicPlayer.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  41. musicPlayer.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  42.  
  43. php.Name = "php"
  44. php.Parent = musicPlayer
  45. php.BackgroundColor3 = Color3.fromRGB(42, 43, 50)
  46. php.Position = UDim2.new(0.254677773, 0, 0.348314613, 0)
  47. php.Size = UDim2.new(0, 473, 0, 72)
  48.  
  49. smoothCorner.Name = "smoothCorner"
  50. smoothCorner.Parent = php
  51.  
  52. top.Name = "top"
  53. top.Parent = php
  54. top.BackgroundColor3 = Color3.fromRGB(36, 37, 43)
  55. top.Position = UDim2.new(0, 0, -0.00415802002, 0)
  56. top.Size = UDim2.new(0, 472, 0, 27)
  57.  
  58. smoothCorner_2.Name = "smoothCorner"
  59. smoothCorner_2.Parent = top
  60.  
  61. TextLabel.Parent = top
  62. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  63. TextLabel.BackgroundTransparency = 1.000
  64. TextLabel.BorderSizePixel = 0
  65. TextLabel.Position = UDim2.new(0, 7, 0, 3)
  66. TextLabel.Size = UDim2.new(0, 269, 0, 20)
  67. TextLabel.Text = "ANTILOG | V2"
  68. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  69. TextLabel.TextSize = 10.000
  70. TextLabel.TextWrapped = true
  71. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  72.  
  73. login.Name = "login"
  74. login.Parent = php
  75. login.BackgroundColor3 = Color3.fromRGB(53, 54, 63)
  76. login.Position = UDim2.new(0.0147991534, 0, 0.456430733, 0)
  77. login.Size = UDim2.new(0, 109, 0, 29)
  78. login.Text = "Login"
  79. login.TextColor3 = Color3.fromRGB(255, 255, 255)
  80. login.TextSize = 10.000
  81.  
  82. smoothCorner_3.CornerRadius = UDim.new(0, 5)
  83. smoothCorner_3.Name = "smoothCorner"
  84. smoothCorner_3.Parent = login
  85.  
  86. key.Name = "key"
  87. key.Parent = php
  88. key.BackgroundColor3 = Color3.fromRGB(63, 64, 75)
  89. key.Position = UDim2.new(0.26004228, 0, 0.444333345, 0)
  90. key.Size = UDim2.new(0, 342, 0, 29)
  91.  
  92. smoothCorner_4.Name = "smoothCorner"
  93. smoothCorner_4.Parent = key
  94.  
  95. enter.Name = "enter"
  96. enter.Parent = key
  97. enter.BackgroundColor3 = Color3.fromRGB(53, 54, 63)
  98. enter.BackgroundTransparency = 1.000
  99. enter.BorderSizePixel = 0
  100. enter.Position = UDim2.new(0, 0, 0.0299999993, 1)
  101. enter.Size = UDim2.new(0, 342, 0, 28)
  102. enter.ClearTextOnFocus = false
  103. enter.PlaceholderText = "..."
  104. enter.Text = ""
  105. enter.TextColor3 = Color3.fromRGB(255, 255, 255)
  106. enter.TextSize = 12.000
  107.  
  108. main.Name = "main"
  109. main.Parent = musicPlayer
  110. main.BackgroundColor3 = Color3.fromRGB(42, 43, 50)
  111. main.Position = UDim2.new(0.253638268, 0, 0.475120395, 0)
  112. main.Size = UDim2.new(0, 285, 0, 109)
  113.  
  114. smoothCorner_5.Name = "smoothCorner"
  115. smoothCorner_5.Parent = main
  116.  
  117. top_2.Name = "top"
  118. top_2.Parent = main
  119. top_2.BackgroundColor3 = Color3.fromRGB(36, 37, 43)
  120. top_2.Position = UDim2.new(0, 0, -0.00415802002, 0)
  121. top_2.Size = UDim2.new(0, 285, 0, 27)
  122.  
  123. smoothCorner_6.Name = "smoothCorner"
  124. smoothCorner_6.Parent = top_2
  125.  
  126. TextLabel_2.Parent = top_2
  127. TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  128. TextLabel_2.BackgroundTransparency = 1.000
  129. TextLabel_2.BorderSizePixel = 0
  130. TextLabel_2.Position = UDim2.new(0, 7, 0, 3)
  131. TextLabel_2.Size = UDim2.new(0, 89, 0, 20)
  132. TextLabel_2.Text = "Music player"
  133. TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  134. TextLabel_2.TextSize = 10.000
  135. TextLabel_2.TextWrapped = true
  136. TextLabel_2.TextXAlignment = Enum.TextXAlignment.Left
  137.  
  138. play.Name = "play"
  139. play.Parent = main
  140. play.BackgroundColor3 = Color3.fromRGB(53, 54, 63)
  141. play.Position = UDim2.new(0.0926998034, 0, 0.631793857, 0)
  142. play.Size = UDim2.new(0, 109, 0, 29)
  143. play.Text = "Play"
  144. play.TextColor3 = Color3.fromRGB(255, 255, 255)
  145. play.TextSize = 10.000
  146.  
  147. smoothCorner_7.CornerRadius = UDim.new(0, 5)
  148. smoothCorner_7.Name = "smoothCorner"
  149. smoothCorner_7.Parent = play
  150.  
  151. id.Name = "id"
  152. id.Parent = main
  153. id.BackgroundColor3 = Color3.fromRGB(63, 64, 75)
  154. id.Position = UDim2.new(0.0511671603, 0, 0.30346939, 0)
  155. id.Size = UDim2.new(0, 254, 0, 29)
  156.  
  157. smoothCorner_8.Name = "smoothCorner"
  158. smoothCorner_8.Parent = id
  159.  
  160. enter_2.Name = "enter"
  161. enter_2.Parent = id
  162. enter_2.BackgroundColor3 = Color3.fromRGB(53, 54, 63)
  163. enter_2.BackgroundTransparency = 1.000
  164. enter_2.BorderSizePixel = 0
  165. enter_2.Position = UDim2.new(0, 0, 0.0300000943, 1)
  166. enter_2.Size = UDim2.new(0, 253, 0, 28)
  167. enter_2.ClearTextOnFocus = false
  168. enter_2.PlaceholderText = "..."
  169. enter_2.Text = ""
  170. enter_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  171. enter_2.TextSize = 12.000
  172.  
  173. stop.Name = "stop"
  174. stop.Parent = main
  175. stop.BackgroundColor3 = Color3.fromRGB(53, 54, 63)
  176. stop.Position = UDim2.new(0.520770013, 0, 0.631793857, 0)
  177. stop.Size = UDim2.new(0, 109, 0, 29)
  178. stop.Text = "Stop"
  179. stop.TextColor3 = Color3.fromRGB(255, 255, 255)
  180. stop.TextSize = 10.000
  181.  
  182. smoothCorner_9.CornerRadius = UDim.new(0, 5)
  183. smoothCorner_9.Name = "smoothCorner"
  184. smoothCorner_9.Parent = stop
  185.  
  186. -- Scripts
  187.  
  188. local function MYLI_fake_script() -- login
  189.     local script = Instance.new('LocalScript', login)
  190.  
  191.     script.Parent.Parent.Parent.main.Visible = false
  192.    
  193.     script.Parent.Activated:Connect(function()
  194.         if script.Parent.Text == "Login" then
  195.             if script.Parent.Parent.key.enter.Text == "5859" then
  196.                 script.Parent.Text = "Success!"
  197.                 wait(1)
  198.                 script.Parent.Parent.Visible = false
  199.                 script.Parent.Parent.Parent.main.Visible = true
  200.             else
  201.                 script.Parent.Text = "Incorrect!"
  202.                 wait(1)
  203.                 script.Parent.Text = "Login"
  204.             end
  205.         end
  206.     end)
  207. end
  208. coroutine.wrap(MYLI_fake_script)()
  209. local function IXLTY_fake_script() -- php.drag
  210.     local script = Instance.new('LocalScript', php)
  211.  
  212.     local UIS = game:GetService('UserInputService')
  213.     local frame = script.Parent
  214.     local dragToggle = nil
  215.     local dragSpeed = 0.25
  216.     local dragStart = nil
  217.     local startPos = nil
  218.    
  219.     local function updateInput(input)
  220.         local delta = input.Position - dragStart
  221.         local position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X,
  222.             startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  223.         game:GetService('TweenService'):Create(frame, TweenInfo.new(dragSpeed), {Position = position}):Play()
  224.     end
  225.    
  226.     frame.InputBegan:Connect(function(input)
  227.         if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
  228.             dragToggle = true
  229.             dragStart = input.Position
  230.             startPos = frame.Position
  231.             input.Changed:Connect(function()
  232.                 if input.UserInputState == Enum.UserInputState.End then
  233.                     dragToggle = false
  234.                 end
  235.             end)
  236.         end
  237.     end)
  238.    
  239.     UIS.InputChanged:Connect(function(input)
  240.         if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  241.             if dragToggle then
  242.                 updateInput(input)
  243.             end
  244.         end
  245.     end)
  246. end
  247. coroutine.wrap(IXLTY_fake_script)()
  248. local function LUYWXT_fake_script() -- play.scr
  249.     local script = Instance.new('LocalScript', play)
  250.  
  251.     local play = script.Parent
  252.     local id = script.Parent.Parent.id
  253.    
  254.     play.Activated:Connect(function()
  255.         id.audio:Play()
  256.         id.audio.SoundId = "http://www.roblox.com/asset/?id="..id.enter.Text
  257.     end)
  258. end
  259. coroutine.wrap(LUYWXT_fake_script)()
  260. local function MKXW_fake_script() -- main.drag
  261.     local script = Instance.new('LocalScript', main)
  262.  
  263.     local UIS = game:GetService('UserInputService')
  264.     local frame = script.Parent
  265.     local dragToggle = nil
  266.     local dragSpeed = 0.25
  267.     local dragStart = nil
  268.     local startPos = nil
  269.    
  270.     local function updateInput(input)
  271.         local delta = input.Position - dragStart
  272.         local position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X,
  273.             startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  274.         game:GetService('TweenService'):Create(frame, TweenInfo.new(dragSpeed), {Position = position}):Play()
  275.     end
  276.    
  277.     frame.InputBegan:Connect(function(input)
  278.         if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
  279.             dragToggle = true
  280.             dragStart = input.Position
  281.             startPos = frame.Position
  282.             input.Changed:Connect(function()
  283.                 if input.UserInputState == Enum.UserInputState.End then
  284.                     dragToggle = false
  285.                 end
  286.             end)
  287.         end
  288.     end)
  289.    
  290.     UIS.InputChanged:Connect(function(input)
  291.         if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  292.             if dragToggle then
  293.                 updateInput(input)
  294.             end
  295.         end
  296.     end)
  297. end
  298. coroutine.wrap(MKXW_fake_script)()
  299. local function WNVCT_fake_script() -- stop.scr
  300.     local script = Instance.new('LocalScript', stop)
  301.  
  302.     local play = script.Parent
  303.     local id = script.Parent.Parent.id
  304.    
  305.     play.Activated:Connect(function()
  306.         id.audio:Stop()
  307.     end)
  308. end
  309. coroutine.wrap(WNVCT_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement