-- Create the Screen UI local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") -- Create the frame for the UI local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 200, 0, 150) -- Adjusted for smaller size on mobile frame.Position = UDim2.new(0, 50, 0, 50) -- Default position frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0) frame.BackgroundTransparency = 0.5 frame.Parent = screenGui -- Title Label (Made By Bang Bang Loccos) local title = Instance.new("TextLabel") title.Size = UDim2.new(1, 0, 0, 30) -- Title height adjusted title.Text = "Made By Bang Bang Loccos" title.TextSize = 14 -- Adjusted for better fitting title.TextColor3 = Color3.fromRGB(255, 255, 255) title.BackgroundTransparency = 1 title.Parent = frame -- Additional Title Label (Made By Carlrusty Dejesus) local additionalTitle = Instance.new("TextLabel") additionalTitle.Size = UDim2.new(1, 0, 0, 30) -- Added height for the second title additionalTitle.Position = UDim2.new(0, 0, 0.2, 0) -- Positioned below the first title additionalTitle.Text = "Made By Carlrusty Dejesus" additionalTitle.TextSize = 14 -- Same size for consistency additionalTitle.TextColor3 = Color3.fromRGB(255, 255, 255) additionalTitle.BackgroundTransparency = 1 additionalTitle.Parent = frame -- Speed value (starting speed) local speed = 16 -- Speed Label local speedLabel = Instance.new("TextLabel") speedLabel.Size = UDim2.new(1, 0, 0, 40) -- Label adjusted for mobile speedLabel.Position = UDim2.new(0, 0, 0.5, 0) -- Adjusted position after titles speedLabel.Text = "Speed: " .. speed speedLabel.TextSize = 18 speedLabel.TextColor3 = Color3.fromRGB(255, 255, 255) speedLabel.BackgroundTransparency = 1 speedLabel.Parent = frame -- Function to update the player's speed local function updateSpeed() speedLabel.Text = "Speed: " .. speed local character = game.Players.LocalPlayer.Character if character then local humanoid = character:FindFirstChild("Humanoid") if humanoid then humanoid.WalkSpeed = speed end end end -- Increase speed (+) Button local increaseButton = Instance.new("TextButton") increaseButton.Size = UDim2.new(0, 60, 0, 40) -- Smaller button for mobile increaseButton.Position = UDim2.new(0, 20, 0.8, 0) increaseButton.Text = "+" increaseButton.TextSize = 20 increaseButton.TextColor3 = Color3.fromRGB(255, 255, 255) increaseButton.BackgroundColor3 = Color3.fromRGB(0, 255, 0) increaseButton.Parent = frame increaseButton.MouseButton1Click:Connect(function() speed = speed + 1 updateSpeed() end) -- Decrease speed (-) Button local decreaseButton = Instance.new("TextButton") decreaseButton.Size = UDim2.new(0, 60, 0, 40) -- Smaller button for mobile decreaseButton.Position = UDim2.new(0, 120, 0.8, 0) decreaseButton.Text = "-" decreaseButton.TextSize = 20 decreaseButton.TextColor3 = Color3.fromRGB(255, 255, 255) decreaseButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0) decreaseButton.Parent = frame decreaseButton.MouseButton1Click:Connect(function() if speed > 0 then speed = speed - 1 updateSpeed() end end) -- Allow the frame to be draggable (mobile-friendly) local dragStart local startPos local function updateDrag(input) local delta = input.Position - dragStart frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end frame.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.UserInputType == Enum.UserInputType.MouseButton1 then dragStart = input.Position startPos = frame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then frame.InputChanged:Disconnect() end end) end end) frame.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement then updateDrag(input) end end) -- Set initial speed updateSpeed()