Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function randomName()
- local data = ""
- for i=0,20,1 do
- data = data .. tostring(string.char(math.ceil(math.random() * 254)))
- end
- return data
- end
- local DaUiLib = Instance.new("ScreenGui")
- DaUiLib.Name = randomName()
- DaUiLib.Parent = game:GetService("CoreGui")
- DaUiLib.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- local library = {}
- local TweenService = game:GetService("TweenService")
- local uis = game:GetService("UserInputService")
- local tabcount = 0
- local rainbow = 0
- _G.breatherate = 0.005
- local color
- local rainbows = {}
- local buttoncount = {}
- function library:CreateTab(name)
- tabcount = tabcount+1
- buttoncount[tabcount] = 0
- local topbar = Instance.new("Frame")
- local rgbbar = Instance.new("Frame")
- local title = Instance.new("TextLabel")
- local OpenClose = Instance.new("TextButton")
- local container = Instance.new("Frame")
- local UIListLayout = Instance.new("UIListLayout")
- topbar.Name = "topbar"
- topbar.Parent = DaUiLib
- topbar.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- topbar.BorderSizePixel = 0
- topbar.Position = UDim2.new(0, (tabcount)*13+(tabcount-1)*200, 0.0128041022, -500)
- wait(0.3)
- topbar:TweenPosition(UDim2.new(0, (tabcount)*13+(tabcount-1)*200, 0.0128041022, 0))
- topbar.Size = UDim2.new(0, 200, 0, 30)
- rgbbar.Name = "rgbbar"
- rgbbar.Parent = topbar
- rgbbar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- rgbbar.BorderSizePixel = 0
- rgbbar.Position = UDim2.new(0, 0, 1, -3)
- rgbbar.Size = UDim2.new(1, 0, 0, 3)
- title.Name = "title"
- title.Parent = topbar
- title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- title.BackgroundTransparency = 1.000
- title.BorderSizePixel = 0
- title.Position = UDim2.new(0, 5, 0, 0)
- title.Size = UDim2.new(1, -40, 1, 0)
- title.Font = Enum.Font.GothamBold
- title.Text = name
- title.TextColor3 = Color3.fromRGB(255, 255, 255)
- title.TextSize = 16.000
- title.TextXAlignment = Enum.TextXAlignment.Left
- OpenClose.Name = "OpenClose"
- OpenClose.Parent = topbar
- OpenClose.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- OpenClose.BackgroundTransparency = 1.000
- OpenClose.Position = UDim2.new(0.861656487, 0, 0.0666666701, 0)
- OpenClose.Size = UDim2.new(0, 27, 0, 25)
- OpenClose.Font = Enum.Font.GothamBold
- OpenClose.Text = "+"
- OpenClose.TextColor3 = Color3.fromRGB(255, 255, 255)
- OpenClose.TextSize = 20.000
- container.Name = "container"
- container.Parent = topbar
- container.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- container.BackgroundTransparency = 1.000
- container.BorderSizePixel = 0
- container.Position = UDim2.new(0, 2, 1, 0)
- container.Size = UDim2.new(1, -4, 0, 0)
- container.Visible = false
- UIListLayout.Parent = container
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- OpenClose.MouseButton1Click:connect(function()
- if container.Visible == false then
- container.Visible = true
- OpenClose.Text = "-"
- elseif container.Visible == true then
- -- check
- container.Visible = false
- OpenClose.Text = "+"
- end
- end)
- local uis = game:GetService("UserInputService")
- local dragthing = topbar
- dragthing.Active = true
- local dragging
- local draginput
- local dragstart
- local startpos
- local function update(input)
- local delta = input.Position - dragstart
- game:GetService("TweenService"):Create(dragthing, TweenInfo.new(.15), {Position = UDim2.new(startpos.X.Scale, startpos.X.Offset + delta.X, startpos.Y.Scale, startpos.Y.Offset + delta.Y)}):Play()
- end
- dragthing.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = true
- dragstart = input.Position
- startpos = dragthing.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- dragthing.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement then
- draginput = input
- end
- end)
- uis.InputChanged:Connect(function(input)
- if input == draginput and dragging then
- update(input)
- end
- end)
- game:GetService("RunService").RenderStepped:Connect(function()
- local r = (math.sin(workspace.DistributedGameTime/2)/2)+0.5
- local g = (math.sin(workspace.DistributedGameTime)/2)+0.5
- local b = (math.sin(workspace.DistributedGameTime*1.5)/2)+0.5
- local color = Color3.new(r, g, b)
- rgbbar.BackgroundColor3 = color
- end)
- local GamerLibrary = {}
- function GamerLibrary:CreateButton(name,func)
- local ButtonFrame = Instance.new("Frame")
- local Button = Instance.new("TextButton")
- ButtonFrame.Name = "ButtonFrame"
- ButtonFrame.Parent = container
- ButtonFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- ButtonFrame.BorderColor3 = Color3.fromRGB(27, 42, 53)
- ButtonFrame.BorderSizePixel = 0
- ButtonFrame.Size = UDim2.new(0, 196, 0, 25)
- Button.Name = "Button"
- Button.Parent = ButtonFrame
- Button.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
- Button.BorderSizePixel = 0
- Button.Position = UDim2.new(0.0430000164, 0, 0.170000002, 0)
- Button.Size = UDim2.new(0, 180, 0, 18)
- Button.Font = Enum.Font.GothamBold
- Button.TextColor3 = Color3.fromRGB(255, 255, 255)
- Button.TextSize = 12.000
- Button.TextWrapped = true
- Button.Text = name
- Button.MouseButton1Click:Connect(func);
- end
- function GamerLibrary:CreateLabel(name)
- local LabelFrame = Instance.new("Frame")
- local LabelTitle = Instance.new("TextLabel")
- LabelFrame.Name = "LabelFrame"
- LabelFrame.Parent = container
- LabelFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- LabelFrame.BorderSizePixel = 0
- LabelFrame.Position = UDim2.new(0, 0, 0.416666657, 0)
- LabelFrame.Size = UDim2.new(0, 196, 0, 20)
- LabelTitle.Name = "LabelTitle"
- LabelTitle.Parent = LabelFrame
- LabelTitle.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
- LabelTitle.BackgroundTransparency = 1.000
- LabelTitle.Position = UDim2.new(0.00613496918, 0, 0.25, 0)
- LabelTitle.Size = UDim2.new(0, 196, 0, 11)
- LabelTitle.Font = Enum.Font.GothamBold
- LabelTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
- LabelTitle.TextSize = 12.000
- LabelTitle.Text = name
- end
- function GamerLibrary:CreateToggle(name, func)
- local ToggleFrame = Instance.new("Frame")
- local ToggleTitle = Instance.new("TextLabel")
- local OnOffButton = Instance.new("TextButton")
- ToggleFrame.Name = "ToggleFrame"
- ToggleFrame.Parent = container
- ToggleFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- ToggleFrame.BorderColor3 = Color3.fromRGB(255, 255, 255)
- ToggleFrame.BorderSizePixel = 0
- ToggleFrame.Position = UDim2.new(0, 0, 0.223333329, 0)
- ToggleFrame.Size = UDim2.new(0, 196, 0, 25)
- ToggleTitle.Name = "ToggleTitle"
- ToggleTitle.Parent = ToggleFrame
- ToggleTitle.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
- ToggleTitle.BackgroundTransparency = 1.000
- ToggleTitle.Position = UDim2.new(0.0533092804, 0, 0.129999995, 0)
- ToggleTitle.Size = UDim2.new(0, 148, 0, 18)
- ToggleTitle.Font = Enum.Font.GothamBold
- ToggleTitle.Text = name
- ToggleTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
- ToggleTitle.TextSize = 12.000
- ToggleTitle.TextXAlignment = Enum.TextXAlignment.Left
- OnOffButton.Name = "OnOffButton"
- OnOffButton.Parent = ToggleTitle
- OnOffButton.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
- OnOffButton.BackgroundTransparency = 1.000
- OnOffButton.Position = UDim2.new(-0.0470066592, 0, -0.0166659914, 0)
- OnOffButton.Size = UDim2.new(0, 186, 0, 18)
- OnOffButton.Font = Enum.Font.GothamBold
- OnOffButton.Text = "OFF "
- OnOffButton.TextColor3 = Color3.fromRGB(255, 0, 0)
- OnOffButton.TextSize = 13.000
- OnOffButton.TextWrapped = true
- OnOffButton.TextXAlignment = Enum.TextXAlignment.Right
- OnOffButton.MouseButton1Click:Connect(function()
- if OnOffButton.Text == "OFF " then
- func(true)
- OnOffButton.Text = "ON "
- OnOffButton.TextColor3 = Color3.fromRGB(0, 255, 0)
- elseif OnOffButton.Text == "ON " then
- func(false)
- OnOffButton.TextColor3 = Color3.fromRGB(255, 0, 0)
- OnOffButton.Text = "OFF "
- end
- end)
- end
- function GamerLibrary:CreateSlider(name,min,max,func)
- local SliderFrame = Instance.new("Frame")
- local SliderValue = Instance.new("TextLabel")
- local Slider = Instance.new("Frame")
- local Bar = Instance.new("Frame")
- local Knob = Instance.new("TextButton")
- local SliderText = Instance.new("TextLabel")
- SliderFrame.Name = "SliderFrame"
- SliderFrame.Parent = container
- SliderFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- SliderFrame.BorderSizePixel = 0
- SliderFrame.Position = UDim2.new(0, 0, 0.306666672, 0)
- SliderFrame.Size = UDim2.new(0, 196, 0, 25)
- SliderValue.Name = "SliderValue"
- SliderValue.Parent = SliderFrame
- SliderValue.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
- SliderValue.BackgroundTransparency = 1.000
- SliderValue.Position = UDim2.new(0.247160614, 0, 0.170000002, 0)
- SliderValue.Size = UDim2.new(0, 68, 0, 11)
- SliderValue.Font = Enum.Font.GothamBold
- SliderValue.Text = min
- SliderValue.TextColor3 = Color3.fromRGB(255, 255, 255)
- SliderValue.TextSize = 12.000
- SliderValue.TextXAlignment = Enum.TextXAlignment.Right
- Slider.Name = "Slider"
- Slider.Parent = SliderFrame
- Slider.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- Slider.BackgroundTransparency = 1.000
- Slider.BorderSizePixel = 0
- Slider.Size = UDim2.new(0, 281, 0, 10)
- Bar.Name = "Bar"
- Bar.Parent = Slider
- Bar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Bar.BorderSizePixel = 0
- Bar.Position = UDim2.new(0.434163719, 0, 0.692307711, 0)
- Bar.Size = UDim2.new(0, 67, 0, 3)
- Knob.Name = "Knob"
- Knob.Parent = Bar
- Knob.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Knob.Position = UDim2.new(0, 0, -2, 0)
- Knob.Size = UDim2.new(0, 5, 0, 15)
- Knob.Font = Enum.Font.SourceSans
- Knob.Text = ""
- Knob.TextColor3 = Color3.fromRGB(0, 0, 0)
- Knob.TextSize = 14.000
- SliderText.Name = "SliderText"
- SliderText.Parent = SliderFrame
- SliderText.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
- SliderText.BackgroundTransparency = 1.000
- SliderText.Position = UDim2.new(0.0522887409, 0, 0, 0)
- SliderText.Size = UDim2.new(0, 81, 0, 21)
- SliderText.Font = Enum.Font.GothamBold
- SliderText.Text = name
- SliderText.TextColor3 = Color3.fromRGB(255, 255, 255)
- SliderText.TextSize = 12.000
- SliderText.TextXAlignment = Enum.TextXAlignment.Left
- local knob = Knob;
- local valueChangedEvent = Instance.new("BindableEvent")
- local startXScale = -.05;
- local endXScale = .95;
- local MinValue = min
- local MaxValue = max
- local Valueasd;
- local mouse = game:GetService("Players").LocalPlayer:GetMouse()
- valueChangedEvent.Name = "ValueChanged"
- valueChangedEvent.Archivable = true
- -- Updates the position of the knob as well as the value
- local prevValue = nil;
- local function Update()
- local absPosition = Bar.AbsolutePosition.X;
- local absSize = Bar.AbsoluteSize.X;
- local mouseDelta = math.min(math.max(0, mouse.X - absPosition), absSize);
- local value = MinValue + ((mouseDelta / absSize) * (MaxValue - MinValue));
- Valueasd = math.floor(value)
- SliderValue.Text = math.floor(value)
- knob.Position = UDim2.new((mouseDelta / absSize) - .05, knob.Position.X.Offset, knob.Position.Y.Scale, knob.Position.Y.Offset);
- if (prevValue ~= nil and math.floor(prevValue) ~= math.floor(value)) then
- valueChangedEvent:Fire(prevValue, math.floor(value));
- prevValue = math.floor(value);
- else
- prevValue = math.floor(value);
- end
- end
- -- Coroutine to keep updating
- local keepUpdating = false;
- local function Updater()
- while (true) do
- if (keepUpdating) then
- Update()
- func(Valueasd)
- end
- wait(.05)
- end
- end
- local taskCoro = coroutine.create(Updater)
- coroutine.resume(taskCoro);
- -- Event Connecting
- knob.MouseButton1Down:Connect(function()
- keepUpdating = true;
- end)
- local UserInputService = game:GetService("UserInputService")
- UserInputService.InputEnded:Connect(function(inputObject)
- if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then
- keepUpdating = false;
- end
- end)
- end
- function GamerLibrary:CreateTextbox(name, deftext, func)
- local TextboxFrame = Instance.new("Frame")
- local TextboxTitle = Instance.new("TextLabel")
- local TextBoxTextbox = Instance.new("TextBox")
- TextboxFrame.Name = "TextboxFrame"
- TextboxFrame.Parent = container
- TextboxFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- TextboxFrame.BorderColor3 = Color3.fromRGB(255, 255, 255)
- TextboxFrame.BorderSizePixel = 0
- TextboxFrame.Position = UDim2.new(0, 0, 0.25, 0)
- TextboxFrame.Size = UDim2.new(0, 196, 0, 25)
- TextboxTitle.Name = "TextboxTitle"
- TextboxTitle.Parent = TextboxFrame
- TextboxTitle.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
- TextboxTitle.BackgroundTransparency = 1.000
- TextboxTitle.Position = UDim2.new(0.0535309464, 0, 0.129999995, 0)
- TextboxTitle.Size = UDim2.new(0, 94, 0, 18)
- TextboxTitle.Font = Enum.Font.GothamBold
- TextboxTitle.Text = name
- TextboxTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextboxTitle.TextSize = 12.000
- TextboxTitle.TextXAlignment = Enum.TextXAlignment.Left
- TextBoxTextbox.Name = "TextBoxTextbox"
- TextBoxTextbox.Parent = TextboxTitle
- TextBoxTextbox.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
- TextBoxTextbox.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextBoxTextbox.BorderSizePixel = 0;
- TextBoxTextbox.Position = UDim2.new(1, 0, -0.017, 0)
- TextBoxTextbox.Size = UDim2.new(0, 88, 0, 18)
- TextBoxTextbox.Font = Enum.Font.GothamBold
- TextBoxTextbox.PlaceholderText = deftext
- TextBoxTextbox.Text = ""
- TextBoxTextbox.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextBoxTextbox.TextSize = 12.000
- TextBoxTextbox.TextWrapped = true
- TextBoxTextbox.FocusLost:Connect(function()
- func(TextBoxTextbox.Text)
- end)
- end
- function GamerLibrary:CreateKeybind(name,defkey, func)
- local KeybindFrame = Instance.new("Frame")
- local KeybindTitle = Instance.new("TextLabel")
- local KeybindButton = Instance.new("TextButton")
- KeybindFrame.Name = "KeybindFrame"
- KeybindFrame.Parent = container
- KeybindFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- KeybindFrame.BorderColor3 = Color3.fromRGB(255, 255, 255)
- KeybindFrame.BorderSizePixel = 0
- KeybindFrame.Position = UDim2.new(0, 0, 0.25, 0)
- KeybindFrame.Size = UDim2.new(0, 196, 0, 25)
- KeybindTitle.Name = "KeybindTitle"
- KeybindTitle.Parent = KeybindFrame
- KeybindTitle.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
- KeybindTitle.BackgroundTransparency = 1.000
- KeybindTitle.Position = UDim2.new(0.0535309762, 0, 0.129999995, 0)
- KeybindTitle.Size = UDim2.new(0, 142, 0, 18)
- KeybindTitle.Font = Enum.Font.GothamBold
- KeybindTitle.Text = name
- KeybindTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
- KeybindTitle.TextSize = 12.000
- KeybindTitle.TextXAlignment = Enum.TextXAlignment.Left
- KeybindButton.Name = "KeybindButton"
- KeybindButton.Parent = KeybindTitle
- KeybindButton.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
- KeybindButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
- KeybindButton.BorderSizePixel = 0;
- KeybindButton.Position = UDim2.new(0.952993333, 0, -0.0166659877, 0)
- KeybindButton.Size = UDim2.new(0, 36, 0, 18)
- KeybindButton.Font = Enum.Font.GothamBold
- KeybindButton.Text = string.upper(defkey)
- KeybindButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- KeybindButton.TextSize = 12.000
- KeybindButton.TextWrapped = true
- local enabled = false
- local mouse = game.Players.LocalPlayer:GetMouse()
- KeybindButton.MouseButton1Click:connect(function()
- KeybindButton.Text = "..."
- enabled = true
- mouse.KeyDown:Connect(function(key1)
- if enabled == true then
- KeybindButton.Text = string.upper(key1)
- enabled = false
- end
- end)
- end)
- local enabled2 = false
- mouse.KeyDown:Connect(function(key223)
- enabled2 = true
- if key223 == string.lower(KeybindButton.Text) then
- if enabled2 == true then
- func()
- enabled2 = false
- end
- end
- end)
- end
- function GamerLibrary:CreatePlayerDropdown(name, func)
- local DropDownFrame = Instance.new("Frame")
- local DropDownTitle = Instance.new("TextLabel")
- local DropdownContainer = Instance.new("Frame")
- local Player1 = Instance.new("TextButton")
- local Player2 = Instance.new("TextButton")
- local Player3 = Instance.new("TextButton")
- local Player4 = Instance.new("TextButton")
- local Player5 = Instance.new("TextButton")
- local Player6 = Instance.new("TextButton")
- local UIListLayout_2 = Instance.new("UIListLayout")
- local DropDownClose = Instance.new("TextButton")
- DropDownFrame.Name = "DropDownFrame"
- DropDownFrame.Parent = container
- DropDownFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- DropDownFrame.BorderSizePixel = 0
- DropDownFrame.Position = UDim2.new(0, 0, 0.0833333358, 0)
- DropDownFrame.Size = UDim2.new(0, 196, 0, 25)
- DropDownTitle.Name = "DropDownTitle"
- DropDownTitle.Parent = DropDownFrame
- DropDownTitle.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
- DropDownTitle.BorderSizePixel = 0
- DropDownTitle.Position = UDim2.new(0.0430000164, 0, 0.170000002, 0)
- DropDownTitle.Size = UDim2.new(0, 181, 0, 18)
- DropDownTitle.Font = Enum.Font.GothamBold
- DropDownTitle.Text = "Select Player"
- DropDownTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
- DropDownTitle.TextSize = 12.000
- DropdownContainer.Name = "DropdownContainer"
- DropdownContainer.Parent = DropDownTitle
- DropdownContainer.Active = true
- DropdownContainer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- DropdownContainer.BackgroundTransparency = 0
- DropdownContainer.Position = UDim2.new(0.00245944713, 0, 1.19658232, 0)
- DropdownContainer.Size = UDim2.new(0, 179, 0, 0)
- DropdownContainer.Visible = false
- DropdownContainer.LayoutOrder = -214748364
- Player1.Name = "Player1"
- Player1.Parent = DropdownContainer
- Player1.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
- Player1.BorderColor3 = Color3.fromRGB(255, 255, 255)
- Player1.BorderSizePixel = 0
- Player1.Size = UDim2.new(0, 179, 0, 18)
- Player1.Font = Enum.Font.GothamBold
- Player1.TextColor3 = Color3.fromRGB(255, 255, 255)
- Player1.TextSize = 12.000
- Player1.TextWrapped = true
- Player1.Text = "***"
- Player2.Name = "Player2"
- Player2.Parent = DropdownContainer
- Player2.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
- Player2.BorderColor3 = Color3.fromRGB(255, 255, 255)
- Player2.BorderSizePixel = 0
- Player2.Size = UDim2.new(0, 179, 0, 18)
- Player2.Font = Enum.Font.GothamBold
- Player2.TextColor3 = Color3.fromRGB(255, 255, 255)
- Player2.TextSize = 12.000
- Player2.TextWrapped = true
- Player2.Text = "***"
- Player3.Name = "Player3"
- Player3.Parent = DropdownContainer
- Player3.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
- Player3.BorderColor3 = Color3.fromRGB(255, 255, 255)
- Player3.BorderSizePixel = 0
- Player3.Size = UDim2.new(0, 179, 0, 18)
- Player3.Font = Enum.Font.GothamBold
- Player3.TextColor3 = Color3.fromRGB(255, 255, 255)
- Player3.TextSize = 12.000
- Player3.TextWrapped = true
- Player3.Text = "***"
- Player4.Name = "Player4"
- Player4.Parent = DropdownContainer
- Player4.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
- Player4.BorderColor3 = Color3.fromRGB(255, 255, 255)
- Player4.BorderSizePixel = 0
- Player4.Size = UDim2.new(0, 179, 0, 18)
- Player4.Font = Enum.Font.GothamBold
- Player4.TextColor3 = Color3.fromRGB(255, 255, 255)
- Player4.TextSize = 12.000
- Player4.TextWrapped = true
- Player4.Text = "***"
- Player5.Name = "Player5"
- Player5.Parent = DropdownContainer
- Player5.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
- Player5.BorderColor3 = Color3.fromRGB(255, 255, 255)
- Player5.BorderSizePixel = 0
- Player5.Size = UDim2.new(0, 179, 0, 18)
- Player5.Font = Enum.Font.GothamBold
- Player5.TextColor3 = Color3.fromRGB(255, 255, 255)
- Player5.TextSize = 12.000
- Player5.TextWrapped = true
- Player5.Text = "***"
- Player6.Name = "Player6"
- Player6.Parent = DropdownContainer
- Player6.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
- Player6.BorderColor3 = Color3.fromRGB(255, 255, 255)
- Player6.BorderSizePixel = 0
- Player6.Size = UDim2.new(0, 179, 0, 18)
- Player6.Font = Enum.Font.GothamBold
- Player6.TextColor3 = Color3.fromRGB(255, 255, 255)
- Player6.TextSize = 12.000
- Player6.TextWrapped = true
- Player6.Text = "***"
- UIListLayout_2.Parent = DropdownContainer
- UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
- DropDownClose.Name = "OpenClose"
- DropDownClose.Parent = DropDownTitle
- DropDownClose.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
- DropDownClose.BackgroundTransparency = 1.000
- DropDownClose.Position = UDim2.new(0, 0, -0.017, 0)
- DropDownClose.Size = UDim2.new(0, 180, 0, 18)
- DropDownClose.Font = Enum.Font.GothamBold
- DropDownClose.Text = "▼ "
- DropDownClose.TextColor3 = Color3.fromRGB(255, 255, 255)
- DropDownClose.TextSize = 12.000
- DropDownClose.TextWrapped = true
- DropDownClose.TextXAlignment = Enum.TextXAlignment.Right
- DropDownClose.MouseButton1Click:Connect(function()
- if DropdownContainer.Visible == false then
- DropDownTitle.Text = "Select Player"
- DropdownContainer.Visible = true
- DropDownClose.Text = "▲ "
- elseif DropdownContainer.Visible == true then
- DropdownContainer.Visible = false
- DropDownClose.Text = "▼ "
- end
- end)
- Player1.MouseButton1Down:connect(function()
- DropDownTitle.Text = Player1.Text
- func(DropDownTitle.Text)
- DropdownContainer.Visible = false
- DropDownClose.Text = "▼ "
- if DropDownTitle.Text == "***" then
- DropDownTitle.Text = "Select Player"
- end
- end)
- Player2.MouseButton1Down:connect(function()
- DropDownTitle.Text = Player2.Text
- func(DropDownTitle.Text)
- DropdownContainer.Visible = false
- DropDownClose.Text = "▼ "
- if DropDownTitle.Text == "***" then
- DropDownTitle.Text = "Select Player"
- end
- end)
- Player3.MouseButton1Down:connect(function()
- DropDownTitle.Text = Player3.Text
- func(DropDownTitle.Text)
- DropdownContainer.Visible = false
- DropDownClose.Text = "▼ "
- if DropDownTitle.Text == "***" then
- DropDownTitle.Text = "Select Player"
- end
- end)
- Player4.MouseButton1Down:connect(function()
- DropDownTitle.Text = Player4.Text
- func(DropDownTitle.Text)
- DropdownContainer.Visible = false
- DropDownClose.Text = "▼ "
- if DropDownTitle.Text == "***" then
- DropDownTitle.Text = "Select Player"
- end
- end)
- Player5.MouseButton1Down:connect(function()
- DropDownTitle.Text = Player5.Text
- func(DropDownTitle.Text)
- DropdownContainer.Visible = false
- DropDownClose.Text = "▼ "
- if DropDownTitle.Text == "***" then
- DropDownTitle.Text = "Select Player"
- end
- end)
- Player6.MouseButton1Down:connect(function()
- DropDownTitle.Text = Player6.Text
- func(DropDownTitle.Text)
- DropdownContainer.Visible = false
- DropDownClose.Text = "▼ "
- if DropDownTitle.Text == "***" then
- DropDownTitle.Text = "Select Player"
- end
- end)
- local buttons = {
- Player1,
- Player2,
- Player3,
- Player4,
- Player5,
- Player6
- }
- for i, v in pairs(game.Players:GetChildren()) do
- buttons[i].Text = v.Name
- buttons[i].Visible = true
- end
- game.Players.PlayerRemoving:connect(function()
- for i, v in pairs(game.Players:GetChildren()) do
- buttons[i].Text = v.Name
- buttons[i].Visible = true
- end
- end)
- game.Players.PlayerAdded:connect(function()
- for i, v in pairs(game.Players:GetChildren()) do
- buttons[i].Text = v.Name
- buttons[i].Visible = true
- end
- end)
- end
- return GamerLibrary;
- end
- return library;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement