Universal Script 📌
25.8k Views
147 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
3.2M
752.6k
Bumped 18 minutes ago
Key System

Script hub

Hall of Fame #8

Verified script badgeFlow Hub | 50 Games | Updated

Universal Script 📌
335
1.0k
Bumped 2 hours ago
Key System
Universal Script 📌
7.0k
140.5k
Bumped 3 hours ago
Script hub
45.6k
114.1k
Bumped 4 hours ago
Key System
Script hub
3.5M
447.9k
Bumped 5 hours ago
Key System

Script hub

Hall of Fame #4

Verified script badgeOverflow #1 *OP*

Universal Script 📌
14.7k
70.0k
Bumped 6 hours ago