Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local UselessButton = Instance.new("TextButton")
- local Title = Instance.new("TextLabel")
- local Toggle = Instance.new("TextButton")
- --Properties:
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Frame.Position = UDim2.new(0.343030304, 0, 0.340220392, 0)
- Frame.Size = UDim2.new(0, 406, 0, 195)
- Frame.Visible = false
- UselessButton.Name = "Useless Button"
- UselessButton.Parent = Frame
- UselessButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- UselessButton.Position = UDim2.new(0.252503991, 0, 0.457702816, 0)
- UselessButton.Size = UDim2.new(0, 200, 0, 50)
- UselessButton.Font = Enum.Font.PatrickHand
- UselessButton.Text = "Useless button"
- UselessButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- UselessButton.TextScaled = true
- UselessButton.TextSize = 14.000
- UselessButton.TextWrapped = true
- Title.Name = "Title"
- Title.Parent = Frame
- Title.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Title.Size = UDim2.new(0, 406, 0, 50)
- Title.Font = Enum.Font.PatrickHand
- Title.Text = "The Useless GUI"
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.TextScaled = true
- Title.TextSize = 14.000
- Title.TextWrapped = true
- Toggle.Name = "Toggle"
- Toggle.Parent = ScreenGui
- Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Toggle.Position = UDim2.new(0, 0, 0.506887078, 0)
- Toggle.Size = UDim2.new(0, 200, 0, 50)
- Toggle.Font = Enum.Font.PatrickHand
- Toggle.Text = "Toggle GUI"
- Toggle.TextColor3 = Color3.fromRGB(0, 0, 0)
- Toggle.TextScaled = true
- Toggle.TextSize = 14.000
- Toggle.TextWrapped = true
- -- Scripts:
- local function CHLBVJ_fake_script() -- UselessButton.LocalScript
- local script = Instance.new('LocalScript', UselessButton)
- script.Parent.MouseButton1Click:Connect(function()
- game.Players.LocalPlayer:Kick("Useless GUI has Kicked you for being Useless (Joke)")
- end)
- end
- coroutine.wrap(CHLBVJ_fake_script)()
- local function YVRI_fake_script() -- Frame.LocalScript
- local script = Instance.new('LocalScript', Frame)
- local UIS = game:GetService("UserInputService")
- function dragify(Frame)
- dragToggle = nil
- local dragSpeed = 0
- dragInput = nil
- dragStart = nil
- local dragPos = nil
- function updateInput(input)
- local Delta = input.Position - dragStart
- local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
- game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.25), {Position = Position}):Play()
- end
- Frame.InputBegan:Connect(function(input)
- if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then
- dragToggle = true
- dragStart = input.Position
- startPos = Frame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragToggle = false
- end
- end)
- end
- end)
- Frame.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- game:GetService("UserInputService").InputChanged:Connect(function(input)
- if input == dragInput and dragToggle then
- updateInput(input)
- end
- end)
- end
- dragify(script.Parent)
- end
- coroutine.wrap(YVRI_fake_script)()
- local function WJTAXV_fake_script() -- Toggle.LocalScript
- local script = Instance.new('LocalScript', Toggle)
- script.Parent.MouseButton1Click:Connect(function()
- script.Parent.Frame.Visible = true then
- script.Parent.Frame.Visible = false
- else
- script.Parent.Frame.Visisble = true
- end)
- end
- coroutine.wrap(WJTAXV_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement