Universal Script 📌
734 Views
4.8k Executions

Ai sword bot

Universal Script 📌
cj49
cj4910K executions
4 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Ai open source sword bot, equip a tool that deals dmg for it to work, not tested on pc.

View Raw
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")

local player = Players.LocalPlayer

local FOLLOW_DISTANCE = 6
local ATTACK_DISTANCE = 10
local ATTACK_DELAY = 0.18
local JUMP_MIN = 0.7
local JUMP_MAX = 1.8

local character
local humanoid
local root
local equippedTool

local attacking = false
local nextJump = 0

local function setupCharacter(char)
	character = char
	humanoid = char:WaitForChild("Humanoid")
	root = char:WaitForChild("HumanoidRootPart")
	equippedTool = nil
end

if player.Character then
	setupCharacter(player.Character)
end

player.CharacterAdded:Connect(setupCharacter)

local function isDamageTool(tool)
	if not tool:IsA("Tool") then
		return false
	end

	-- Look for common damage indicators
	if tool:FindFirstChild("Handle") then
		return true


Comments

1
Log in to join the conversation. Login
awyy's profile picture
awyy2 months ago

the code is mid cutted

0