babaprogaming6007
Key RequiredUniversal

babaprogaming6007

Universal Scriptaskeroyunuhesoaskeroyunuheso 16 views 3 executesUpdated Aug 12, 2026
Unrated
00
Lua Script•240 lines (5424 chars)
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")

local player = Players.LocalPlayer

local DEFAULT_SPEED = 16
local enabled = false
local speedValue = DEFAULT_SPEED

--// GUI
local gui = Instance.new("ScreenGui")
gui.Name = "SpeedController"
gui.ResetOnSpawn = false
gui.Parent = player:WaitForChild("PlayerGui")

--// Main Frame
local main = Instance.new("Frame")
main.Size = UDim2.fromOffset(320, 200)
main.Position = UDim2.new(0.5, -160, 0.5, -100)
main.BackgroundColor3 = Color3.fromRGB(24, 24, 32)
main.BorderSizePixel = 0
main.Parent = gui

local mainCorner = Instance.new("UICorner")
mainCorner.CornerRadius = UDim.new(0, 16)
mainCorner.Parent = main

--// UI Stroke
local stroke = Instance.new("UIStroke")
stroke.Color = Color3.fromRGB(65, 65, 80)
stroke.Thickness = 1
stroke.Transparency = 0.3
stroke.Parent = main

--// Title
local title = Instance.new("TextLabel")
title.Size = UDim2.new(1, -30, 0, 35)
title.Position = UDim2.fromOffset(15, 12)
title.BackgroundTransparency = 1
title.Text = "⚡ Speed Controller"
title.TextColor3 = Color3.fromRGB(255, 255, 255)
title.TextSize = 22
title.Font = Enum.Font.GothamBold
title.TextXAlignment = Enum.TextXAlignment.Left
title.Parent = main

--// Subtitle
local subtitle = Instance.new("TextLabel")
subtitle.Size = UDim2.new(1, -30, 0, 22)
subtitle.Position = UDim2.fromOffset(15, 45)
subtitle.BackgroundTransparency = 1
subtitle.Text = "Oyuncu hızını kontrol et"
subtitle.TextColor3 = Color3.fromRGB(150, 150, 160)
subtitle.TextSize = 13
subtitle.Font = Enum.Font.Gotham
subtitle.TextXAlignment = Enum.TextXAlignment.Left
subtitle.Parent = main

--// Speed TextBox
local textbox = Instance.new("TextBox")
textbox.Size = UDim2.fromOffset(165, 45)
textbox.Position = UDim2.fromOffset(15, 78)
textbox.BackgroundColor3 = Color3.fromRGB(38, 38, 48)
textbox.BorderSizePixel = 0
textbox.Text = "16"
textbox.PlaceholderText = "Hız..."
textbox.TextColor3 = Color3.fromRGB(255, 255, 255)
textbox.PlaceholderColor3 = Color3.fromRGB(120, 120, 130)
textbox.TextSize = 17
textbox.Font = Enum.Font.GothamMedium
textbox.ClearTextOnFocus = false
textbox.Parent = main

local textboxCorner = Instance.new("UICorner")
textboxCorner.CornerRadius = UDim.new(0, 10)
textboxCorner.Parent = textbox

--// Toggle Button
local toggle = Instance.new("TextButton")
toggle.Size = UDim2.fromOffset(110, 45)
toggle.Position = UDim2.fromOffset(195, 78)
toggle.BackgroundColor3 = Color3.fromRGB(55, 55, 65)
toggle.BorderSizePixel = 0
toggle.Text = "OFF"
toggle.TextColor3 = Color3.fromRGB(255, 255, 255)
toggle.TextSize = 17
toggle.Font = Enum.Font.GothamBold
toggle.AutoButtonColor = false
toggle.Parent = main

local toggleCorner = Instance.new("UICorner")
toggleCorner.CornerRadius = UDim.new(0, 10)
toggleCorner.Parent = toggle

--// Status
local status = Instance.new("TextLabel")
status.Size = UDim2.new(1, -30, 0, 25)
status.Position = UDim2.fromOffset(15, 140)
status.BackgroundTransparency = 1
status.Text = "● Speed: OFF"
status.TextColor3 = Color3.fromRGB(170, 170, 180)
status.TextSize = 13
status.Font = Enum.Font.GothamMedium
status.TextXAlignment = Enum.TextXAlignment.Left
status.Parent = main

--// Humanoid bul
local function getHumanoid()
	local character = player.Character

	if not character then
		return nil
	end

	return character:FindFirstChildOfClass("Humanoid")
end

--// Hızı uygula
local function applySpeed()
	local humanoid = getHumanoid()

	if not humanoid then
		return
	end

	if enabled then
		if humanoid.WalkSpeed ~= speedValue then
			humanoid.WalkSpeed = speedValue
		end
	else
		if humanoid.WalkSpeed ~= DEFAULT_SPEED then
			humanoid.WalkSpeed = DEFAULT_SPEED
		end
	end
end

--// TextBox kontrolü
textbox.FocusLost:Connect(function()
	local value = tonumber(textbox.Text)

	if value then
		speedValue = value

		if enabled then
			applySpeed()
		end
	else
		textbox.Text = tostring(speedValue)
	end
end)

--// ON / OFF
toggle.MouseButton1Click:Connect(function()
	enabled = not enabled

	if enabled then

		local value = tonumber(textbox.Text)

		if value then
			speedValue = value
		else
			speedValue = DEFAULT_SPEED
			textbox.Text = tostring(DEFAULT_SPEED)
		end

		toggle.Text = "ON"
		status.Text = "● Speed: ON"
		status.TextColor3 = Color3.fromRGB(80, 255, 130)

		TweenService:Create(
			toggle,
			TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
			{
				BackgroundColor3 = Color3.fromRGB(45, 180, 90)
			}
		):Play()

		applySpeed()

	else

		toggle.Text = "OFF"
		status.Text = "● Speed: OFF"
		status.TextColor3 = Color3.fromRGB(170, 170, 180)

		TweenService:Create(
			toggle,
			TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
			{
				BackgroundColor3 = Color3.fromRGB(55, 55, 65)
			}
		):Play()

		applySpeed()
	end
end)

--// Respawn kontrolü
player.CharacterAdded:Connect(function(character)

	character:WaitForChild("Humanoid")

	task.wait(0.1)

	if enabled then
		applySpeed()
	else
		local humanoid = character:FindFirstChildOfClass("Humanoid")

		if humanoid then
			humanoid.WalkSpeed = DEFAULT_SPEED
		end
	end
end)

--// Hızı kontrol et
task.spawn(function()

	while task.wait(0.1) do

		if enabled then

			local humanoid = getHumanoid()

			if humanoid then

				local targetSpeed = tonumber(textbox.Text)

				if targetSpeed and humanoid.WalkSpeed ~= targetSpeed then
					humanoid.WalkSpeed = targetSpeed
				end

			end

		end

	end

end)

Features & Information

Sanene bakion

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts