Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local speed = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local speedmanager = Instance.new("TextBox")
- local UICorner = Instance.new("UICorner")
- local TextButton = Instance.new("TextButton")
- local UICorner_2 = Instance.new("UICorner")
- local TextButton_2 = Instance.new("TextButton")
- local UICorner_3 = Instance.new("UICorner")
- local UICorner_4 = Instance.new("UICorner")
- --Properties:
- speed.Name = "speed"
- speed.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- speed.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = speed
- Frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- Frame.Position = UDim2.new(0.720379114, 0, 0.702660441, 0)
- Frame.Size = UDim2.new(0, 207, 0, 132)
- speedmanager.Name = "speedmanager"
- speedmanager.Parent = Frame
- speedmanager.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
- speedmanager.Position = UDim2.new(0.183574885, 0, 0.151515156, 0)
- speedmanager.Size = UDim2.new(0, 130, 0, 28)
- speedmanager.Font = Enum.Font.SourceSans
- speedmanager.PlaceholderColor3 = Color3.fromRGB(144, 144, 144)
- speedmanager.PlaceholderText = "Speed here"
- speedmanager.Text = ""
- speedmanager.TextColor3 = Color3.fromRGB(255, 255, 255)
- speedmanager.TextScaled = true
- speedmanager.TextSize = 14.000
- speedmanager.TextWrapped = true
- UICorner.Parent = speedmanager
- TextButton.Parent = Frame
- TextButton.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
- TextButton.Position = UDim2.new(0.299516916, 0, 0.575757563, 0)
- TextButton.Size = UDim2.new(0, 83, 0, 37)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.Text = "Submit speed"
- TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextButton.TextScaled = true
- TextButton.TextSize = 14.000
- TextButton.TextWrapped = true
- UICorner_2.Parent = TextButton
- TextButton_2.Parent = Frame
- TextButton_2.BackgroundColor3 = Color3.fromRGB(39, 39, 39)
- TextButton_2.BackgroundTransparency = 0.750
- TextButton_2.Size = UDim2.new(0, 24, 0, 20)
- TextButton_2.Font = Enum.Font.SourceSansBold
- TextButton_2.Text = "X"
- TextButton_2.TextColor3 = Color3.fromRGB(214, 0, 0)
- TextButton_2.TextScaled = true
- TextButton_2.TextSize = 14.000
- TextButton_2.TextWrapped = true
- UICorner_3.Parent = TextButton_2
- UICorner_4.Parent = Frame
- -- Scripts:
- local function SAJCT_fake_script() -- TextButton.LocalScript
- local script = Instance.new('LocalScript', TextButton)
- script.Parent.MouseButton1Click:Connect(function()
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = script.Parent.Parent.speedmanager.Text
- end)
- end
- coroutine.wrap(SAJCT_fake_script)()
- local function GHMFK_fake_script() -- TextButton_2.LocalScript
- local script = Instance.new('LocalScript', TextButton_2)
- script.Parent.MouseButton1Click:Connect(function()
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
- end)
- end
- coroutine.wrap(GHMFK_fake_script)()
- local function IUBUEE_fake_script() -- TextButton_2.Script
- local script = Instance.new('Script', TextButton_2)
- script.Parent.MouseButton1Click:Connect(function()
- wait(0.01)
- script.Parent.Parent.Parent:Destroy()
- end)
- end
- coroutine.wrap(IUBUEE_fake_script)()
- local function DTOABQB_fake_script() -- Frame.LocalScript
- local script = Instance.new('LocalScript', Frame)
- local UIS = game:GetService('UserInputService')
- local frame = script.Parent
- local dragToggle = nil
- local dragSpeed = 0.25
- local dragStart = nil
- local startPos = nil
- local 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(dragSpeed), {Position = position}):Play()
- end
- frame.InputBegan:Connect(function(input)
- if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) 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)
- UIS.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- if dragToggle then
- updateInput(input)
- end
- end
- end)
- end
- coroutine.wrap(DTOABQB_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement