Universal Script 📌
15.4k Views
737 Executions

Universal auto farm

Universal Script 📌
utemporary471
utemporary471Published 10
1 year 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

Tired of getting keys and shit for scripts that dont work for specific games? this script sticks your character to the nearest players' back, then you can auto click(for example, as a killer in forsaken, execute this script and put an auto clicker, ez farming) >fixed following the same person after they die

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

local function getNearestPlayer()
	local myChar = LocalPlayer.Character
	if not myChar or not myChar:FindFirstChild("HumanoidRootPart") then return nil end
	local myPos = myChar.HumanoidRootPart.Position

	local nearest
	local shortest = math.huge
	for _, player in ipairs(Players:GetPlayers()) do
		if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
			local pos = player.Character.HumanoidRootPart.Position
			local dist = (pos - myPos).Magnitude
			if dist < shortest then
				shortest = dist
				nearest = player
			end
		end
	end
	return nearest
end

local function stickToBack(target)
	local myChar = LocalPlayer.Character
	local myRoot = myChar and myChar:FindFirstChild("HumanoidRootPart")
	local targetRoot = target and target.Character and target.Character:FindFirstChild("HumanoidRootPart")
	if not (myRoot and targetRoot) then return end

	if myChar:FindFirstChild("FollowConnection") then
		myChar.FollowConnection:Disconnect()
		myChar.FollowConnection:Destroy()
	end

	local conn = Instance.new("BindableEvent", myChar)
	conn.Name = "FollowConnection"

	RunService.Heartbeat:Connect(function()
		if not target or not target.Character or not target.Character:FindFirstChild("HumanoidRootPart") then


Comments

5
Log in to join the conversation. Login
draxdrako0's profile picture
draxdrako01 year ago

Ill save this might need it in the future

1
Zeuxtronic's profile picture
Zeuxtronic1 year ago

the * you mean "universal autofarm" thats just not possible every game has different goals and objectives you cant just use one script for everything

1
F3DDHub's profile picture
F3DDHub1 year ago

@Zeuxtronic read the description bruh "Tired of getting keys and * for scripts that dont work for specific games? this script sticks your character to the nearest players' back, then you can auto click(for example, as a killer in forsaken, execute this script and put an auto clicker, ez farming)"

1
utemporary471's profile picture
utemporary471Uploader1 year ago(edited)

@Zeuxtronic if ur on mm2 or forsaken it works like AN auto farm

1
utemporary471's profile picture
utemporary471Uploader1 year ago

ok what are yall's problem with dislikes now?

1

More universal scripts

See all
Universal Script 📌
4.0k
26.6k
4 months ago
Script hub
1.1k
28
4 days ago
Key System
Script hub
3.5M
1.0M
1 year ago
Key System
Script hub
2.7M
643.6k
4 months ago
Key System

Script hub

#2 today

Verified script badgeFlow Hub | 35 Games | Updated