Universal Script 📌
25.8k Views
184 Executions

universal player autofarm

Universal Script 📌
0vdi
0vdiPublished 5
2 years 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

this does not work in most games toggible by G goes under the player and kills them may have to sometimes click yourself - THE GAMES IT MAY WORK ON ------------------------------------------------------------ https://www.roblox.com/games/6269446951/Smooth-Slicing-BETA https://www.roblox.com/games/11158043705/Spooky-Baddies https://www.roblox.com/games/10449761463/The-Strongest-Battlegrounds ------------------------------------------------------------ Make sure to join my community server! https://discord.gg/58WXSujf94

Updates

  1. Script edited: Create script

View Raw
-- Get the local player
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local rootPart = character:WaitForChild("HumanoidRootPart")

local isActive = false -- State to track if the script is active
local runService = game:GetService("RunService")
local userInputService = game:GetService("UserInputService")

-- Function to simulate a mouse click
local function autoClick()
    -- Simulating a click
    local playerMouse = player:GetMouse()
    if playerMouse and playerMouse.Target then
        local args = {playerMouse.Target}
        game:GetService("ReplicatedStorage").RemoteEvents.Click:FireServer(unpack(args)) -- Adjust based on how clicks are handled in your game
    end
end

-- Function to teleport under a player and keep updating position
local function stayUnderTarget(targetPlayer)
    local targetCharacter = targetPlayer.Character
    if targetCharacter and targetCharacter:FindFirstChild("HumanoidRootPart") then
        local targetRootPart = targetCharacter:FindFirstChild("HumanoidRootPart")
        local targetHumanoid = targetCharacter:FindFirstChild("Humanoid")
        
        -- Keep moving under the target until they are defeated
        while targetHumanoid and targetHumanoid.Health > 0 and isActive do
            -- Teleport under the player continuously
            rootPart.CFrame = targetRootPart.CFrame * CFrame.new(0, -3, 0) -- 3 studs below the player
            
            -- Face the target player
            rootPart.CFrame = CFrame.new(rootPart.Position, targetRootPart.Position)

            -- Auto-click every 0.5 seconds
            autoClick()
            wait(0.5) -- Click every 0.5 seconds
        end
    end
end


Comments

1
Log in to join the conversation. Login
0vdi's profile picture
0vdiUploader2 years ago(edited)

make sure to follow me so i can get inspired to make more scripts

0

Tags

More universal scripts

See all
Script hub
55.5k
17.0k
Bumped 13 minutes ago
Key System
Paid
Script hub
43
2
Approved 50 minutes ago

Script hub

Kitty menu

Universal Script 📌
2.2k
24.3k
Bumped 2 hours ago
Script hub
35
2
Approved 2 hours ago
Universal Script 📌
1.4M
697.2k
Bumped 2 hours ago
Universal Script 📌
50
13
Approved 2 hours ago