Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local Picker = Instance.new("Frame")
- local Bar = Instance.new("Frame")
- local Label = Instance.new("TextButton")
- local Destruction = Instance.new("TextButton")
- local Content = Instance.new("Frame")
- local Box = Instance.new("Frame")
- local Checks = Instance.new("Folder")
- local _00 = Instance.new("Frame")
- local _01 = Instance.new("Frame")
- local _02 = Instance.new("Frame")
- local _03 = Instance.new("Frame")
- local _04 = Instance.new("Frame")
- local _10 = Instance.new("Frame")
- local _11 = Instance.new("Frame")
- local _12 = Instance.new("Frame")
- local _13 = Instance.new("Frame")
- local _14 = Instance.new("Frame")
- local _20 = Instance.new("Frame")
- local _21 = Instance.new("Frame")
- local _22 = Instance.new("Frame")
- local _23 = Instance.new("Frame")
- local _24 = Instance.new("Frame")
- local _30 = Instance.new("Frame")
- local _31 = Instance.new("Frame")
- local _32 = Instance.new("Frame")
- local _33 = Instance.new("Frame")
- local _34 = Instance.new("Frame")
- local _40 = Instance.new("Frame")
- local _41 = Instance.new("Frame")
- local _42 = Instance.new("Frame")
- local _43 = Instance.new("Frame")
- local _44 = Instance.new("Frame")
- local Color = Instance.new("Frame")
- local Red = Instance.new("Frame")
- local Green = Instance.new("Frame")
- local Blue = Instance.new("Frame")
- local Alpha = Instance.new("Frame")
- local Stats = Instance.new("Frame")
- local Red_2 = Instance.new("Frame")
- local Box_2 = Instance.new("TextBox")
- local Label_2 = Instance.new("TextLabel")
- local Green_2 = Instance.new("Frame")
- local Box_3 = Instance.new("TextBox")
- local Label_3 = Instance.new("TextLabel")
- local Blue_2 = Instance.new("Frame")
- local Box_4 = Instance.new("TextBox")
- local Label_4 = Instance.new("TextLabel")
- local Alpha_2 = Instance.new("Frame")
- local Label_5 = Instance.new("TextLabel")
- local Box_5 = Instance.new("TextBox")
- --Properties:
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- Picker.Name = "Picker"
- Picker.Parent = ScreenGui
- Picker.BackgroundColor3 = Color3.new(1, 1, 1)
- Picker.BackgroundTransparency = 1
- Picker.BorderSizePixel = 0
- Picker.Position = UDim2.new(0, 15, 0, 15)
- Picker.Size = UDim2.new(0, 301, 0, 378)
- Picker.SizeConstraint = Enum.SizeConstraint.RelativeXX
- Bar.Name = "Bar"
- Bar.Parent = Picker
- Bar.BackgroundColor3 = Color3.new(0.156863, 0.196078, 0.27451)
- Bar.BorderSizePixel = 0
- Bar.Size = UDim2.new(1, 0, 0, 32)
- Bar.ZIndex = 2
- Label.Name = "Label"
- Label.Parent = Bar
- Label.BackgroundColor3 = Color3.new(1, 1, 1)
- Label.BackgroundTransparency = 1
- Label.Position = UDim2.new(-0.00332225906, 0, 0, 0)
- Label.Size = UDim2.new(1, 0, 1, 0)
- Label.ZIndex = 3
- Label.Font = Enum.Font.Code
- Label.Text = "Color Picker"
- Label.TextColor3 = Color3.new(1, 1, 1)
- Label.TextSize = 24
- Destruction.Name = "Destruction"
- Destruction.Parent = Bar
- Destruction.BackgroundColor3 = Color3.new(1, 1, 1)
- Destruction.BackgroundTransparency = 1
- Destruction.Position = UDim2.new(0.901610017, 0, 0, 0)
- Destruction.Size = UDim2.new(0.10631229, 0, 1, 0)
- Destruction.ZIndex = 3
- Destruction.Font = Enum.Font.Code
- Destruction.Text = "x"
- Destruction.TextColor3 = Color3.new(1, 1, 1)
- Destruction.TextSize = 24
- Content.Name = "Content"
- Content.Parent = Picker
- Content.BackgroundColor3 = Color3.new(0.12549, 0.12549, 0.129412)
- Content.BorderSizePixel = 0
- Content.Position = UDim2.new(0, 0, 0, 32)
- Content.Size = UDim2.new(1, 0, 1, -32)
- Content.ZIndex = 2
- Box.Name = "Box"
- Box.Parent = Content
- Box.BackgroundColor3 = Color3.new(1, 1, 1)
- Box.BorderColor3 = Color3.new(0, 0, 0)
- Box.Position = UDim2.new(0, 16, 0, 16)
- Box.Size = UDim2.new(0, 130, 0, 130)
- Box.ZIndex = 3
- Checks.Name = "Checks"
- Checks.Parent = Box
- _00.Name = "0-0"
- _00.Parent = Checks
- _00.BackgroundColor3 = Color3.new(1, 1, 1)
- _00.BorderSizePixel = 0
- _00.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- _00.ZIndex = 4
- _01.Name = "0-1"
- _01.Parent = Checks
- _01.BackgroundColor3 = Color3.new(0, 0, 0)
- _01.BorderSizePixel = 0
- _01.Position = UDim2.new(0, 0, 0.200000003, 0)
- _01.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- _01.ZIndex = 4
- _02.Name = "0-2"
- _02.Parent = Checks
- _02.BackgroundColor3 = Color3.new(1, 1, 1)
- _02.BorderSizePixel = 0
- _02.Position = UDim2.new(0, 0, 0.400000006, 0)
- _02.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- _02.ZIndex = 4
- _03.Name = "0-3"
- _03.Parent = Checks
- _03.BackgroundColor3 = Color3.new(0, 0, 0)
- _03.BorderSizePixel = 0
- _03.Position = UDim2.new(0, 0, 0.600000024, 0)
- _03.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- _03.ZIndex = 4
- _04.Name = "0-4"
- _04.Parent = Checks
- _04.BackgroundColor3 = Color3.new(1, 1, 1)
- _04.BorderSizePixel = 0
- _04.Position = UDim2.new(0, 0, 0.800000012, 0)
- _04.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- _04.ZIndex = 4
- _10.Name = "1-0"
- _10.Parent = Checks
- _10.BackgroundColor3 = Color3.new(0, 0, 0)
- _10.BorderSizePixel = 0
- _10.Position = UDim2.new(0.200000003, 0, 0, 0)
- _10.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- _10.ZIndex = 4
- _11.Name = "1-1"
- _11.Parent = Checks
- _11.BackgroundColor3 = Color3.new(1, 1, 1)
- _11.BorderSizePixel = 0
- _11.Position = UDim2.new(0.200000003, 0, 0.200000003, 0)
- _11.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- _11.ZIndex = 4
- _12.Name = "1-2"
- _12.Parent = Checks
- _12.BackgroundColor3 = Color3.new(0, 0, 0)
- _12.BorderSizePixel = 0
- _12.Position = UDim2.new(0.200000003, 0, 0.400000006, 0)
- _12.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- _12.ZIndex = 4
- _13.Name = "1-3"
- _13.Parent = Checks
- _13.BackgroundColor3 = Color3.new(1, 1, 1)
- _13.BorderSizePixel = 0
- _13.Position = UDim2.new(0.200000003, 0, 0.600000024, 0)
- _13.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- _13.ZIndex = 4
- _14.Name = "1-4"
- _14.Parent = Checks
- _14.BackgroundColor3 = Color3.new(0, 0, 0)
- _14.BorderSizePixel = 0
- _14.Position = UDim2.new(0.200000003, 0, 0.800000012, 0)
- _14.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- _14.ZIndex = 4
- _20.Name = "2-0"
- _20.Parent = Checks
- _20.BackgroundColor3 = Color3.new(1, 1, 1)
- _20.BorderSizePixel = 0
- _20.Position = UDim2.new(0.400000006, 0, 0, 0)
- _20.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- _20.ZIndex = 4
- _21.Name = "2-1"
- _21.Parent = Checks
- _21.BackgroundColor3 = Color3.new(0, 0, 0)
- _21.BorderSizePixel = 0
- _21.Position = UDim2.new(0.400000006, 0, 0.200000003, 0)
- _21.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- _21.ZIndex = 4
- _22.Name = "2-2"
- _22.Parent = Checks
- _22.BackgroundColor3 = Color3.new(1, 1, 1)
- _22.BorderSizePixel = 0
- _22.Position = UDim2.new(0.400000006, 0, 0.400000006, 0)
- _22.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- _22.ZIndex = 4
- _23.Name = "2-3"
- _23.Parent = Checks
- _23.BackgroundColor3 = Color3.new(0, 0, 0)
- _23.BorderSizePixel = 0
- _23.Position = UDim2.new(0.400000006, 0, 0.600000024, 0)
- _23.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- _23.ZIndex = 4
- _24.Name = "2-4"
- _24.Parent = Checks
- _24.BackgroundColor3 = Color3.new(1, 1, 1)
- _24.BorderSizePixel = 0
- _24.Position = UDim2.new(0.400000006, 0, 0.800000012, 0)
- _24.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- _24.ZIndex = 4
- _30.Name = "3-0"
- _30.Parent = Checks
- _30.BackgroundColor3 = Color3.new(0, 0, 0)
- _30.BorderSizePixel = 0
- _30.Position = UDim2.new(0.600000024, 0, 0, 0)
- _30.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- _30.ZIndex = 4
- _31.Name = "3-1"
- _31.Parent = Checks
- _31.BackgroundColor3 = Color3.new(1, 1, 1)
- _31.BorderSizePixel = 0
- _31.Position = UDim2.new(0.600000024, 0, 0.200000003, 0)
- _31.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- _31.ZIndex = 4
- _32.Name = "3-2"
- _32.Parent = Checks
- _32.BackgroundColor3 = Color3.new(0, 0, 0)
- _32.BorderSizePixel = 0
- _32.Position = UDim2.new(0.600000024, 0, 0.400000006, 0)
- _32.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- _32.ZIndex = 4
- _33.Name = "3-3"
- _33.Parent = Checks
- _33.BackgroundColor3 = Color3.new(1, 1, 1)
- _33.BorderSizePixel = 0
- _33.Position = UDim2.new(0.600000024, 0, 0.600000024, 0)
- _33.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- _33.ZIndex = 4
- _34.Name = "3-4"
- _34.Parent = Checks
- _34.BackgroundColor3 = Color3.new(0, 0, 0)
- _34.BorderSizePixel = 0
- _34.Position = UDim2.new(0.600000024, 0, 0.800000012, 0)
- _34.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- _34.ZIndex = 4
- _40.Name = "4-0"
- _40.Parent = Checks
- _40.BackgroundColor3 = Color3.new(1, 1, 1)
- _40.BorderSizePixel = 0
- _40.Position = UDim2.new(0.800000012, 0, 0, 0)
- _40.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- _40.ZIndex = 4
- _41.Name = "4-1"
- _41.Parent = Checks
- _41.BackgroundColor3 = Color3.new(0, 0, 0)
- _41.BorderSizePixel = 0
- _41.Position = UDim2.new(0.800000012, 0, 0.200000003, 0)
- _41.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- _41.ZIndex = 4
- _42.Name = "4-2"
- _42.Parent = Checks
- _42.BackgroundColor3 = Color3.new(1, 1, 1)
- _42.BorderSizePixel = 0
- _42.Position = UDim2.new(0.800000012, 0, 0.400000006, 0)
- _42.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- _42.ZIndex = 4
- _43.Name = "4-3"
- _43.Parent = Checks
- _43.BackgroundColor3 = Color3.new(0, 0, 0)
- _43.BorderSizePixel = 0
- _43.Position = UDim2.new(0.800000012, 0, 0.600000024, 0)
- _43.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- _43.ZIndex = 4
- _44.Name = "4-4"
- _44.Parent = Checks
- _44.BackgroundColor3 = Color3.new(1, 1, 1)
- _44.BorderSizePixel = 0
- _44.Position = UDim2.new(0.800000012, 0, 0.800000012, 0)
- _44.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- _44.ZIndex = 4
- Color.Name = "Color"
- Color.Parent = Box
- Color.BackgroundColor3 = Color3.new(1, 1, 1)
- Color.BorderSizePixel = 0
- Color.Size = UDim2.new(1, 0, 1, 0)
- Color.ZIndex = 4
- Red.Name = "Red"
- Red.Parent = Content
- Red.BackgroundColor3 = Color3.new(1, 0, 0)
- Red.BorderSizePixel = 0
- Red.Position = UDim2.new(0, 160, 0, 15)
- Red.Size = UDim2.new(0, 32, 0, 318)
- Red.Visible = false
- Red.ZIndex = 3
- Green.Name = "Green"
- Green.Parent = Content
- Green.BackgroundColor3 = Color3.new(0, 1, 0)
- Green.BorderSizePixel = 0
- Green.Position = UDim2.new(0, 207, 0, 15)
- Green.Size = UDim2.new(0, 32, 0, 318)
- Green.Visible = false
- Green.ZIndex = 3
- Blue.Name = "Blue"
- Blue.Parent = Content
- Blue.BackgroundColor3 = Color3.new(0, 0, 1)
- Blue.BorderSizePixel = 0
- Blue.Position = UDim2.new(0, 254, 0, 15)
- Blue.Size = UDim2.new(0, 32, 0, 318)
- Blue.Visible = false
- Blue.ZIndex = 3
- Alpha.Name = "Alpha"
- Alpha.Parent = Content
- Alpha.BackgroundColor3 = Color3.new(0, 0, 0)
- Alpha.BorderSizePixel = 0
- Alpha.Position = UDim2.new(0, 15, 0, 160)
- Alpha.Size = UDim2.new(0, 130, 0, 30)
- Alpha.Visible = false
- Alpha.ZIndex = 3
- Stats.Name = "Stats"
- Stats.Parent = Content
- Stats.BackgroundColor3 = Color3.new(1, 1, 1)
- Stats.BorderColor3 = Color3.new(0, 0, 0)
- Stats.Position = UDim2.new(0, 15, 0, 205)
- Stats.Size = UDim2.new(0, 130, 0, 128)
- Stats.ZIndex = 3
- Red_2.Name = "Red"
- Red_2.Parent = Stats
- Red_2.BackgroundColor3 = Color3.new(0.12549, 0.12549, 0.129412)
- Red_2.BorderColor3 = Color3.new(0, 0, 0)
- Red_2.Size = UDim2.new(1, 0, 0, 32)
- Red_2.ZIndex = 4
- Box_2.Name = "Box"
- Box_2.Parent = Red_2
- Box_2.BackgroundColor3 = Color3.new(0.121569, 0.121569, 0.121569)
- Box_2.BackgroundTransparency = 0.5
- Box_2.BorderSizePixel = 0
- Box_2.Position = UDim2.new(0, 34, 0, 2)
- Box_2.Size = UDim2.new(1, -36, 1, -4)
- Box_2.ZIndex = 5
- Box_2.ClearTextOnFocus = false
- Box_2.Font = Enum.Font.Code
- Box_2.Text = "255"
- Box_2.TextColor3 = Color3.new(1, 1, 1)
- Box_2.TextSize = 24
- Box_2.TextStrokeColor3 = Color3.new(1, 1, 1)
- Label_2.Name = "Label"
- Label_2.Parent = Red_2
- Label_2.BackgroundColor3 = Color3.new(1, 1, 1)
- Label_2.BackgroundTransparency = 1
- Label_2.Size = UDim2.new(0, 32, 1, 0)
- Label_2.ZIndex = 5
- Label_2.Font = Enum.Font.Code
- Label_2.Text = "R:"
- Label_2.TextColor3 = Color3.new(1, 1, 1)
- Label_2.TextSize = 24
- Green_2.Name = "Green"
- Green_2.Parent = Stats
- Green_2.BackgroundColor3 = Color3.new(0.12549, 0.12549, 0.129412)
- Green_2.BorderColor3 = Color3.new(0, 0, 0)
- Green_2.Position = UDim2.new(0, 0, 0, 32)
- Green_2.Size = UDim2.new(1, 0, 0, 32)
- Green_2.ZIndex = 4
- Box_3.Name = "Box"
- Box_3.Parent = Green_2
- Box_3.BackgroundColor3 = Color3.new(0.121569, 0.121569, 0.121569)
- Box_3.BackgroundTransparency = 0.5
- Box_3.BorderSizePixel = 0
- Box_3.Position = UDim2.new(0, 34, 0, 2)
- Box_3.Size = UDim2.new(1, -36, 1, -4)
- Box_3.ZIndex = 5
- Box_3.ClearTextOnFocus = false
- Box_3.Font = Enum.Font.Code
- Box_3.Text = "255"
- Box_3.TextColor3 = Color3.new(1, 1, 1)
- Box_3.TextSize = 24
- Box_3.TextStrokeColor3 = Color3.new(1, 1, 1)
- Label_3.Name = "Label"
- Label_3.Parent = Green_2
- Label_3.BackgroundColor3 = Color3.new(1, 1, 1)
- Label_3.BackgroundTransparency = 1
- Label_3.Size = UDim2.new(0, 32, 1, 0)
- Label_3.ZIndex = 5
- Label_3.Font = Enum.Font.Code
- Label_3.Text = "G:"
- Label_3.TextColor3 = Color3.new(1, 1, 1)
- Label_3.TextSize = 24
- Blue_2.Name = "Blue"
- Blue_2.Parent = Stats
- Blue_2.BackgroundColor3 = Color3.new(0.12549, 0.12549, 0.129412)
- Blue_2.BorderColor3 = Color3.new(0, 0, 0)
- Blue_2.Position = UDim2.new(0, 0, 0, 64)
- Blue_2.Size = UDim2.new(1, 0, 0, 32)
- Blue_2.ZIndex = 4
- Box_4.Name = "Box"
- Box_4.Parent = Blue_2
- Box_4.BackgroundColor3 = Color3.new(0.121569, 0.121569, 0.121569)
- Box_4.BackgroundTransparency = 0.5
- Box_4.BorderSizePixel = 0
- Box_4.Position = UDim2.new(0, 34, 0, 2)
- Box_4.Size = UDim2.new(1, -36, 1, -4)
- Box_4.ZIndex = 5
- Box_4.ClearTextOnFocus = false
- Box_4.Font = Enum.Font.Code
- Box_4.Text = "255"
- Box_4.TextColor3 = Color3.new(1, 1, 1)
- Box_4.TextSize = 24
- Box_4.TextStrokeColor3 = Color3.new(1, 1, 1)
- Label_4.Name = "Label"
- Label_4.Parent = Blue_2
- Label_4.BackgroundColor3 = Color3.new(1, 1, 1)
- Label_4.BackgroundTransparency = 1
- Label_4.Size = UDim2.new(0, 32, 1, 0)
- Label_4.ZIndex = 5
- Label_4.Font = Enum.Font.Code
- Label_4.Text = "B:"
- Label_4.TextColor3 = Color3.new(1, 1, 1)
- Label_4.TextSize = 24
- Alpha_2.Name = "Alpha"
- Alpha_2.Parent = Stats
- Alpha_2.BackgroundColor3 = Color3.new(0.12549, 0.12549, 0.129412)
- Alpha_2.BorderColor3 = Color3.new(0, 0, 0)
- Alpha_2.Position = UDim2.new(0, 0, 0, 96)
- Alpha_2.Size = UDim2.new(1, 0, 0, 32)
- Alpha_2.ZIndex = 4
- Label_5.Name = "Label"
- Label_5.Parent = Alpha_2
- Label_5.BackgroundColor3 = Color3.new(1, 1, 1)
- Label_5.BackgroundTransparency = 1
- Label_5.Size = UDim2.new(0, 32, 1, 0)
- Label_5.ZIndex = 5
- Label_5.Font = Enum.Font.Code
- Label_5.Text = "A:"
- Label_5.TextColor3 = Color3.new(1, 1, 1)
- Label_5.TextSize = 24
- Box_5.Name = "Box"
- Box_5.Parent = Alpha_2
- Box_5.BackgroundColor3 = Color3.new(0.121569, 0.121569, 0.121569)
- Box_5.BackgroundTransparency = 0.5
- Box_5.BorderSizePixel = 0
- Box_5.Position = UDim2.new(0, 34, 0, 2)
- Box_5.Size = UDim2.new(1, -36, 1, -4)
- Box_5.ZIndex = 5
- Box_5.ClearTextOnFocus = false
- Box_5.Font = Enum.Font.Code
- Box_5.Text = "100"
- Box_5.TextColor3 = Color3.new(1, 1, 1)
- Box_5.TextSize = 24
- Box_5.TextStrokeColor3 = Color3.new(1, 1, 1)
- -- Scripts:
- local function GOQE_fake_script() -- Destruction.LocalScript
- local script = Instance.new('LocalScript', Destruction)
- local button = script.Parent
- local function onButtonActivated()
- script.Parent.Parent.Parent.Parent:Destroy()
- end
- button.Activated:Connect(onButtonActivated)
- end
- coroutine.wrap(GOQE_fake_script)()
- local function YXKUXA_fake_script() -- Picker.LocalScript
- local script = Instance.new('LocalScript', Picker)
- local UserInputService = game:GetService("UserInputService")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local Slider = require(ReplicatedStorage:WaitForChild("Slider"))
- local Bar = script.Parent:WaitForChild("Bar")
- local Content = script.Parent:WaitForChild("Content")
- local Box = Content:WaitForChild("Box")
- local Color = Box:WaitForChild("Color")
- local Stats = Content:WaitForChild("Stats")
- local StatRed = Stats:WaitForChild("Red")
- local StatRedBox = StatRed:WaitForChild("Box")
- local StatGreen = Stats:WaitForChild("Green")
- local StatGreenBox = StatGreen:WaitForChild("Box")
- local StatBlue = Stats:WaitForChild("Blue")
- local StatBlueBox = StatBlue:WaitForChild("Box")
- local StatAlpha = Stats:WaitForChild("Alpha")
- local StatAlphaBox = StatAlpha:WaitForChild("Box")
- local Dragging = false
- local LX, LY = 0, 0
- Bar:WaitForChild("Label").MouseButton1Down:Connect(function()
- Dragging = true
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement then
- if Dragging then
- local DX, DY = input.Position.X - LX, input.Position.Y - LY
- script.Parent.Position = script.Parent.Position + UDim2.new(0, DX, 0, DY)
- end
- LX, LY = input.Position.X, input.Position.Y
- end
- end)
- UserInputService.InputEnded:Connect(function(input)
- if Dragging and input.UserInputType == Enum.UserInputType.MouseButton1 then
- Dragging = false
- end
- end)
- local Transparency = Slider.new("x")
- local Red = Slider.new("y")
- local Green = Slider.new("y")
- local Blue = Slider.new("y")
- Transparency.SliderClicking = true
- Red.SliderClicking = true
- Green.SliderClicking = true
- Blue.SliderClicking = true
- local TransparencyFrame = Transparency:GetFrame()
- local TransparencyButton = Transparency:GetButton()
- local RedFrame = Red:GetFrame()
- local RedButton = Red:GetButton()
- local GreenFrame = Green:GetFrame()
- local GreenButton = Green:GetButton()
- local BlueFrame = Blue:GetFrame()
- local BlueButton = Blue:GetButton()
- TransparencyFrame.BackgroundColor3 = Color3.fromRGB(51, 51, 51)
- TransparencyButton.BackgroundColor3 = Color3.new(1, 1, 1)
- TransparencyButton.BorderColor3 = Color3.new(0, 0, 0)
- TransparencyButton.BackgroundTransparency = 0
- RedFrame.BackgroundColor3 = Color3.fromRGB(51, 51, 51)
- RedButton.BackgroundColor3 = Color3.new(1, 0, 0)
- RedButton.BorderColor3 = Color3.new(0, 0, 0)
- RedButton.BackgroundTransparency = 0
- GreenFrame.BackgroundColor3 = Color3.fromRGB(51, 51, 51)
- GreenButton.BackgroundColor3 = Color3.new(0, 1, 0)
- GreenButton.BorderColor3 = Color3.new(0, 0, 0)
- GreenButton.BackgroundTransparency = 0
- BlueFrame.BackgroundColor3 = Color3.fromRGB(51, 51, 51)
- BlueButton.BackgroundColor3 = Color3.new(0, 0, 1)
- BlueButton.BorderColor3 = Color3.new(0, 0, 0)
- BlueButton.BackgroundTransparency = 0
- local function OnButtonDown(self)
- self:GetButton().BackgroundTransparency = 0.3
- end
- local function OnButtonUp(self)
- self:GetButton().BackgroundTransparency = 0
- end
- Transparency.OnButtonDown = OnButtonDown
- Red.OnButtonDown = OnButtonDown
- Green.OnButtonDown = OnButtonDown
- Blue.OnButtonDown = OnButtonDown
- Transparency.OnButtonUp = OnButtonUp
- Red.OnButtonUp = OnButtonUp
- Green.OnButtonUp = OnButtonUp
- Blue.OnButtonUp = OnButtonUp
- local R, G, B, A = 0, 0, 0, 0
- local function UpdateColor()
- Color.BackgroundColor3 = Color3.new(R, G, B)
- Color.BackgroundTransparency = A
- StatRedBox.Text = math.floor(R*255)
- StatGreenBox.Text = math.floor(G*255)
- StatBlueBox.Text = math.floor(B*255)
- StatAlphaBox.Text = (100 - math.floor(A*100))
- end
- function Transparency:OnSlide(value)
- A = 1 - value
- UpdateColor()
- end
- function Red:OnSlide(value)
- R = 1 - value
- UpdateColor()
- end
- function Green:OnSlide(value)
- G = 1 - value
- UpdateColor()
- end
- function Blue:OnSlide(value)
- B = 1 - value
- UpdateColor()
- end
- local function Constrain(n, min, max)
- if n < min then
- return min
- elseif n > max then
- return max
- end
- return n
- end
- local function StatChanged(stat)
- stat.Changed:Connect(function(prop)
- if stat.Text:find("%D") then
- stat.Text = stat.Text:gsub("%D", "")
- end
- end)
- end
- StatChanged(StatRedBox)
- StatChanged(StatGreenBox)
- StatChanged(StatBlueBox)
- StatChanged(StatAlphaBox)
- StatRedBox.FocusLost:Connect(function()
- if tonumber(StatRedBox.Text) then
- R = Constrain(tonumber(StatRedBox.Text), 0, 255)/255
- end
- StatRedBox.Text = math.floor(R*255)
- Red:SetSlide(1 - R)
- UpdateColor()
- end)
- StatGreenBox.FocusLost:Connect(function()
- if tonumber(StatGreenBox.Text) then
- G = Constrain(tonumber(StatGreenBox.Text), 0, 255)/255
- end
- StatGreenBox.Text = math.floor(G*255)
- Green:SetSlide(1 - G)
- UpdateColor()
- end)
- StatBlueBox.FocusLost:Connect(function()
- if tonumber(StatBlueBox.Text) then
- B = Constrain(tonumber(StatBlueBox.Text), 0, 255)/255
- end
- StatBlueBox.Text = math.floor(B*255)
- Blue:SetSlide(1 - B)
- UpdateColor()
- end)
- StatAlphaBox.FocusLost:Connect(function()
- if tonumber(StatAlphaBox.Text) then
- A = 1 - Constrain(tonumber(StatAlphaBox.Text), 0, 100)/100
- end
- StatAlphaBox.Text = math.floor(A*100)
- Transparency:SetSlide(1 - A)
- UpdateColor()
- end)
- TransparencyFrame.Size = UDim2.new(0, 130, 0, 30)
- TransparencyFrame.Position = UDim2.new(0, 15, 0, 160)
- RedFrame.Size = UDim2.new(0, 32, 0, 318)
- RedFrame.Position = UDim2.new(0, 160, 0, 15)
- GreenFrame.Size = UDim2.new(0, 32, 0, 318)
- GreenFrame.Position = UDim2.new(0, 207, 0, 15)
- BlueFrame.Size = UDim2.new(0, 32, 0, 318)
- BlueFrame.Position = UDim2.new(0, 254, 0, 15)
- TransparencyFrame.ZIndex = 3
- TransparencyButton.ZIndex = 4
- RedFrame.ZIndex = 3
- RedButton.ZIndex = 4
- GreenFrame.ZIndex = 3
- GreenButton.ZIndex = 4
- BlueFrame.ZIndex = 3
- BlueButton.ZIndex = 4
- TransparencyFrame.Parent = Content
- RedFrame.Parent = Content
- GreenFrame.Parent = Content
- BlueFrame.Parent = Content
- Transparency:SetSlide(1)
- Red:SetSlide(1)
- Green:SetSlide(1)
- Blue:SetSlide(1)
- UpdateColor()
- end
- coroutine.wrap(YXKUXA_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment