Race Monster Auto Farm
Key RequiredUniversal

Race Monster Auto Farm

Universal ScriptGGHAMNGMANGGHAMNGMAN 652 views 60 executesUpdated Apr 28, 2026
Unrated
00
Lua Script•174 lines (4683 chars)
local player = game.Players.LocalPlayer
local pGui = player:WaitForChild("PlayerGui")
local TS = game:GetService("TweenService")

-- Путь к гейтам
local map = workspace:WaitForChild("Map", 10)
local folder = map and map:WaitForChild("winGates", 10)

-- 1. СОЗДАЕМ GUI И КНОПКУ
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "TeleportGui"
screenGui.ResetOnSpawn = false
screenGui.IgnoreGuiInset = true 
screenGui.Parent = pGui

local button = Instance.new("ImageButton")
button.Name = "AutoTeleportButton"
button.Parent = screenGui

-- Настройки формы и позиции
button.AnchorPoint = Vector2.new(1, 0)
button.Position = UDim2.new(1.2, 0, 0.12, 0) 
button.Size = UDim2.new(0, 150, 0, 42)
button.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
button.Image = "rbxassetid://629916786" 
button.BorderSizePixel = 0
button.ZIndex = 100
button.ImageTransparency = 1
button.BackgroundTransparency = 1

-- НАДПИСЬ AUTO FARM
local label = Instance.new("TextLabel")
label.Name = "BtnLabel"
label.Parent = button
label.BackgroundTransparency = 1
label.Size = UDim2.new(1, 0, 1, 0)
label.Font = Enum.Font.GothamBold
label.Text = "Auto Farm"
label.TextColor3 = Color3.fromRGB(255, 255, 255)
label.TextSize = 18
label.TextTransparency = 1
label.ZIndex = 101

local textStroke = Instance.new("UIStroke")
textStroke.Thickness = 1.5
textStroke.Color = Color3.fromRGB(0, 0, 0)
textStroke.Transparency = 1
textStroke.Parent = label

-- Звук, Контур и Закругление
local clickSound = Instance.new("Sound")
clickSound.SoundId = "rbxassetid://138788383008946"
clickSound.Parent = button

local stroke = Instance.new("UIStroke")
stroke.Color = Color3.fromRGB(255, 0, 0)
stroke.Thickness = 3
stroke.Transparency = 1
stroke.Parent = button

local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, 12)
corner.Parent = button

-- 2. ПЕРЕМЕННЫЕ АНИМАЦИИ
local isEnabled = false
local normalSize = UDim2.new(0, 150, 0, 42)
local enlargedSize = UDim2.new(0, 162, 0, 48)
local normalColor = Color3.fromRGB(30, 30, 30)
local whiteColor = Color3.fromRGB(255, 255, 255)

local function tween(targetSize, targetColor)
	TS:Create(button, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
		Size = targetSize,
		BackgroundColor3 = targetColor
	}):Play()
end

-- 3. ЭФФЕКТ ПОЯВЛЕНИЯ
local function startAppearance()
	local steps = 40
	for i = 1, steps do
		local alpha = i / steps
		button.Position = UDim2.new(1.2 - (0.21 * alpha), 0, 0.12, 0)
		button.ImageTransparency = 1 - alpha
		button.BackgroundTransparency = 1 - alpha
		stroke.Transparency = 1 - alpha
		label.TextTransparency = 1 - alpha
		textStroke.Transparency = 1 - alpha
		task.wait(0.01)
	end
end

-- 4. ЦИКЛ ТЕЛЕПОРТАЦИИ С ЭФФЕКТОМ 13-14
local function teleportLoop()
	while isEnabled do
		local char = player.Character or player.CharacterAdded:Wait()
		local hum = char:WaitForChild("Humanoid") 
		local root = char:WaitForChild("HumanoidRootPart")
		
		if hum and root and isEnabled and hum.Health > 0 then
			task.wait(0.3)
			
			-- Телепорт с 1 по 12 гейт
			for i = 1, 12 do
				if not isEnabled then break end
				local gate = folder:FindFirstChild("gate" .. i)
				if gate and root and hum.Health > 0 then
					gate.Size = Vector3.new(0.1, 0.1, 0.1)
					root.CFrame = gate.CFrame * CFrame.new(0, 3, 0)
					task.wait(0.05) 
				end
			end
			
			-- ЦИКЛ МЕЖДУ 13 И 14 (3 РАЗА)
			if isEnabled then
				local g13 = folder:FindFirstChild("gate13")
				local g14 = folder:FindFirstChild("gate14")
				
				if g13 and g14 then
					for i = 1, 3 do
						if not isEnabled then break end
						-- Прыжок на 13
						root.CFrame = g13.CFrame * CFrame.new(0, 3, 0)
						task.wait(0.05)
						-- Прыжок на 14
						root.CFrame = g14.CFrame * CFrame.new(0, 3, 0)
						task.wait(0.05)
					end
				end
			end
			
			-- ФИНАЛЬНЫЙ ПРЫЖОК НА 15
			if isEnabled then
				local g15 = folder:FindFirstChild("gate15")
				if g15 and root and hum.Health > 0 then
					g15.Size = Vector3.new(0.1, 0.1, 0.1)
					root.CFrame = g15.CFrame * CFrame.new(0, 3, 0)
					
					-- ЗАДЕРЖКА 200 МС И СМЕРТЬ
					task.wait(0.2) 
					hum.Health = 0
					player.CharacterAdded:Wait()
					task.wait(0.5)
				end
			end
		else
			task.wait(0.5)
		end
	end
end

-- 5. СОБЫТИЯ
button.MouseButton1Down:Connect(function()
	clickSound:Play()
	tween(enlargedSize, whiteColor)
end)

button.MouseButton1Up:Connect(function()
	tween(normalSize, normalColor)
	isEnabled = not isEnabled
	if isEnabled then
		stroke.Color = Color3.fromRGB(0, 255, 0)
		task.spawn(teleportLoop)
	else
		stroke.Color = Color3.fromRGB(255, 0, 0)
	end
end)

button.MouseLeave:Connect(function()
	tween(normalSize, normalColor)
end)

task.spawn(startAppearance)

Features & Information

Auto Farm - Wins

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts