AJ_Danger

rap

Sep 8th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 7.64 KB | None | 0 0
  1. --Made by AnonymousVoid/angeld23
  2. --AutoRapper v0.3 BETA
  3.  
  4. wait(0.1)
  5.  
  6.  -- Objects
  7.  
  8. local MainUI = Instance.new("Frame")
  9. local TopFrame = Instance.new("Frame")
  10. local Close = Instance.new("TextButton")
  11. local Minimize = Instance.new("TextButton")
  12. local TopText = Instance.new("TextLabel")
  13. local Other = Instance.new("Frame")
  14. local RapList = Instance.new("TextLabel")
  15. local Face = Instance.new("TextButton")
  16. local Face2 = Instance.new("TextButton")
  17. local Outfit = Instance.new("TextButton")
  18. local AutoRapperGUI = Instance.new("ScreenGui")
  19.  
  20. -- Properties
  21.  
  22. AutoRapperGUI.Name = "AutoRapperGUI"
  23. AutoRapperGUI.Parent = game.StarterGui
  24.  
  25. MainUI.Name = "MainUI"
  26. MainUI.Parent = game.StarterGui.AutoRapperGUI
  27. MainUI.Active = true
  28. MainUI.AnchorPoint = Vector2.new(0.5, 0.5)
  29. MainUI.BackgroundColor3 = Color3.new(0.756863, 0, 0)
  30. MainUI.BorderSizePixel = 0
  31. MainUI.Draggable = true
  32. MainUI.Position = UDim2.new(0.5, 0, 0.5, 0)
  33. MainUI.Selectable = true
  34. MainUI.Size = UDim2.new(0, 400, 0, 250)
  35.  
  36. TopFrame.Name = "TopFrame"
  37. TopFrame.Parent = MainUI
  38. TopFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  39. TopFrame.BackgroundColor3 = Color3.new(0.517647, 0, 0)
  40. TopFrame.BorderSizePixel = 0
  41. TopFrame.Draggable = true
  42. TopFrame.Position = UDim2.new(0.5, 0, 0.0599999987, 0)
  43. TopFrame.Selectable = true
  44. TopFrame.Size = UDim2.new(0, 400, 0, 30)
  45.  
  46. Close.Name = "Close"
  47. Close.Parent = TopFrame
  48. Close.BackgroundColor3 = Color3.new(1, 0, 0)
  49. Close.BorderSizePixel = 0
  50. Close.Position = UDim2.new(0.925000012, 0, 0, 0)
  51. Close.Size = UDim2.new(0, 30, 0, 30)
  52. Close.Font = Enum.Font.SourceSans
  53. Close.Text = "X"
  54. Close.TextColor3 = Color3.new(1, 1, 1)
  55. Close.TextScaled = true
  56. Close.TextSize = 14
  57. Close.TextWrapped = true
  58.  
  59. Minimize.Name = "Minimize"
  60. Minimize.Parent = TopFrame
  61. Minimize.BackgroundColor3 = Color3.new(0.666667, 0.666667, 0.666667)
  62. Minimize.BorderSizePixel = 0
  63. Minimize.Position = UDim2.new(0.850000024, 0, 0, 0)
  64. Minimize.Size = UDim2.new(0, 30, 0, 30)
  65. Minimize.Font = Enum.Font.SourceSans
  66. Minimize.Text = "-"
  67. Minimize.TextColor3 = Color3.new(1, 1, 1)
  68. Minimize.TextScaled = true
  69. Minimize.TextSize = 14
  70. Minimize.TextWrapped = true
  71.  
  72. TopText.Name = "TopText"
  73. TopText.Parent = TopFrame
  74. TopText.BackgroundColor3 = Color3.new(1, 1, 1)
  75. TopText.BackgroundTransparency = 1
  76. TopText.BorderSizePixel = 0
  77. TopText.Position = UDim2.new(0.0274999999, 0, 0, 0)
  78. TopText.Size = UDim2.new(0, 329, 0, 30)
  79. TopText.Font = Enum.Font.SourceSans
  80. TopText.Text = "AutoRapper v1 - by AnonymousVoid/angeld23"
  81. TopText.TextColor3 = Color3.new(1, 1, 1)
  82. TopText.TextScaled = true
  83. TopText.TextSize = 14
  84. TopText.TextWrapped = true
  85. TopText.TextXAlignment = Enum.TextXAlignment.Left
  86.  
  87. Other.Name = "Other"
  88. Other.Parent = MainUI
  89. Other.AnchorPoint = Vector2.new(0.5, 0.5)
  90. Other.BackgroundColor3 = Color3.new(1, 0, 0)
  91. Other.BackgroundTransparency = 1
  92. Other.BorderSizePixel = 0
  93. Other.Draggable = true
  94. Other.Position = UDim2.new(0.499620914, 0, 0.5, 0)
  95. Other.Selectable = true
  96. Other.Size = UDim2.new(0, 400, 0, 250)
  97.  
  98. RapList.Name = "RapList"
  99. RapList.Parent = Other
  100. RapList.BackgroundColor3 = Color3.new(1, 1, 1)
  101. RapList.BackgroundTransparency = 1
  102. RapList.BorderSizePixel = 0
  103. RapList.Position = UDim2.new(0.0900000036, 0, 0.119999997, 0)
  104. RapList.Size = UDim2.new(0, 329, 0, 38)
  105. RapList.Font = Enum.Font.SourceSans
  106. RapList.Text = "Rap List"
  107. RapList.TextColor3 = Color3.new(1, 1, 1)
  108. RapList.TextScaled = true
  109. RapList.TextSize = 14
  110. RapList.TextWrapped = true
  111.  
  112. Face.Name = "Face"
  113. Face.Parent = Other
  114. Face.BackgroundColor3 = Color3.new(0.517647, 0, 0)
  115. Face.BorderSizePixel = 0
  116. Face.Position = UDim2.new(0.0274999738, 0, 0.307999998, 0)
  117. Face.Size = UDim2.new(0, 120, 0, 30)
  118. Face.Font = Enum.Font.SourceSans
  119. Face.Text = "Roast Their Face!"
  120. Face.TextColor3 = Color3.new(1, 1, 1)
  121. Face.TextScaled = true
  122. Face.TextSize = 14
  123. Face.TextWrapped = true
  124.  
  125. Face2.Name = "Face2"
  126. Face2.Parent = Other
  127. Face2.BackgroundColor3 = Color3.new(0.513726, 0, 0)
  128. Face2.BorderSizePixel = 0
  129. Face2.Position = UDim2.new(0.0274999738, 0, 0.428000003, 0)
  130. Face2.Size = UDim2.new(0, 120, 0, 30)
  131. Face2.Font = Enum.Font.SourceSans
  132. Face2.Text = "Roast Their Face! (Follow-Up)"
  133. Face2.TextColor3 = Color3.new(1, 1, 1)
  134. Face2.TextScaled = true
  135. Face2.TextSize = 14
  136. Face2.TextWrapped = true
  137.  
  138. Outfit.Name = "Outfit"
  139. Outfit.Parent = Other
  140. Outfit.BackgroundColor3 = Color3.new(0.513726, 0, 0)
  141. Outfit.BorderSizePixel = 0
  142. Outfit.Position = UDim2.new(0.0274999738, 0, 0.547999978, 0)
  143. Outfit.Size = UDim2.new(0, 120, 0, 30)
  144. Outfit.Font = Enum.Font.SourceSans
  145. Outfit.Text = "Roast Their Outfit!"
  146. Outfit.TextColor3 = Color3.new(1, 1, 1)
  147. Outfit.TextScaled = true
  148. Outfit.TextSize = 14
  149. Outfit.TextWrapped = true
  150.  
  151. -- Scripts
  152.  
  153. local clone = AutoRapperGUI:Clone()
  154. clone.Parent = game.Players.LocalPlayer.PlayerGui
  155.  
  156. ver = "0.3 BETA"
  157.  
  158. --Raps! (Change some if you'd like!)
  159. faceRap = {"You best be ready for some fire, 'cuz you'll be in an urn by the time I'm finished!", 8,
  160.     "I'm telling you, it's gonna BURN, so hard it'll need to be extinguished.", 7,
  161.     "C'mon, what you looking at? You think that you're so far above?", 8,
  162.     "I find that hard to believe, considering you've got a face only a mother could love.", 8,
  163.     "You'd think that someone with a face like yours would go to school getting pushed and shoved,", 7,
  164.     "but all that happens is they're too scared to look at you, so you can't even be made fun of!"}
  165. faceRapFollowUp = {"Don't worry, I've already burned your face well enough.", 7,
  166.     "But it doesn't matter, I promise this time it'll be even more rough.", 8,
  167.     "F ir st of all, why the ###k you trying to act so tough?", 7,
  168.     "Heh. That's a bluff. I could just pik you up like a cat by the scruff.", 4,
  169.     "Woooop!", 7, "I hope you enjoyed this little rap battle, it really wasn't a challenge.", 8,
  170.     "Analyze my lyrics and you'll probably find some rhymes that you can scavenge."}
  171. outfitRap = {"I've got an order for a heavy roast, hot and ready!", 9,
  172.     "When I spit my lyrics, you'll find it hard to even keep yourself steady.", 7,
  173.     "Yo head lookin like Jimmy from Ed, Edd, n' Eddy!", 8,
  174.     "Another thing, that outfit! It's the worst I've ever seen.", 7,
  175.     "At least I'm versed in wearing things that look clean!", 8,
  176.     "Ya look terrible from head to toe and everything inbetween."}
  177. --Variables
  178. say = function(message)
  179.     game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(message, "All")
  180.     workspace.RapperChatting:FireServer(message) --Will make the text appear in the blue box (Yes, it uses 2 RemoteEvents for some reason.
  181. end
  182. plr = game.Players.LocalPlayer
  183. gui = plr.PlayerGui.AutoRapperGUI
  184. main = gui.MainUI
  185. rapping = false
  186. rap = function(tableToRap)
  187.     if not rapping then
  188.         rapping = true
  189.         for i,v in pairs (tableToRap) do
  190.             if i % 2 == 1 then --check if it's odd or even
  191.                 say(v)
  192.             else
  193.                 wait(v)
  194.             end
  195.             if not rapping then break end
  196.         end
  197.         rapping = false
  198.     end
  199. end
  200.  
  201. --Setup
  202. main.TopFrame.TopText.Text = "AutoRapper v"..ver.." - by AnonymousVoid/angeld23"
  203.  
  204. --Close and minimize
  205. local top = main.TopFrame
  206. local minimized = false
  207. top.Close.MouseButton1Down:connect(function()
  208.     gui:Destroy()
  209.     game.StarterGui.AutoRapperGUI:Destroy()
  210.     script:Destroy()
  211. end)
  212. top.Minimize.MouseButton1Down:connect(function()
  213.     if not minimized then
  214.         main.BackgroundTransparency = 1
  215.         main.Other.Visible = false
  216.         minimized = true
  217.     else
  218.         main.BackgroundTransparency = 0
  219.         main.Other.Visible = true
  220.         minimized = false
  221.     end
  222. end)
  223.  
  224. --Click detection
  225. main.Other.Face.MouseButton1Down:connect(function()
  226.     rap(faceRap)
  227. end)
  228. main.Other.Face2.MouseButton1Down:connect(function()
  229.     rap(faceRapFollowUp)
  230. end)
  231. main.Other.Outfit.MouseButton1Down:connect(function()
  232.     rap(outfitRap)
  233. end)
  234.  
  235. warn("AutoRapper v"..ver.." Loaded!")
Add Comment
Please, Sign In to add comment