local ScriptContext = game:GetService("ScriptContext")
for i,v in next, getconnections(ScriptContext.Error) do
v:Disable()
end
local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local BardTools = {
["Vinifera's Song"] = true,
["Symphony of Horses"] = true,
["Song of Lethargy"] = true,
["Sweet Soothing"] = true,
["Joyous Dance"] = true,
["Theme of Reversal"] = true,
["Bad Time Symphony"] = true,
["Inferno March"] = true,
["Galecaller's Melody"] = true,
}
local Player = Players.LocalPlayer
local a = false
local Targeting = {}
local LeftClick = mouse1click or Input.LeftClick
local RightClick = mouse2click or Input.RightClick
local MoveMouse = mousemoverel or Input.MoveMouse
if not LeftClick or not RightClick or not MoveMouse then return end
_G.MouseSpeed = 6
_G.BardRange = 135
_G.enabled = true
local BardGui = Player.PlayerGui:FindFirstChild("BardGui")
if BardGui then
BardGui.ChildAdded:Connect(function(Button)
if Button:IsA("ImageButton") then
table.insert(Targeting, Button)
end
end)
BardGui.ChildRemoved:Connect(function(Button)
if Button:IsA("ImageButton") and table.find(Targeting, Button) and Targeting[Button] then
Targeting[Button] = nil
end
end)
end
RunService.RenderStepped:Connect(function()
pcall(function()
if Targeting[1] and Player.Character and Player.Character:FindFirstChildOfClass("Tool") and _G.enabled == true and BardGui and BardGui:FindFirstChild("Button") then
local Mouse = Player:GetMouse()
local Button = Targeting[1]
local Goal = Vector2.new(Button.AbsolutePosition.X + Button.AbsoluteSize.X/2,Button.AbsolutePosition.Y + Button.AbsoluteSize.Y/2)
local MouseP = Vector2.new(Mouse.X, Mouse.Y)
MoveMouse(-(Mouse.X - Goal.X)/_G.MouseSpeed,-(Mouse.Y - Goal.Y)/_G.MouseSpeed)
if Button.OuterRing.AbsoluteSize.X <= _G.BardRange and (MouseP - Goal).Magnitude <= Button.AbsoluteSize.X/2 then
table.remove(Targeting, 1)
LeftClick()
RunService.RenderStepped:Wait()
if Button then Button:Destroy() end
end
elseif Targeting[1].Parent == nil then
table.remove(Targeting, 1)
end
end)
end)
Old Khei Lineage Script Features:
- Auto Bard
- Auto Farm
- More