Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Create references to the UI elements
- local screenGui = Instance.new("ScreenGui")
- local textLabel = Instance.new("TextLabel")
- local copyButton = Instance.new("TextButton")
- -- Parent the ScreenGui to the PlayerGui
- screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- -- Set up the TextLabel (Credit)
- textLabel.Parent = screenGui
- textLabel.Text = "Credits: Developed by: black pumpkin"
- textLabel.Size = UDim2.new(0.3, 0, 0.1, 0) -- Size of the label
- textLabel.Position = UDim2.new(0.35, 0, 0.4, 0) -- Center position
- textLabel.TextScaled = true -- Make text scale with label size
- textLabel.BackgroundTransparency = 0.3 -- Slight transparency for the background
- textLabel.BackgroundColor3 = Color3.fromRGB(25, 25, 25) -- Dark background color
- textLabel.TextColor3 = Color3.fromRGB(255, 255, 255) -- White text
- textLabel.ZIndex = 2 -- Ensure it appears on top of everything else
- -- Add UICorner to round the corners of the TextLabel
- local labelCorner = Instance.new("UICorner")
- labelCorner.CornerRadius = UDim.new(0.2, 0) -- Smooth, rounded corners
- labelCorner.Parent = textLabel
- -- Add UIStroke to create a soft border for the TextLabel
- local labelStroke = Instance.new("UIStroke")
- labelStroke.Parent = textLabel
- labelStroke.Thickness = 2 -- Stroke thickness
- labelStroke.Transparency = 0.7 -- Slightly transparent
- labelStroke.Color = Color3.fromRGB(0, 255, 255) -- Soft sea blue stroke
- -- Create a beautiful gradient effect for the TextLabel
- local labelGradient = Instance.new("UIGradient")
- labelGradient.Color = ColorSequence.new{
- ColorSequenceKeypoint.new(0.00, Color3.fromRGB(0, 255, 255)), -- Light Blue
- ColorSequenceKeypoint.new(0.50, Color3.fromRGB(0, 128, 255)), -- Deeper Blue
- ColorSequenceKeypoint.new(1.00, Color3.fromRGB(0, 255, 255)) -- Back to Light Blue
- }
- labelGradient.Rotation = 45 -- Diagonal gradient
- labelGradient.Parent = textLabel
- -- Set up the TextButton (Copy Discord)
- copyButton.Parent = screenGui
- copyButton.Text = "Copy Discord"
- copyButton.Size = UDim2.new(0.2, 0, 0.1, 0) -- Size of the button
- copyButton.Position = UDim2.new(0.4, 0, 0.55, 0) -- Below the credit text
- copyButton.TextScaled = true
- copyButton.BackgroundTransparency = 0.3 -- Slight transparency for the button
- copyButton.BackgroundColor3 = Color3.fromRGB(25, 25, 25) -- Dark background color
- copyButton.TextColor3 = Color3.fromRGB(255, 255, 255) -- White text
- copyButton.ZIndex = 2 -- Ensure it appears on top of everything else
- -- Add UICorner to round the corners of the CopyButton
- local buttonCorner = Instance.new("UICorner")
- buttonCorner.CornerRadius = UDim.new(0.2, 0)
- buttonCorner.Parent = copyButton
- -- Add UIStroke to create a soft border for the CopyButton
- local buttonStroke = Instance.new("UIStroke")
- buttonStroke.Parent = copyButton
- buttonStroke.Thickness = 2
- buttonStroke.Transparency = 0.7 -- Slight transparency
- buttonStroke.Color = Color3.fromRGB(0, 255, 255) -- Soft sea blue stroke
- -- Create a beautiful gradient effect for the CopyButton
- local buttonGradient = Instance.new("UIGradient")
- buttonGradient.Color = ColorSequence.new{
- ColorSequenceKeypoint.new(0.00, Color3.fromRGB(0, 255, 255)), -- Light Blue
- ColorSequenceKeypoint.new(0.50, Color3.fromRGB(0, 128, 255)), -- Deeper Blue
- ColorSequenceKeypoint.new(1.00, Color3.fromRGB(0, 255, 255)) -- Back to Light Blue
- }
- buttonGradient.Rotation = 45 -- Diagonal gradient
- buttonGradient.Parent = copyButton
- -- Function to handle the button click
- copyButton.MouseButton1Click:Connect(function()
- -- Copy the Discord link to the clipboard
- if setclipboard then
- setclipboard("https://discord.gg/nC8yt43R") -- Your Discord link
- print("Discord link copied to clipboard!")
- else
- warn("Clipboard functionality is not supported on this device.")
- end
- -- Hide the credit and the button after clicking
- textLabel.Visible = false
- copyButton.Visible = false
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement