Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local TweenService = game:GetService("TweenService")
- local playerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- -- Create ScreenGui that covers the whole screen
- local introGui = Instance.new("ScreenGui")
- introGui.Name = "IntroGui"
- introGui.IgnoreGuiInset = true -- covers entire screen including top bar
- introGui.Parent = playerGui
- -- Create black full-screen Frame
- local blackFrame = Instance.new("Frame")
- blackFrame.Size = UDim2.new(1, 0, 1, 0) -- full screen
- blackFrame.Position = UDim2.new(0, 0, 0, 0)
- blackFrame.BackgroundColor3 = Color3.new(0, 0, 0) -- black
- blackFrame.BorderSizePixel = 0
- blackFrame.Parent = introGui
- -- Create big TextLabel for "BEST RAP SCRIPT"
- local textLabel = Instance.new("TextLabel")
- textLabel.Size = UDim2.new(0, 600, 0, 150) -- big size
- textLabel.Position = UDim2.new(-1, 0, 0.5, 0) -- start off-screen left
- textLabel.AnchorPoint = Vector2.new(0.5, 0.5)
- textLabel.BackgroundTransparency = 1
- textLabel.Text = "BEST RAP SCRIPT"
- textLabel.Font = Enum.Font.GothamBlack
- textLabel.TextColor3 = Color3.new(1, 1, 1)
- textLabel.TextScaled = true
- textLabel.Parent = blackFrame
- -- Tween info for sliding in and out
- local slideInTween = TweenService:Create(textLabel, TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {Position = UDim2.new(0.5, 0, 0.5, 0)})
- local slideOutTween = TweenService:Create(textLabel, TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.In), {Position = UDim2.new(1.5, 0, 0.5, 0)})
- -- Play slide in animation
- slideInTween:Play()
- slideInTween.Completed:Connect(function()
- wait(5) -- hold for 5 seconds
- slideOutTween:Play()
- slideOutTween.Completed:Connect(function()
- introGui:Destroy() -- remove the intro GUI after animation
- end)
- end)
- local UserInputService = game:GetService("UserInputService")
- local playerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- -- Create ScreenGui
- local screenGui = Instance.new("ScreenGui")
- screenGui.Name = "MyCustomGUI"
- screenGui.ResetOnSpawn = false
- screenGui.Parent = playerGui
- -- Create Frame (do this first!)
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0.4, 0, 0.2, 0)
- frame.Position = UDim2.new(0.3, 0, 0.4, 0)
- frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- frame.BorderSizePixel = 0
- frame.Parent = screenGui
- -- Draggable logic using the frame
- local dragging = false
- local dragInput
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- frame.Position = UDim2.new(
- startPos.X.Scale, startPos.X.Offset + delta.X,
- startPos.Y.Scale, startPos.Y.Offset + delta.Y
- )
- end
- frame.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = frame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- frame.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- update(input)
- end
- end)
- -- Create credit label first
- local creditLabel = Instance.new("TextLabel")
- creditLabel.Size = UDim2.new(0, 180, 0, 20) -- small width and height
- creditLabel.Position = UDim2.new(0.3, 0, 0.33, 0) -- just above your main frame (which is at 0.4 Y)
- creditLabel.BackgroundTransparency = 1 -- transparent background
- creditLabel.Text = "Credit to COREX HUB OFFICIAL"
- creditLabel.TextColor3 = Color3.fromRGB(200, 200, 200) -- light gray color
- creditLabel.Font = Enum.Font.Gotham
- creditLabel.TextSize = 14
- creditLabel.TextXAlignment = Enum.TextXAlignment.Left
- creditLabel.Parent = screenGui
- -- Then create toggle button and connect event
- local toggleButton = Instance.new("TextButton")
- toggleButton.Size = UDim2.new(0, 100, 0, 30)
- toggleButton.Position = UDim2.new(0, 10, 0, 10) -- top-left corner
- toggleButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- toggleButton.Font = Enum.Font.GothamBold
- toggleButton.TextSize = 18
- toggleButton.Text = "Toggle GUI"
- toggleButton.Parent = screenGui
- toggleButton.MouseButton1Click:Connect(function()
- local visible = not frame.Visible
- frame.Visible = visible
- creditLabel.Visible = visible
- dropdownButton.Visible = visible -- Hide/show dropdown button
- scrollingFrame.Visible = false -- Also hide the dropdown list when toggling
- end)
- -- Create Button inside the frame
- local button = Instance.new("TextButton")
- button.Size = UDim2.new(1, 0, 1, 0)
- button.Position = UDim2.new(0, 0, 0, 0)
- button.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- button.TextColor3 = Color3.fromRGB(255, 255, 255)
- button.Font = Enum.Font.GothamBold
- button.TextScaled = true
- button.TextWrapped = true
- button.Text = "Copy Rap 🔥🔥"
- button.Parent = frame
- -- 🔥 Raps List
- local raps = {
- "This dude is short as hell, he went to stages the crowd couldn't even tell.",
- "You are shorter than Kevin Hart, you are shorter than the memory of an old fart.",
- "Now I'm a kind boy, yo face though brought nobody joy.",
- "Everybody know my rhymes are hot, yo short butt could fit in a shoe slot.",
- "I'm the nerd your dummy, I have common sense you run to your mummy.",
- "I actually have a home, yo dumb booty stays on the streets in Rome.",
- "You dumb as hell, you thought you could fit inside the turtle shell.",
- "Everybody know that you're stupid, you thought you could fall in love because you saw a fake cupid."
- }
- local index = 1 -- Start at rap 1
- -- Dropdown button to select rap
- local dropdownButton = Instance.new("TextButton")
- dropdownButton.Size = UDim2.new(0, 150, 0, 30)
- dropdownButton.Position = UDim2.new(0, 10, 0, 50) -- below toggle button
- dropdownButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- dropdownButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- dropdownButton.Font = Enum.Font.GothamBold
- dropdownButton.TextSize = 16
- dropdownButton.Text = "Selected Rap 1 ⬇️" -- initialize with first rap selected
- dropdownButton.Parent = screenGui
- -- Scrolling frame for rap options (initially hidden)
- local scrollingFrame = Instance.new("ScrollingFrame")
- scrollingFrame.Size = UDim2.new(0, 150, 0, 120)
- scrollingFrame.Position = UDim2.new(0, 10, 0, 80)
- scrollingFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- scrollingFrame.BorderSizePixel = 0
- scrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
- scrollingFrame.ScrollBarThickness = 6
- scrollingFrame.Visible = false
- scrollingFrame.Parent = screenGui
- local listLayout = Instance.new("UIListLayout")
- listLayout.Parent = scrollingFrame
- listLayout.SortOrder = Enum.SortOrder.LayoutOrder
- listLayout.Padding = UDim.new(0, 2)
- -- Create rap option buttons inside scrolling frame
- for i, rapText in ipairs(raps) do
- local rapButton = Instance.new("TextButton")
- rapButton.Size = UDim2.new(1, -10, 0, 30)
- rapButton.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
- rapButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- rapButton.Font = Enum.Font.Gotham
- rapButton.TextSize = 14
- rapButton.Text = "Rap " .. i
- rapButton.LayoutOrder = i
- rapButton.Parent = scrollingFrame
- rapButton.MouseButton1Click:Connect(function()
- index = i
- dropdownButton.Text = "Selected Rap " .. i .. " ⬇️"
- scrollingFrame.Visible = false
- button.Text = "Copy Rap 🔥🔥"
- end)
- end
- listLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
- scrollingFrame.CanvasSize = UDim2.new(0, 0, 0, listLayout.AbsoluteContentSize.Y)
- end)
- dropdownButton.MouseButton1Click:Connect(function()
- scrollingFrame.Visible = not scrollingFrame.Visible
- end)
- -- Copy Rap button logic
- button.MouseButton1Click:Connect(function()
- local rap = raps[index]
- setclipboard(rap)
- button.Text = "✅ Copied Rap " .. index .. "/" .. #raps .. ":\n\"" .. rap .. "\""
- index = index + 1
- if index > #raps then
- index = 1
- end
- task.delay(3, function()
- button.Text = "Copy Rap 🔥🔥"
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment