Universal Script 📌
672 Views
4.1k Executions

Ai sword bot

Universal Script 📌
cj49
cj4910K executions
3 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
awyy1 month ago

the code is mid cutted

0

Tags

More universal scripts

See all
Universal Script 📌
812
5.0k
Bumped 3 hours ago
Universal Script 📌
6.2k
54.4k
Bumped 3 hours ago
Universal Script 📌
2.4k
2.1k
Bumped 4 hours ago
Key System
Script hub
14.4k
75.1k
Bumped 6 hours ago
Universal Script 📌
106
143
Approved 7 hours ago
Key System
Universal Script 📌
107
185
Approved 7 hours ago