Untitled
raw download clone
TEXT
views 6
,
size 2365 b
-- Instances:

local ScreenGui = Instance.new("ScreenGui")
local Frame = Instance.new("Frame")
local TextBox = Instance.new("TextBox")
local TextButton = 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.Position = UDim2.new(0.0409956053, 0, 0.0513018072, 0)
Frame.Size = UDim2.new(0, 254, 0, 161)
Frame.Active = true
Frame.Draggable = true

TextBox.Parent = Frame
TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextBox.BorderSizePixel = 0
TextBox.Position = UDim2.new(0.106299214, 0, 0.107267074, 0)
TextBox.Size = UDim2.new(0, 200, 0, 50)
TextBox.Font = Enum.Font.SourceSans
TextBox.PlaceholderText = "Type here your speed"
TextBox.Text = ""
TextBox.TextColor3 = Color3.fromRGB(0, 0, 0)
TextBox.TextScaled = true
TextBox.TextSize = 14.000
TextBox.TextWrapped = true

TextButton.Parent = Frame
TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextButton.BorderSizePixel = 5
TextButton.Position = UDim2.new(0.106299214, 0, 0.557631612, 0)
TextButton.Size = UDim2.new(0, 200, 0, 50)
TextButton.Font = Enum.Font.SourceSans
TextButton.Text = "Set Speed"
TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
TextButton.TextScaled = true
TextButton.TextSize = 14.000
TextButton.TextWrapped = true

TextButton.MouseButton1Click:Connect(function()
	if TextBox.Text == "" then
		game.StarterGui:SetCore("SendNotification",{
			Title = "SploitsBots";
			Text = "You need to type how you want to be fast!";
			Duration = 5;
		})
	else
		game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = tonumber(TextBox.Text)
		game.StarterGui:SetCore("SendNotification",{
			Title = "SploitsBots";
			Text = "Your walkspeed has been changed to "..tonumber(TextBox.Text);
			Duration = 5;
		})
	end
end)

local keyPressed = Enum.KeyCode.U
local userInputService = game:GetService("UserInputService")
local player = game:GetService("Players").LocalPlayer
userInputService.InputBegan:Connect(function(input,isTyping)
	if isTyping then return end
	if input.KeyCode == keyPressed then
		if not Frame.Visible == false then
			Frame.Visible = false
		else
			Frame.Visible = true
		end
	end
end)
close fullscreen
Login or Register to edit or fork this paste. It's free.