Advertisement
Free-Scripts

Client Side Green Screen [FOR CONTENT CREATORS]

Nov 22nd, 2024 (edited)
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.12 KB | Source Code | 0 0
  1. -- Created by: Free Scripts
  2. -- Discord: freescripts1
  3. -- YouTube: Free Scripts
  4.  
  5. -- Instructions
  6. -- 1. Copy & Paste into a client Executor (Cryptic, Codex, Wave, etc.)
  7. -- 2. Execute
  8. -- 3. Code will automatically be below any client side GUI's
  9.  
  10.  
  11.  
  12. local ScreenGui = Instance.new("ScreenGui")
  13. local GreenScreen = Instance.new("Frame")
  14. local CloseButton = Instance.new("TextButton")
  15. local ColorButton = Instance.new("TextButton")
  16.  
  17. local colors = {
  18.     Color3.fromRGB(0, 255, 0),
  19.     Color3.fromRGB(0, 0, 255),
  20.     Color3.fromRGB(255, 0, 0),
  21.     Color3.fromRGB(255, 255, 255),
  22.     Color3.fromRGB(0, 0, 0)
  23. }
  24. local currentColorIndex = 1
  25.  
  26. ScreenGui.Name = "GreenScreenGui"
  27. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  28. ScreenGui.DisplayOrder = -999999999
  29. ScreenGui.Parent = game:GetService("CoreGui")
  30.  
  31. GreenScreen.Name = "GreenScreen"
  32. GreenScreen.Parent = ScreenGui
  33. GreenScreen.BackgroundColor3 = colors[currentColorIndex]
  34. GreenScreen.BorderSizePixel = 0
  35. GreenScreen.Size = UDim2.new(1, 0, 1, 0)
  36. GreenScreen.Position = UDim2.new(0, 0, 0, 0)
  37. GreenScreen.ZIndex = -1
  38.  
  39. CloseButton.Name = "CloseButton"
  40. CloseButton.Parent = GreenScreen
  41. CloseButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  42. CloseButton.Position = UDim2.new(1, -25, 0, 0)
  43. CloseButton.Size = UDim2.new(0, 25, 0, 25)
  44. CloseButton.Font = Enum.Font.SourceSansBold
  45. CloseButton.Text = "X"
  46. CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  47. CloseButton.TextSize = 20.000
  48. CloseButton.ZIndex = 999999999
  49.  
  50. ColorButton.Name = "ColorButton"
  51. ColorButton.Parent = GreenScreen
  52. ColorButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  53. ColorButton.Position = UDim2.new(1, -55, 0, 0)
  54. ColorButton.Size = UDim2.new(0, 25, 0, 25)
  55. ColorButton.Font = Enum.Font.SourceSansBold
  56. ColorButton.Text = "C"
  57. ColorButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  58. ColorButton.TextSize = 20.000
  59. ColorButton.ZIndex = 999999999
  60.  
  61. CloseButton.MouseButton1Click:Connect(function()
  62.     ScreenGui:Destroy()
  63. end)
  64.  
  65. ColorButton.MouseButton1Click:Connect(function()
  66.     currentColorIndex = currentColorIndex % #colors + 1
  67.     GreenScreen.BackgroundColor3 = colors[currentColorIndex]
  68. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement