Advertisement
Floridaz

The Ultimate Rap billboard (just run)

Jun 5th, 2015
569
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.43 KB | None | 0 0
  1. player = game:GetService("Players").LocalPlayer or owner
  2. repeat wait() until player.Character ~=nil
  3. player.Character:WaitForChild('Humanoid')
  4. par = Instance.new("Part", player.Character)
  5. par.Anchored = true
  6. par.FormFactor = "Custom"
  7. par.Size = Vector3.new(20,10,.1)
  8. local lastsound = nil
  9.  
  10. coroutine.wrap(function()
  11. while wait() do
  12. par.CFrame = player.Character.Torso.CFrame *CFrame.new(0,5,-5)
  13. end
  14. end)()
  15.  
  16.  
  17. a = {229979763,210280179,221540928}
  18.  
  19. local pos = .05
  20.  
  21.  
  22. local sound = Instance.new("Sound", par)
  23. local soundpos = 0
  24. local isplaying = false
  25.  
  26. function findtime()
  27. coroutine.wrap(function()
  28. repeat wait()
  29. q5.Size = UDim2.new(.1,0,(math.floor(sound.TimePosition)/sound.TimeLength),0)
  30. until sound.TimePosition >= sound.TimeLength or isplaying == false
  31. end)()
  32. end
  33.  
  34.  
  35. function createTab(soundid)
  36.  
  37. local fm = Instance.new('Frame',q2)
  38. fm.BackgroundColor3 = Color3.new(1, 1, 1)
  39. fm.BackgroundTransparency = 0
  40. fm.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  41. fm.BorderSizePixel = 1
  42. fm.Name = 'Frame'
  43. fm.Position = UDim2.new(pos,0,.27,0)
  44. fm.Rotation = 0
  45. fm.Size = UDim2.new(.13,0,.23,0)
  46. fm.SizeConstraint = Enum.SizeConstraint.RelativeXY
  47. fm.Style = Enum.FrameStyle.Custom
  48. fm.Visible = true
  49. fm.ZIndex = 1
  50. fm.Archivable = true
  51. fm.ClipsDescendants = false
  52. fm.Draggable = false
  53. fm.Active = false
  54. local tx = Instance.new('TextLabel',fm)
  55. tx.BackgroundColor3 = Color3.new(1, 1, 1)
  56. tx.BackgroundTransparency = 1
  57. tx.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  58. tx.BorderSizePixel = 1
  59. tx.Name = 'TextLabel'
  60. tx.Position = UDim2.new(0,0,1.1000000238419,0)
  61. tx.Rotation = 0
  62. tx.Size = UDim2.new(1,0,0.10000000149012,0)
  63. tx.SizeConstraint = Enum.SizeConstraint.RelativeXY
  64. tx.Visible = true
  65. tx.ZIndex = 1
  66. tx.Archivable = true
  67. tx.ClipsDescendants = false
  68. tx.Draggable = false
  69. tx.Font = Enum.Font.Legacy
  70. tx.FontSize = Enum.FontSize.Size12
  71. tx.Text = tostring(soundid)
  72. tx.TextColor3 = Color3.new(1, 1, 1)
  73. tx.TextScaled = true
  74. tx.TextStrokeColor3 = Color3.new(0, 0, 0)
  75. tx.TextStrokeTransparency = 1
  76. tx.TextTransparency = 0
  77. tx.TextWrapped = true
  78. tx.TextXAlignment = Enum.TextXAlignment.Center
  79. tx.TextYAlignment = Enum.TextYAlignment.Center
  80. tx.Active = false
  81. local tb = Instance.new('TextButton',fm)
  82. tb.BackgroundColor3 = Color3.new(1, 1, 1)
  83. tb.BackgroundTransparency = 0
  84. tb.BorderColor3 = Color3.new(1, 1, 1)
  85. tb.BorderSizePixel = 0
  86. tb.Name = 'TextButton'
  87. tb.Position = UDim2.new(0,0,0,0)
  88. tb.Rotation = 0
  89. tb.Size = UDim2.new(1,0,1,0)
  90. tb.SizeConstraint = Enum.SizeConstraint.RelativeXY
  91. tb.Style = Enum.ButtonStyle.Custom
  92. tb.Visible = true
  93. tb.ZIndex = 1
  94. tb.Archivable = true
  95. tb.ClipsDescendants = false
  96. tb.Draggable = false
  97. tb.Font = Enum.Font.SourceSans
  98. tb.FontSize = Enum.FontSize.Size48
  99. tb.Text = 'M'
  100. tb.TextColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  101. tb.TextScaled = false
  102. tb.TextStrokeColor3 = Color3.new(0, 0, 0)
  103. tb.TextStrokeTransparency = 1
  104. tb.TextTransparency = 0
  105. tb.TextWrapped = true
  106. tb.TextXAlignment = Enum.TextXAlignment.Center
  107. tb.TextYAlignment = Enum.TextYAlignment.Center
  108. tb.AutoButtonColor = true
  109. tb.Active = true
  110. tb.Modal = false
  111. tb.Selected = false
  112. pos = pos + .15
  113.  
  114.  
  115.  
  116. tb.MouseButton1Click:connect(function()
  117. if tb.Text == ">" then
  118. if lastsound == "rbxassetid://"..soundid then
  119. soundpos = sound.TimePosition
  120. end
  121. sound:Pause()
  122. for k,v in pairs(q2:GetChildren()) do
  123. if v.ClassName == "Frame" and v.Name ~= "Timeline" then
  124. v.TextButton.Text = "M"
  125. end
  126. end
  127.  
  128. tb.Text = "l l"
  129.  
  130. else
  131.  
  132. for k,v in pairs(q2:GetChildren()) do
  133. if v.ClassName == "Frame" and v.Name ~= "Timeline" then
  134. v.TextButton.Text = "M"
  135. end
  136. end
  137. isplaying = true
  138.  
  139. if lastsound == "rbxassetid://"..soundid then
  140. sound.TimePosition = soundpos
  141. end
  142.  
  143.  
  144. findtime()
  145. tb.Text = ">"
  146. sound.SoundId = "rbxassetid://"..soundid
  147. lastsound = sound.SoundId
  148. sound:Play()
  149. end
  150.  
  151.  
  152. end)
  153. end
  154.  
  155.  
  156. q1 = Instance.new('SurfaceGui',par)
  157. q1.Archivable = true
  158. q1.Face = "Back"
  159. q2 = Instance.new('Frame',q1)
  160. q2.BackgroundColor3 = Color3.new(0.0705882, 0.0745098, 0.0784314)
  161. q2.BackgroundTransparency = 0
  162. q2.BorderColor3 = Color3.new(0.0705882, 0.0745098, 0.0784314)
  163. q2.BorderSizePixel = 1
  164. q2.Name = 'Frame'
  165. q2.Position = UDim2.new(0,0,0,0)
  166. q2.Rotation = 0
  167. q2.Size = UDim2.new(1,0,1,0)
  168. q2.SizeConstraint = Enum.SizeConstraint.RelativeXY
  169. q2.Style = Enum.FrameStyle.Custom
  170. q2.Visible = true
  171. q2.ZIndex = 1
  172. q2.Archivable = true
  173. q2.ClipsDescendants = false
  174. q2.Draggable = false
  175. q2.Active = false
  176. q3 = Instance.new('ImageLabel',q2)
  177. q3.BackgroundColor3 = Color3.new(0.0705882, 0.0745098, 0.0784314)
  178. q3.BackgroundTransparency = 0
  179. q3.BorderColor3 = Color3.new(0.0705882, 0.0745098, 0.0784314)
  180. q3.BorderSizePixel = 1
  181. q3.Name = 'ImageLabel'
  182. q3.Position = UDim2.new(0,0,0,0)
  183. q3.Rotation = 0
  184. q3.Size = UDim2.new(1,0,1,0)
  185. q3.SizeConstraint = Enum.SizeConstraint.RelativeXY
  186. q3.Visible = false
  187. q3.ZIndex = 1
  188. q3.Archivable = true
  189. q3.ClipsDescendants = false
  190. q3.Draggable = false
  191. q3.Image = 'http://www.roblox.com/asset/?id=208035157'
  192. q3.ImageColor3 = Color3.new(1, 1, 1)
  193. q3.ImageRectOffset = Vector2.new(0, 0)
  194. q3.ImageRectSize = Vector2.new(0, 0)
  195. q3.ImageTransparency = 0
  196. q3.Active = false
  197. q4 = Instance.new('Frame',q2)
  198. q4.BackgroundColor3 = Color3.new(0.0666667, 0.0705882, 0.0784314)
  199. q4.BackgroundTransparency = 0
  200. q4.BorderColor3 = Color3.new(0.0666667, 0.0705882, 0.0784314)
  201. q4.BorderSizePixel = 1
  202. q4.Name = 'Timeline'
  203. q4.Position = UDim2.new(0.94999998807907,0,0,0)
  204. q4.Rotation = 0
  205. q4.Size = UDim2.new(0.050000000745058,0,1,0)
  206. q4.SizeConstraint = Enum.SizeConstraint.RelativeXY
  207. q4.Style = Enum.FrameStyle.Custom
  208. q4.Visible = true
  209. q4.ZIndex = 1
  210. q4.Archivable = true
  211. q4.ClipsDescendants = false
  212. q4.Draggable = false
  213. q4.Active = false
  214. q5 = Instance.new('Frame',q4)
  215. q5.BackgroundColor3 = Color3.new(1, 1, 1)
  216. q5.BackgroundTransparency = 0
  217. q5.BorderColor3 = Color3.new(1, 1, 1)
  218. q5.BorderSizePixel = 1
  219. q5.Position = UDim2.new(0,0,0,0)
  220. q5.Rotation = 0
  221. q5.Size = UDim2.new(0.10000000149012,0,1,0)
  222. q5.SizeConstraint = Enum.SizeConstraint.RelativeXY
  223. q5.Style = Enum.FrameStyle.Custom
  224. q5.Visible = true
  225. q5.ZIndex = 1
  226. q5.Archivable = true
  227. q5.ClipsDescendants = false
  228. q5.Draggable = false
  229. q5.Active = false
  230.  
  231.  
  232. for k,v in pairs(a) do
  233. createTab(v)
  234. end
  235.  
  236.  
  237. game:GetService("Workspace").DescendantRemoving:connect(function(child)
  238. if child == sound then
  239. child:Stop()
  240. sound = child:Clone()
  241. if lastsound == child.SoundId then
  242. soundpos = child.TimePosition
  243. end
  244. wait()
  245. sound:Play()
  246. sound.Parent = game:GetService("Workspace")
  247. end
  248. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement