Algarnr

NEW RAP SCRIPT ALL GAMES

Jun 5th, 2025
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. local TweenService = game:GetService("TweenService")
  3. local playerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  4.  
  5. -- Create ScreenGui that covers the whole screen
  6. local introGui = Instance.new("ScreenGui")
  7. introGui.Name = "IntroGui"
  8. introGui.IgnoreGuiInset = true  -- covers entire screen including top bar
  9. introGui.Parent = playerGui
  10.  
  11. -- Create black full-screen Frame
  12. local blackFrame = Instance.new("Frame")
  13. blackFrame.Size = UDim2.new(1, 0, 1, 0)  -- full screen
  14. blackFrame.Position = UDim2.new(0, 0, 0, 0)
  15. blackFrame.BackgroundColor3 = Color3.new(0, 0, 0)  -- black
  16. blackFrame.BorderSizePixel = 0
  17. blackFrame.Parent = introGui
  18.  
  19. -- Create big TextLabel for "BEST RAP SCRIPT"
  20. local textLabel = Instance.new("TextLabel")
  21. textLabel.Size = UDim2.new(0, 600, 0, 150)  -- big size
  22. textLabel.Position = UDim2.new(-1, 0, 0.5, 0)  -- start off-screen left
  23. textLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  24. textLabel.BackgroundTransparency = 1
  25. textLabel.Text = "BEST RAP SCRIPT"
  26. textLabel.Font = Enum.Font.GothamBlack
  27. textLabel.TextColor3 = Color3.new(1, 1, 1)
  28. textLabel.TextScaled = true
  29. textLabel.Parent = blackFrame
  30.  
  31. -- Tween info for sliding in and out
  32. local slideInTween = TweenService:Create(textLabel, TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {Position = UDim2.new(0.5, 0, 0.5, 0)})
  33. local slideOutTween = TweenService:Create(textLabel, TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.In), {Position = UDim2.new(1.5, 0, 0.5, 0)})
  34.  
  35. -- Play slide in animation
  36. slideInTween:Play()
  37. slideInTween.Completed:Connect(function()
  38.     wait(5)  -- hold for 5 seconds
  39.     slideOutTween:Play()
  40.     slideOutTween.Completed:Connect(function()
  41.         introGui:Destroy()  -- remove the intro GUI after animation
  42.     end)
  43. end)
  44.  
  45.  
  46. local UserInputService = game:GetService("UserInputService")
  47. local playerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  48.  
  49. -- Create ScreenGui
  50. local screenGui = Instance.new("ScreenGui")
  51. screenGui.Name = "MyCustomGUI"
  52. screenGui.ResetOnSpawn = false
  53. screenGui.Parent = playerGui
  54.  
  55. -- Create Frame (do this first!)
  56. local frame = Instance.new("Frame")
  57. frame.Size = UDim2.new(0.4, 0, 0.2, 0)
  58. frame.Position = UDim2.new(0.3, 0, 0.4, 0)
  59. frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  60. frame.BorderSizePixel = 0
  61. frame.Parent = screenGui
  62.  
  63. -- Draggable logic using the frame
  64. local dragging = false
  65. local dragInput
  66. local dragStart
  67. local startPos
  68.  
  69. local function update(input)
  70.     local delta = input.Position - dragStart
  71.     frame.Position = UDim2.new(
  72.         startPos.X.Scale, startPos.X.Offset + delta.X,
  73.         startPos.Y.Scale, startPos.Y.Offset + delta.Y
  74.     )
  75. end
  76.  
  77. frame.InputBegan:Connect(function(input)
  78.     if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  79.         dragging = true
  80.         dragStart = input.Position
  81.         startPos = frame.Position
  82.  
  83.         input.Changed:Connect(function()
  84.             if input.UserInputState == Enum.UserInputState.End then
  85.                 dragging = false
  86.             end
  87.         end)
  88.     end
  89. end)
  90.  
  91. frame.InputChanged:Connect(function(input)
  92.     if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  93.         dragInput = input
  94.     end
  95. end)
  96.  
  97. UserInputService.InputChanged:Connect(function(input)
  98.     if input == dragInput and dragging then
  99.         update(input)
  100.     end
  101. end)
  102.  
  103. -- Create credit label first
  104. local creditLabel = Instance.new("TextLabel")
  105. creditLabel.Size = UDim2.new(0, 180, 0, 20)  -- small width and height
  106. creditLabel.Position = UDim2.new(0.3, 0, 0.33, 0)  -- just above your main frame (which is at 0.4 Y)
  107. creditLabel.BackgroundTransparency = 1  -- transparent background
  108. creditLabel.Text = "Credit to COREX HUB OFFICIAL"
  109. creditLabel.TextColor3 = Color3.fromRGB(200, 200, 200)  -- light gray color
  110. creditLabel.Font = Enum.Font.Gotham
  111. creditLabel.TextSize = 14
  112. creditLabel.TextXAlignment = Enum.TextXAlignment.Left
  113. creditLabel.Parent = screenGui
  114.  
  115. -- Then create toggle button and connect event
  116. local toggleButton = Instance.new("TextButton")
  117. toggleButton.Size = UDim2.new(0, 100, 0, 30)
  118. toggleButton.Position = UDim2.new(0, 10, 0, 10) -- top-left corner
  119. toggleButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  120. toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  121. toggleButton.Font = Enum.Font.GothamBold
  122. toggleButton.TextSize = 18
  123. toggleButton.Text = "Toggle GUI"
  124. toggleButton.Parent = screenGui
  125.  
  126. toggleButton.MouseButton1Click:Connect(function()
  127.     local visible = not frame.Visible
  128.     frame.Visible = visible
  129.     creditLabel.Visible = visible
  130.     dropdownButton.Visible = visible    -- Hide/show dropdown button
  131.     scrollingFrame.Visible = false      -- Also hide the dropdown list when toggling
  132. end)
  133.  
  134.  
  135. -- Create Button inside the frame
  136. local button = Instance.new("TextButton")
  137. button.Size = UDim2.new(1, 0, 1, 0)
  138. button.Position = UDim2.new(0, 0, 0, 0)
  139. button.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  140. button.TextColor3 = Color3.fromRGB(255, 255, 255)
  141. button.Font = Enum.Font.GothamBold
  142. button.TextScaled = true
  143. button.TextWrapped = true
  144. button.Text = "Copy Rap 🔥🔥"
  145. button.Parent = frame
  146.  
  147.  
  148. -- 🔥 Raps List
  149. local raps = {
  150.     "This dude is short as hell, he went to stages the crowd couldn't even tell.",
  151.     "You are shorter than Kevin Hart, you are shorter than the memory of an old fart.",
  152.     "Now I'm a kind boy, yo face though brought nobody joy.",
  153.     "Everybody know my rhymes are hot, yo short butt could fit in a shoe slot.",
  154.     "I'm the nerd your dummy, I have common sense you run to your mummy.",
  155.     "I actually have a home, yo dumb booty stays on the streets in Rome.",
  156.     "You dumb as hell, you thought you could fit inside the turtle shell.",
  157.     "Everybody know that you're stupid, you thought you could fall in love because you saw a fake cupid."
  158. }
  159.  
  160. local index = 1 -- Start at rap 1
  161.  
  162. -- Dropdown button to select rap
  163. local dropdownButton = Instance.new("TextButton")
  164. dropdownButton.Size = UDim2.new(0, 150, 0, 30)
  165. dropdownButton.Position = UDim2.new(0, 10, 0, 50) -- below toggle button
  166. dropdownButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  167. dropdownButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  168. dropdownButton.Font = Enum.Font.GothamBold
  169. dropdownButton.TextSize = 16
  170. dropdownButton.Text = "Selected Rap 1 ⬇️" -- initialize with first rap selected
  171. dropdownButton.Parent = screenGui
  172.  
  173. -- Scrolling frame for rap options (initially hidden)
  174. local scrollingFrame = Instance.new("ScrollingFrame")
  175. scrollingFrame.Size = UDim2.new(0, 150, 0, 120)
  176. scrollingFrame.Position = UDim2.new(0, 10, 0, 80)
  177. scrollingFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  178. scrollingFrame.BorderSizePixel = 0
  179. scrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  180. scrollingFrame.ScrollBarThickness = 6
  181. scrollingFrame.Visible = false
  182. scrollingFrame.Parent = screenGui
  183.  
  184. local listLayout = Instance.new("UIListLayout")
  185. listLayout.Parent = scrollingFrame
  186. listLayout.SortOrder = Enum.SortOrder.LayoutOrder
  187. listLayout.Padding = UDim.new(0, 2)
  188.  
  189. -- Create rap option buttons inside scrolling frame
  190. for i, rapText in ipairs(raps) do
  191.     local rapButton = Instance.new("TextButton")
  192.     rapButton.Size = UDim2.new(1, -10, 0, 30)
  193.     rapButton.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
  194.     rapButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  195.     rapButton.Font = Enum.Font.Gotham
  196.     rapButton.TextSize = 14
  197.     rapButton.Text = "Rap " .. i
  198.     rapButton.LayoutOrder = i
  199.     rapButton.Parent = scrollingFrame
  200.  
  201.     rapButton.MouseButton1Click:Connect(function()
  202.         index = i
  203.         dropdownButton.Text = "Selected Rap " .. i .. " ⬇️"
  204.         scrollingFrame.Visible = false
  205.         button.Text = "Copy Rap 🔥🔥"
  206.     end)
  207. end
  208.  
  209. listLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
  210.     scrollingFrame.CanvasSize = UDim2.new(0, 0, 0, listLayout.AbsoluteContentSize.Y)
  211. end)
  212.  
  213. dropdownButton.MouseButton1Click:Connect(function()
  214.     scrollingFrame.Visible = not scrollingFrame.Visible
  215. end)
  216.  
  217. -- Copy Rap button logic
  218. button.MouseButton1Click:Connect(function()
  219.     local rap = raps[index]
  220.     setclipboard(rap)
  221.     button.Text = "✅ Copied Rap " .. index .. "/" .. #raps .. ":\n\"" .. rap .. "\""
  222.     index = index + 1
  223.     if index > #raps then
  224.         index = 1
  225.     end
  226.     task.delay(3, function()
  227.         button.Text = "Copy Rap 🔥🔥"
  228.     end)
  229. end)
  230.  
  231.  
  232.  
Advertisement
Add Comment
Please, Sign In to add comment