![script [updated jst a little bit]](https://scriptblox.com/images/sb/11232549985-1774997205808.jpg)
Key Required
script [updated jst a little bit]
Lua Script•154 lines (5459 chars)
--[[
WARNING: Use at your own risk!
Features: Loop-Goto (Left & Slightly Behind), Auto-click with Tool, Draggable GUI.
]]
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local VirtualUser = game:GetService("VirtualUser")
local player = Players.LocalPlayer
local pgui = player:WaitForChild("PlayerGui")
-- Variables for Toggle
local Toggled = false
-- Create the ScreenGui
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "LoopGotoCombatGUI"
ScreenGui.Parent = pgui
ScreenGui.ResetOnSpawn = false
-- Create Main Frame
local MainFrame = Instance.new("Frame")
MainFrame.Name = "MainFrame"
MainFrame.Size = UDim2.new(0, 200, 0, 100)
MainFrame.Position = UDim2.new(0.5, -100, 0.5, -50)
MainFrame.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
MainFrame.BorderSizePixel = 0
MainFrame.Parent = ScreenGui
-- Create Top Bar
local TopBar = Instance.new("Frame")
TopBar.Name = "TopBar"
TopBar.Size = UDim2.new(1, 0, 0, 25)
TopBar.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
TopBar.BorderSizePixel = 0
TopBar.Parent = MainFrame
-- Create Title
local Title = Instance.new("TextLabel")
Title.Text = "ya kids script"
Title.Size = UDim2.new(1, -60, 1, 0)
Title.Position = UDim2.new(0, 10, 0, 0)
Title.BackgroundTransparency = 1
Title.TextColor3 = Color3.new(1, 1, 1)
Title.TextXAlignment = Enum.TextXAlignment.Left
Title.Parent = TopBar
-- Create Buttons
local MinBtn = Instance.new("TextButton")
MinBtn.Text = "-"
MinBtn.Size = UDim2.new(0, 25, 1, 0)
MinBtn.Position = UDim2.new(1, -50, 0, 0)
MinBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
MinBtn.TextColor3 = Color3.new(1, 1, 1)
MinBtn.Parent = TopBar
local CloseBtn = Instance.new("TextButton")
CloseBtn.Text = "X"
CloseBtn.Size = UDim2.new(0, 25, 1, 0)
CloseBtn.Position = UDim2.new(1, -25, 0, 0)
CloseBtn.BackgroundColor3 = Color3.fromRGB(150, 0, 0)
CloseBtn.TextColor3 = Color3.new(1, 1, 1)
CloseBtn.Parent = TopBar
-- Create Toggle Button
local ToggleBtn = Instance.new("TextButton")
ToggleBtn.Name = "ToggleBtn"
ToggleBtn.Text = "TOGGLE OFF"
ToggleBtn.Size = UDim2.new(0.8, 0, 0, 40)
ToggleBtn.Position = UDim2.new(0.1, 0, 0.4, 0)
ToggleBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
ToggleBtn.TextColor3 = Color3.new(1, 1, 1)
ToggleBtn.Parent = MainFrame
--- DRAGGING SCRIPT ---
local dragging, dragInput, dragStart, startPos
TopBar.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = true
dragStart = input.Position
startPos = MainFrame.Position
input.Changed:Connect(function()
if input.UserInputState == Enum.UserInputState.End then dragging = false end
end)
end
end)
TopBar.InputChanged:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseMovement then dragInput = input end
end)
UserInputService.InputChanged:Connect(function(input)
if input == dragInput and dragging then
local delta = input.Position - dragStart
MainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
end
end)
--- LOGIC ---
MinBtn.MouseButton1Click:Connect(function()
local minimized = (MainFrame.Size.Y.Offset == 25)
MainFrame:TweenSize(UDim2.new(0, 200, 0, minimized and 100 or 25), "Out", "Quad", 0.2, true)
ToggleBtn.Visible = minimized
MinBtn.Text = minimized and "-" or "+"
end)
ToggleBtn.MouseButton1Click:Connect(function()
Toggled = not Toggled
ToggleBtn.Text = Toggled and "TOGGLE ON" or "TOGGLE OFF"
ToggleBtn.BackgroundColor3 = Toggled and Color3.fromRGB(0, 150, 0) or Color3.fromRGB(50, 50, 50)
end)
CloseBtn.MouseButton1Click:Connect(function()
Toggled = false
ScreenGui:Destroy()
end)
-- The Combat Loop
task.spawn(function()
while true do
task.wait(0.01)
if not ScreenGui.Parent then break end
if Toggled then
local character = player.Character
local rootPart = character and character:FindFirstChild("HumanoidRootPart")
local enemiesFolder = workspace:FindFirstChild("Enemies")
if rootPart and enemiesFolder then
local target = nil
for _, enemy in pairs(enemiesFolder:GetChildren()) do
if enemy:IsA("Model") and enemy:FindFirstChild("HumanoidRootPart") then
local hum = enemy:FindFirstChild("Humanoid")
if hum and hum.Health > 0 then
target = enemy
break
end
end
end
if target then
-- POSITIONED: -3 to the Left, 2 units Behind
-- CFrame.new(X, Y, Z) -> X: Left(-)/Right(+), Y: Down(-)/Up(+), Z: Forward(-)/Back(+)
rootPart.CFrame = target.HumanoidRootPart.CFrame * CFrame.new(-3, 0, 2)
-- Auto-Click Logic
local tool = character:FindFirstChildOfClass("Tool")
if tool then
VirtualUser:Button1Down(Vector2.new(0,0), workspace.CurrentCamera.CFrame)
task.wait(0.05)
VirtualUser:Button1Up(Vector2.new(0,0), workspace.CurrentCamera.CFrame)
end
end
end
end
end
end)Features & Information
auto loopgoto enemies toggle off and on
auto click when equipped a weapon
can be toggled off in the gui too

this script is for ya kids https://www.roblox.com/games/11232549985/ya-kids
i will update it later and make it more useful
Yo ty
Any updates?
Jo js make some updates
@Gojo_satarou bruh sorry i had exam tomorrow
@Gojo_satarou i ran out of ideas sorry Give me some suggestions
i added auto click when u equip weapon and its loop goto to an enemy
i will add more tomorrow if i find more stuff
Um..
Like if possible give items?
@Gojo_satarou not possible i think cuz when i did that it did gave me the item but its not doing anything because the anticheat is too strong
@PotatoGuy what about GamePass?
@Gojo_satarou the game is REALLY dead so i dont think im gonna make scripts about it
Meh