
25.8k Views
147 Executions
universal player autofarm
Universal Script 📌
0vdiPublished 5
2 years ago
Please login to perform these actions:Does it work?
No reports yetNo 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
Script edited: Create script
-- 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









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