Advertisement
Eproq012

Untitled

Sep 14th, 2024
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.91 KB | None | 0 0
  1. -- Create references to the UI elements
  2. local screenGui = Instance.new("ScreenGui")
  3. local textLabel = Instance.new("TextLabel")
  4. local copyButton = Instance.new("TextButton")
  5.  
  6. -- Parent the ScreenGui to the PlayerGui
  7. screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  8.  
  9. -- Set up the TextLabel (Credit)
  10. textLabel.Parent = screenGui
  11. textLabel.Text = "Credits: Developed by: black pumpkin"
  12. textLabel.Size = UDim2.new(0.3, 0, 0.1, 0) -- Size of the label
  13. textLabel.Position = UDim2.new(0.35, 0, 0.4, 0) -- Center position
  14. textLabel.TextScaled = true -- Make text scale with label size
  15. textLabel.BackgroundTransparency = 0.3 -- Slight transparency for the background
  16. textLabel.BackgroundColor3 = Color3.fromRGB(25, 25, 25) -- Dark background color
  17. textLabel.TextColor3 = Color3.fromRGB(255, 255, 255) -- White text
  18. textLabel.ZIndex = 2 -- Ensure it appears on top of everything else
  19.  
  20. -- Add UICorner to round the corners of the TextLabel
  21. local labelCorner = Instance.new("UICorner")
  22. labelCorner.CornerRadius = UDim.new(0.2, 0) -- Smooth, rounded corners
  23. labelCorner.Parent = textLabel
  24.  
  25. -- Add UIStroke to create a soft border for the TextLabel
  26. local labelStroke = Instance.new("UIStroke")
  27. labelStroke.Parent = textLabel
  28. labelStroke.Thickness = 2 -- Stroke thickness
  29. labelStroke.Transparency = 0.7 -- Slightly transparent
  30. labelStroke.Color = Color3.fromRGB(0, 255, 255) -- Soft sea blue stroke
  31.  
  32. -- Create a beautiful gradient effect for the TextLabel
  33. local labelGradient = Instance.new("UIGradient")
  34. labelGradient.Color = ColorSequence.new{
  35. ColorSequenceKeypoint.new(0.00, Color3.fromRGB(0, 255, 255)), -- Light Blue
  36. ColorSequenceKeypoint.new(0.50, Color3.fromRGB(0, 128, 255)), -- Deeper Blue
  37. ColorSequenceKeypoint.new(1.00, Color3.fromRGB(0, 255, 255)) -- Back to Light Blue
  38. }
  39. labelGradient.Rotation = 45 -- Diagonal gradient
  40. labelGradient.Parent = textLabel
  41.  
  42. -- Set up the TextButton (Copy Discord)
  43. copyButton.Parent = screenGui
  44. copyButton.Text = "Copy Discord"
  45. copyButton.Size = UDim2.new(0.2, 0, 0.1, 0) -- Size of the button
  46. copyButton.Position = UDim2.new(0.4, 0, 0.55, 0) -- Below the credit text
  47. copyButton.TextScaled = true
  48. copyButton.BackgroundTransparency = 0.3 -- Slight transparency for the button
  49. copyButton.BackgroundColor3 = Color3.fromRGB(25, 25, 25) -- Dark background color
  50. copyButton.TextColor3 = Color3.fromRGB(255, 255, 255) -- White text
  51. copyButton.ZIndex = 2 -- Ensure it appears on top of everything else
  52.  
  53. -- Add UICorner to round the corners of the CopyButton
  54. local buttonCorner = Instance.new("UICorner")
  55. buttonCorner.CornerRadius = UDim.new(0.2, 0)
  56. buttonCorner.Parent = copyButton
  57.  
  58. -- Add UIStroke to create a soft border for the CopyButton
  59. local buttonStroke = Instance.new("UIStroke")
  60. buttonStroke.Parent = copyButton
  61. buttonStroke.Thickness = 2
  62. buttonStroke.Transparency = 0.7 -- Slight transparency
  63. buttonStroke.Color = Color3.fromRGB(0, 255, 255) -- Soft sea blue stroke
  64.  
  65. -- Create a beautiful gradient effect for the CopyButton
  66. local buttonGradient = Instance.new("UIGradient")
  67. buttonGradient.Color = ColorSequence.new{
  68. ColorSequenceKeypoint.new(0.00, Color3.fromRGB(0, 255, 255)), -- Light Blue
  69. ColorSequenceKeypoint.new(0.50, Color3.fromRGB(0, 128, 255)), -- Deeper Blue
  70. ColorSequenceKeypoint.new(1.00, Color3.fromRGB(0, 255, 255)) -- Back to Light Blue
  71. }
  72. buttonGradient.Rotation = 45 -- Diagonal gradient
  73. buttonGradient.Parent = copyButton
  74.  
  75. -- Function to handle the button click
  76. copyButton.MouseButton1Click:Connect(function()
  77. -- Copy the Discord link to the clipboard
  78. if setclipboard then
  79. setclipboard("https://discord.gg/nC8yt43R") -- Your Discord link
  80. print("Discord link copied to clipboard!")
  81. else
  82. warn("Clipboard functionality is not supported on this device.")
  83. end
  84.  
  85. -- Hide the credit and the button after clicking
  86. textLabel.Visible = false
  87. copyButton.Visible = false
  88. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement