Auto Slap All
Key Required

Auto Slap All

Teamwork TowerLURK0LURK0 3.8K views 1.8K executesUpdated Oct 30, 2025
5.0/ 5(1 votes)
10100% Positive
Lua Script•345 lines (12390 chars)
local ScreenGui = Instance.new("ScreenGui", game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui"))
ScreenGui.Name = "Ravion"
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
ScreenGui.ResetOnSpawn = false

local MainFrame = Instance.new("Frame", ScreenGui)
MainFrame.Active = true
MainFrame.BorderSizePixel = 0
MainFrame.BackgroundColor3 = Color3.fromRGB(19, 19, 25)
MainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
MainFrame.Size = UDim2.new(0, 179, 0, 92)
MainFrame.Position = UDim2.new(0.49933, 0, 0.49908, 0)
MainFrame.Name = "AutoSlap"

local DraggableScript = Instance.new("LocalScript", MainFrame)
DraggableScript.Name = "DraggableMain"

local MainCorner = Instance.new("UICorner", MainFrame)
MainCorner.CornerRadius = UDim.new(0, 16)

local MainStroke1 = Instance.new("UIStroke", MainFrame)
MainStroke1.Transparency = 0.5
MainStroke1.Thickness = 1.4
MainStroke1.Color = Color3.fromRGB(41, 41, 53)

local TopFrame = Instance.new("Frame", MainFrame)
TopFrame.Size = UDim2.new(1, 0, -0.08953, 50)
TopFrame.Name = "Top"
TopFrame.BackgroundTransparency = 1

local CloseButton = Instance.new("TextButton", TopFrame)
CloseButton.BorderSizePixel = 0
CloseButton.TextSize = 18
CloseButton.AutoButtonColor = false
CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255)
CloseButton.BackgroundColor3 = Color3.fromRGB(27, 27, 35)
CloseButton.FontFace = Font.new("rbxasset://fonts/families/GothamSSm.json", Enum.FontWeight.Bold, Enum.FontStyle.Normal)
CloseButton.Size = UDim2.new(0, 27, 0, 28)
CloseButton.Text = "×"
CloseButton.Name = "Close"
CloseButton.Position = UDim2.new(1, -40, 0, 12)

local CloseScript = Instance.new("LocalScript", CloseButton)
CloseScript.Name = "CloseMenu"

local CloseCorner = Instance.new("UICorner", CloseButton)

local NameLabel1 = Instance.new("TextLabel", TopFrame)
NameLabel1.BorderSizePixel = 0
NameLabel1.TextSize = 14
NameLabel1.TextXAlignment = Enum.TextXAlignment.Left
NameLabel1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
NameLabel1.FontFace = Font.new("rbxasset://fonts/families/GothamSSm.json", Enum.FontWeight.Bold, Enum.FontStyle.Normal)
NameLabel1.TextColor3 = Color3.fromRGB(172, 172, 172)
NameLabel1.BackgroundTransparency = 1
NameLabel1.Size = UDim2.new(0, 44, 0, 18)
NameLabel1.BorderColor3 = Color3.fromRGB(0, 0, 0)
NameLabel1.Text = "AVION"
NameLabel1.Name = "Name"
NameLabel1.Position = UDim2.new(0.176, 0, 0.391, 0)

local NameGradient1 = Instance.new("UIGradient", NameLabel1)
NameGradient1.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.000, Color3.fromRGB(255, 65, 17)),ColorSequenceKeypoint.new(1.000, Color3.fromRGB(219, 58, 10))}

local NameLabel2 = Instance.new("TextLabel", TopFrame)
NameLabel2.TextWrapped = true
NameLabel2.BorderSizePixel = 0
NameLabel2.TextSize = 14
NameLabel2.TextXAlignment = Enum.TextXAlignment.Left
NameLabel2.TextScaled = true
NameLabel2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
NameLabel2.FontFace = Font.new("rbxasset://fonts/families/GothamSSm.json", Enum.FontWeight.Bold, Enum.FontStyle.Normal)
NameLabel2.TextColor3 = Color3.fromRGB(255, 102, 30)
NameLabel2.BackgroundTransparency = 1
NameLabel2.Size = UDim2.new(0, 25, 0, 35)
NameLabel2.BorderColor3 = Color3.fromRGB(0, 0, 0)
NameLabel2.Text = "R"
NameLabel2.Name = "Name"
NameLabel2.Position = UDim2.new(0.05263, 0, 0.1076, 0)

local NameGradient2 = Instance.new("UIGradient", NameLabel2)
NameGradient2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.000, Color3.fromRGB(255, 65, 17)),ColorSequenceKeypoint.new(1.000, Color3.fromRGB(219, 58, 10))}

local CreatorLabel = Instance.new("TextLabel", TopFrame)
CreatorLabel.TextWrapped = true
CreatorLabel.BorderSizePixel = 0
CreatorLabel.TextSize = 11
CreatorLabel.TextXAlignment = Enum.TextXAlignment.Left
CreatorLabel.TextTransparency = 0.63
CreatorLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
CreatorLabel.FontFace = Font.new("rbxasset://fonts/families/GothamSSm.json", Enum.FontWeight.Regular, Enum.FontStyle.Normal)
CreatorLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
CreatorLabel.BackgroundTransparency = 1
CreatorLabel.Size = UDim2.new(0, 67, 0, 9)
CreatorLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
CreatorLabel.Text = "made by lurk"
CreatorLabel.Name = "Creator"
CreatorLabel.Position = UDim2.new(0.06471, 0, 0.81658, 0)

local MainStroke2 = Instance.new("UIStroke", MainFrame)
MainStroke2.Transparency = 0.78
MainStroke2.Thickness = 2.7
MainStroke2.Color = Color3.fromRGB(41, 41, 53)
MainStroke2.ApplyStrokeMode = Enum.ApplyStrokeMode.Border

local SlapFrame = Instance.new("Frame", MainFrame)
SlapFrame.BorderSizePixel = 0
SlapFrame.BackgroundColor3 = Color3.fromRGB(27, 27, 35)
SlapFrame.Size = UDim2.new(0, 163, 0, 29)
SlapFrame.Position = UDim2.new(0.04146, 0, 0.61405, 0)
SlapFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
SlapFrame.Name = "AutoSlap"

local ToggleButton = Instance.new("TextButton", SlapFrame)
ToggleButton.BorderSizePixel = 0
ToggleButton.TextSize = 14
ToggleButton.AutoButtonColor = false
ToggleButton.TextColor3 = Color3.fromRGB(0, 0, 0)
ToggleButton.BackgroundColor3 = Color3.fromRGB(19, 19, 25)
ToggleButton.FontFace = Font.new("rbxasset://fonts/families/SourceSansPro.json", Enum.FontWeight.Regular, Enum.FontStyle.Normal)
ToggleButton.Size = UDim2.new(0, 43, 0, 25)
ToggleButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
ToggleButton.Text = ""
ToggleButton.Name = "Toggle"
ToggleButton.Position = UDim2.new(0.71301, 0, 0.06897, 0)

local AutoSlapScript = Instance.new("LocalScript", ToggleButton)
AutoSlapScript.Name = "AutoSlapScript"

local Circle = Instance.new("Frame", ToggleButton)
Circle.BorderSizePixel = 0
Circle.BackgroundColor3 = Color3.fromRGB(31, 33, 43)
Circle.Size = UDim2.new(0, 15, 0, 15)
Circle.Position = UDim2.new(0.15, 0, 0.2, 0)
Circle.BorderColor3 = Color3.fromRGB(0, 0, 0)
Circle.Name = "Circle"

local CircleCorner = Instance.new("UICorner", Circle)
CircleCorner.CornerRadius = UDim.new(0.9, 0)

local ToggleStroke = Instance.new("UIStroke", ToggleButton)
ToggleStroke.Transparency = 0.5
ToggleStroke.Color = Color3.fromRGB(35, 35, 45)
ToggleStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border

local ToggleCorner = Instance.new("UICorner", ToggleButton)
ToggleCorner.CornerRadius = UDim.new(0, 16)

local SlapLabel = Instance.new("TextLabel", SlapFrame)
SlapLabel.BorderSizePixel = 0
SlapLabel.TextSize = 14
SlapLabel.TextXAlignment = Enum.TextXAlignment.Left
SlapLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
SlapLabel.FontFace = Font.new("rbxasset://fonts/families/GothamSSm.json", Enum.FontWeight.Medium, Enum.FontStyle.Normal)
SlapLabel.TextColor3 = Color3.fromRGB(213, 213, 213)
SlapLabel.BackgroundTransparency = 1
SlapLabel.Size = UDim2.new(0, 60, 0, 15)
SlapLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
SlapLabel.Text = "Auto slap"
SlapLabel.Position = UDim2.new(0.05483, 0, 0.24138, 0)

local SlapStroke = Instance.new("UIStroke", SlapFrame)
SlapStroke.Transparency = 0.5
SlapStroke.Color = Color3.fromRGB(41, 41, 53)

local SlapCorner = Instance.new("UICorner", SlapFrame)
SlapCorner.CornerRadius = UDim.new(0, 16)

task.spawn(function()
	local Main = MainFrame
	local UserInputService = game:GetService("UserInputService")
	local dragging = false
	local dragInput
	local dragStart
	local startPos
	
	local function update(input)
		local delta = input.Position - dragStart
		Main.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
	end
	
	Main.InputBegan:Connect(function(input)
		if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
			dragging = true
			dragStart = input.Position
			startPos = Main.Position
			input.Changed:Connect(function()
				if input.UserInputState == Enum.UserInputState.End then
					dragging = false
				end
			end)
		end
	end)
	
	Main.InputChanged:Connect(function(input)
		if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
			dragInput = input
		end
	end)
	
	UserInputService.InputChanged:Connect(function(input)
		if dragging and input == dragInput then
			update(input)
		end
	end)
end)

