SHARE
TWEET

[Robloxian Highschool] Radio GUI

a guest Apr 21st, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Script Name: Robloxian Highschool [Radio GUI]
  2. -- Description: A useful radio gui for robloxian highschool!
  3. -- Last Updated: 4/2/2019
  4. -- Changelog v1.1:
  5. -- * Added a drag feature to the GUI
  6. -- * That's it. If you want extra features let me know on V3rmillion.net!
  7. -- V3rm account: https://v3rmillion.net/member.php?action=profile&uid=1111277
  8. -- V3rm post: https://v3rmillion.net/showthread.php?tid=808218
  9. local runDummyScript = function(f,scri)
  10. local oldenv = getfenv(f)
  11. local newenv = setmetatable({}, {
  12. __index = function(_, k)
  13. if k:lower() == 'script' then
  14. return scri
  15. else
  16. return oldenv[k]
  17. end
  18. end
  19. })
  20. setfenv(f, newenv)
  21. ypcall(function() f() end)
  22. end
  23. cors = {}
  24. mas = Instance.new("Model",game:GetService("Lighting"))
  25. mas.Name = "CompiledModel"
  26. o1 = Instance.new("ScreenGui")
  27. o2 = Instance.new("TextLabel")
  28. o3 = Instance.new("Frame")
  29. o4 = Instance.new("TextButton")
  30. o5 = Instance.new("LocalScript")
  31. o6 = Instance.new("TextBox")
  32. o7 = Instance.new("LocalScript")
  33. o8 = Instance.new("TextLabel")
  34. o9 = Instance.new("TextButton")
  35. o10 = Instance.new("LocalScript")
  36. o11 = Instance.new("LocalScript")
  37. o1.Name = "Robloxian Highschool [Radio GUI]"
  38. o1.Parent = mas
  39. o2.Parent = o1
  40. o2.Position = UDim2.new(0.044214434921741,0,0.63099509477615,0)
  41. o2.Size = UDim2.new(0,259,0,23)
  42. o2.Text = ""
  43. o2.Position = UDim2.new(0.044214434921741,0,0.63099509477615,0)
  44. o2.Active = true
  45. o2.BackgroundColor3 = Color3.new(1, 1, 1)
  46. o2.BackgroundTransparency = 1
  47. o2.Font = Enum.Font.SourceSans
  48. o2.FontSize = Enum.FontSize.Size14
  49. o2.TextColor3 = Color3.new(0, 0, 0)
  50. o2.TextTransparency = 1
  51. o3.Name = "MainFrame"
  52. o3.Parent = o2
  53. o3.Position = UDim2.new(0.046039268374443,0,0.65112763643265,0)
  54. o3.Size = UDim2.new(0,233,0,227)
  55. o3.Style = Enum.FrameStyle.RobloxRound
  56. o3.Position = UDim2.new(0.046039268374443,0,0.65112763643265,0)
  57. o3.Active = true
  58. o3.BackgroundColor3 = Color3.new(1, 1, 1)
  59. o4.Name = "ClearAudios"
  60. o4.Parent = o3
  61. o4.Position = UDim2.new(0.036268897354603,0,0.50799965858459,0)
  62. o4.Size = UDim2.new(0,200,0,41)
  63. o4.Text = "Clear Audios/ Skip Song"
  64. o4.Position = UDim2.new(0.036268897354603,0,0.50799965858459,0)
  65. o4.BackgroundColor3 = Color3.new(1, 1, 1)
  66. o4.Font = Enum.Font.SourceSans
  67. o4.FontSize = Enum.FontSize.Size14
  68. o4.TextColor3 = Color3.new(0, 0, 0)
  69. o4.TextScaled = true
  70. o4.TextWrapped = true
  71. o5.Parent = o4
  72. table.insert(cors,coroutine.create(function()
  73. wait()
  74. runDummyScript(function()
  75. local Player = game.Players.LocalPlayer
  76. local Head = game.Players.LocalPlayer.Character.Head
  77. local A1 = "Radio " ..Player.Name
  78. local AudioEvent = game:GetService("ReplicatedStorage").Systems.SongService.NextSong
  79.  
  80.  
  81.  
  82.  
  83. script.Parent.MouseButton1Click:connect(function()
  84.   AudioEvent:FireServer(A1)
  85. end)
  86. end,o5)
  87. end))
  88. o6.Name = "SongID"
  89. o6.Parent = o3
  90. o6.Position = UDim2.new(0,0,0.1774600893259,0)
  91. o6.Size = UDim2.new(0,218,0,59)
  92. o6.Text = "Put Soundid Here!"
  93. o6.Position = UDim2.new(0,0,0.1774600893259,0)
  94. o6.BackgroundColor3 = Color3.new(1, 1, 1)
  95. o6.Font = Enum.Font.SourceSans
  96. o6.FontSize = Enum.FontSize.Size14
  97. o6.TextColor3 = Color3.new(0, 0, 0)
  98. o7.Parent = o6
  99. table.insert(cors,coroutine.create(function()
  100. wait()
  101. runDummyScript(function()
  102. local Player = game.Players.LocalPlayer
  103. local Head = game.Players.LocalPlayer.Character.Head
  104. local SongIDValue = script.Parent
  105. local A1 = "Radio " ..Player.Name
  106. local A2 = SongIDValue
  107. local AudioEvent = game:GetService("ReplicatedStorage").Systems.SongService.QueueSong
  108. SongIDValue.Changed:connect(function(Text)
  109. if Text == 'Text' then
  110. AudioEvent:FireServer(A1, A2.Text)
  111. end
  112. end)
  113. end,o7)
  114. end))
  115. o8.Name = "Title"
  116. o8.Parent = o3
  117. o8.Position = UDim2.new(0,0,0.0043285340070724,0)
  118. o8.Size = UDim2.new(0,218,0,28)
  119. o8.Text = "Robloxian Highschool [Radio GUI]"
  120. o8.Position = UDim2.new(0,0,0.0043285340070724,0)
  121. o8.BackgroundColor3 = Color3.new(1, 1, 1)
  122. o8.Font = Enum.Font.SourceSans
  123. o8.FontSize = Enum.FontSize.Size14
  124. o8.TextColor3 = Color3.new(0, 0, 0)
  125. o9.Parent = o3
  126. o9.Position = UDim2.new(0.035974137485027,0,0.7376816868782,0)
  127. o9.Size = UDim2.new(0,200,0,40)
  128. o9.Text = "Delete Radio"
  129. o9.Position = UDim2.new(0.035974137485027,0,0.7376816868782,0)
  130. o9.BackgroundColor3 = Color3.new(1, 1, 1)
  131. o9.Font = Enum.Font.SourceSans
  132. o9.FontSize = Enum.FontSize.Size14
  133. o9.TextColor3 = Color3.new(0, 0, 0)
  134. o9.TextScaled = true
  135. o9.TextWrapped = true
  136. o10.Parent = o9
  137. table.insert(cors,coroutine.create(function()
  138. wait()
  139. runDummyScript(function()
  140. script.Parent.MouseButton1Click:connect(function()
  141. game.Players.LocalPlayer.Character.Radio:Destroy()
  142. game.Players.LocalPlayer.Character.Radio:Destroy()
  143. game.Players.LocalPlayer.Character.Radio:Destroy()
  144. game.Players.LocalPlayer.Character.Radio:Destroy()
  145. game.Players.LocalPlayer.Character.Radio:Destroy()
  146. game.Players.LocalPlayer.Character.Radio:Destroy()
  147. game.Players.LocalPlayer.Character.Radio:Destroy()
  148. game.Players.LocalPlayer.Character.Radio:Destroy()
  149. game.Players.LocalPlayer.Character.Radio:Destroy()
  150. game.Players.LocalPlayer.Character.Radio:Destroy()
  151. game:GetService("StarterGui"):SetCore("SendNotification", {
  152. Title = "Radio Removeal.";
  153. Text = "Radio has been deleted";
  154. Duration = 5;
  155. })
  156. game:GetService("StarterGui"):SetCore("SendNotification", {
  157. Title = "Reminder:";
  158. Text = "Remember to click again to remove radio again because it tends to 'reappear' after still being Deleted!";
  159. Duration = 5;
  160. })
  161. end)
  162. end,o10)
  163. end))
  164. o11.Parent = o2
  165. table.insert(cors,coroutine.create(function()
  166. wait()
  167. runDummyScript(function()
  168. script.Parent.Draggable = true
  169. end,o11)
  170. end))
  171. mas.Parent = workspace
  172. mas:MakeJoints()
  173. local mas1 = mas:GetChildren()
  174. for i=1,#mas1 do
  175.     mas1[i].Parent = game:GetService("Players").LocalPlayer.PlayerGui
  176.     ypcall(function() mas1[i]:MakeJoints() end)
  177. end
  178. mas:Destroy()
  179. for i=1,#cors do
  180. coroutine.resume(cors[i])
  181. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top