task.spawn(function()
	local CloseButton = CloseButton
	local MainFrame = MainFrame
	local TweenService = game:GetService("TweenService")
	local defaultColor = Color3.fromRGB(26, 26, 34)
	local hoverColor = Color3.fromRGB(177, 54, 23)
	local tweenInfo = TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
	
	local function tweenColor(targetColor)
		local tween = TweenService:Create(CloseButton, tweenInfo, {BackgroundColor3 = targetColor})
		tween:Play()
	end
	
	CloseButton.MouseEnter:Connect(function() tweenColor(hoverColor) end)
	CloseButton.MouseLeave:Connect(function() tweenColor(defaultColor) end)
	CloseButton.MouseButton1Down:Connect(function() tweenColor(hoverColor) end)
	CloseButton.MouseButton1Up:Connect(function() tweenColor(hoverColor) end)
	CloseButton.MouseButton1Click:Connect(function()
		MainFrame.Visible = false
		tweenColor(defaultColor)
	end)
end)

task.spawn(function()
	local toggleButton = ToggleButton
	local circle = Circle
	local TweenService = game:GetService("TweenService")
	local Players = game:GetService("Players")
	local LocalPlayer = Players.LocalPlayer
	
	local defaultPos = UDim2.new(0.1, 0, 0.2, 0)
	local toggledPos = UDim2.new(0.55, 0, 0.2, 0)
	local defaultColor = Color3.fromRGB(30, 32, 42)
	local toggledColor = Color3.fromRGB(141, 141, 141)
	
	local isToggled = false
	local attackRunning = false
	local tweenInfo = TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
	
	local function updateCircle(targetPos, targetColor)
		if circle then
			local tween = TweenService:Create(circle, tweenInfo, {Position = targetPos, BackgroundColor3 = targetColor})
			tween:Play()
		end
	end
	
	local function getGreenSlap()
		local Character = LocalPlayer.Character
		if not Character then return nil end
		local greenSlap = Character:FindFirstChild("GreenSlap")
		if greenSlap then return greenSlap end
		greenSlap = LocalPlayer.Backpack:FindFirstChild("GreenSlap")
		return greenSlap
	end
	
	local function ensureGreenSlapEquipped()
		local Character = LocalPlayer.Character
		if not Character then return false end
		local greenSlap = getGreenSlap()
		
		if not greenSlap then
			local success = pcall(function()
				local greenSlapGiver = workspace.Builds.SlapGivers.GreenSlapGiver.MainPart
				if greenSlapGiver and greenSlapGiver:FindFirstChild("TouchInterest") then
					firetouchinterest(Character.HumanoidRootPart, greenSlapGiver, 0)
					task.wait(0.1)
					firetouchinterest(Character.HumanoidRootPart, greenSlapGiver, 1)
				end
			end)
			if success then
				task.wait(1)
				greenSlap = getGreenSlap()
			end
		end
		
		if greenSlap and greenSlap.Parent == LocalPlayer.Backpack then
			local humanoid = Character:FindFirstChildOfClass("Humanoid")
			if humanoid then
				humanoid:EquipTool(greenSlap)
				task.wait(0.3)
			end
		end
		
		return Character:FindFirstChild("GreenSlap") ~= nil
	end
	
	local function attackAllPlayers()
		attackRunning = true
		while isToggled and attackRunning do
			local Character = LocalPlayer.Character
			if not Character then
				task.wait(1)
				continue
			end
			if not ensureGreenSlapEquipped() then
				task.wait(0.5)
				continue
			end
			local greenSlap = Character:FindFirstChild("GreenSlap")
			local eventRemote = greenSlap and greenSlap:FindFirstChild("Event")
			if eventRemote then
				for _, player in ipairs(Players:GetPlayers()) do
					if not isToggled then break end
					if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
						pcall(function()
							local args = {
								[1] = "slash",
								[2] = player.Character,
								[3] = Vector3.new(3.4961578845977783, 5.884932994842529, -1.464390516281128)
							}
							eventRemote:FireServer(unpack(args))
						end)
					end
				end
			end
			task.wait(0.1)
		end
		attackRunning = false
	end
	
	toggleButton.MouseButton1Click:Connect(function()
		isToggled = not isToggled
		if isToggled then
			updateCircle(toggledPos, toggledColor)
			if not attackRunning then
				task.spawn(attackAllPlayers)
			end
		else
			updateCircle(defaultPos, defaultColor)
			attackRunning = false
		end
	end)
	
	if circle then
		circle.Position = defaultPos
		circle.BackgroundColor3 = defaultColor
	end
end)

Features & Information

Auto slap All

Community Comments (0)

No comments yet for this script.

More Scripts for Teamwork Tower