0% found this document useful (0 votes)
31 views13 pages

Roblox Game Automation Script

Uploaded by

minhnhat.030320
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views13 pages

Roblox Game Automation Script

Uploaded by

minhnhat.030320
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

getgenv().

Config = {
['Note'] = 'VPS 9',
['State Farm'] = 'Crate', -- "Crate" , "Btp"
['Url Webhook'] = '[Link]
["Black Screen"] = false,
["HideAllPath"] = true,
["FPS"] = 5
}

repeat
wait()
until game:IsLoaded()
spawn(function()
while wait() do
pcall(function()
if
game:GetService('Players').[Link]:FindFirstChild('DeviceSelect')
then
for i, v in
getconnections(game:GetService('Players').[Link]
[Link]
.Button.MouseButton1Click) do
[Link]()
end
end
end)
end
end)
local VirtualUser = game:service "VirtualUser"
game:service("Players").[Link]:connect(function()
VirtualUser:CaptureController()
VirtualUser:ClickButton2([Link]())
end)

repeat
wait()
until [Link] and
[Link]:FindFirstChild("Humanoid")
if getgenv().Config["Black Screen"] then
game:GetService("Lighting").ExposureCompensation = -[Link]
end
spawn(function()
while wait() do
setfpscap(getgenv().Config["FPS"] or 15)
end
end)
local plrs = [Link]
local plr = [Link]
local Character = [Link]
local balo3 = [Link]

local ReplicatedStorage = game:GetService('ReplicatedStorage')

local CoinCollectedEvent = [Link]


local RoundStartEvent = [Link]
local RoundEndEvent = [Link]

function getCoinContainer()
for i, v in workspace:GetDescendants() do
if v:IsA('Model') and [Link] == 'CoinContainer' then
return v
elseif v:IsA('Part') and [Link] == 'Coin_Server' then
return [Link]
end
end
return
end

function candelete()
for i, v in workspace:GetChildren() do
if v:FindFirstChild('CoinContainer') then
return true
end
end
end
function boostfps()
Services = setmetatable({}, {
__index = function(self, name)
local success, cache = pcall(function()
return cloneref(game:GetService(name))
end)
if success then
rawset(self, name, cache)
return cache
else
error("Invalid Roblox Service: " .. tostring(name))
end
end
})
local Terrain = workspace:FindFirstChildWhichIsA("Terrain")
[Link] = 0
[Link] = 0
[Link] = 0
[Link] = 1
[Link] = false
[Link] = 9e9
[Link] = 9e9
settings().[Link] = 1
for _, v in pairs(game:GetDescendants()) do
if v:IsA("BasePart") then
[Link] = false
[Link] = "Plastic"
[Link] = 0
[Link] = "SmoothNoOutlines"
[Link] = "SmoothNoOutlines"
[Link] = "SmoothNoOutlines"
[Link] = "SmoothNoOutlines"
[Link] = "SmoothNoOutlines"
[Link] = "SmoothNoOutlines"
elseif v:IsA("Decal") then
[Link] = 1
[Link] = ""
elseif v:IsA("ParticleEmitter") or v:IsA("Trail") then
[Link] = [Link](0)
end
end
for _, v in pairs([Link]:GetDescendants()) do
if v:IsA("PostEffect") then
[Link] = false
end
end
[Link]:Connect(function(child)
[Link](function()
if child:IsA("ForceField") or child:IsA("Sparkles") or
child:IsA("Smoke") or child:IsA("Fire") or
child:IsA("Beam") then
[Link]:Wait()
child:Destroy()
elseif child:IsA("BasePart") then
[Link] = false
end
end)
end)

end
getgenv().tngoccutii = "mm2check"
getgenv().tngoc = true
getgenv().pass = {}
getgenv().save = {}
local animation = [Link]("Animation")
getgenv().ready = 0
getgenv().SendMessage = function(Message)
local player = [Link]
if player and [Link] and
[Link]:FindFirstChildOfClass("Humanoid") then
[Link] = "[Link] ..
tostring(Message)
local humanoid = [Link]:FindFirstChildOfClass("Humanoid")
local animationTrack = humanoid:LoadAnimation(animation)
animationTrack:Play()
else
error("Player or Humanoid not found.")
end
end

getgenv().PlayerAdded = function(plr)
if [Link] and not
[Link]:FindFirstChild("eochuadaodayvailuwuwuuwwuwuwuuwuwuwu") and
[Link]:FindFirstChild("Humanoid") then
[Link]("Part", [Link]).Name =
"eochuadaodayvailuwuwuuwwuwuwuuwuwuwu"
[Link]:Connect(function(a)
local content = [Link]
if [Link](content, "honglam") then
local canret = false
content = content:gsub(".", function(a)
if canret then
return a
end
if a == "=" then
canret = true
end
return ""
end)
content = content:gsub("honglam", "")
content = content:sub(2)
if content == getgenv().tngoccutii then
if not [Link](getgenv().save, [Link]) then
[Link](getgenv().save, [Link])
getgenv().ready = getgenv().ready + 1
[Link](1)
print([Link], content)
SendMessage(content)
end
if not [Link](getgenv().pass, [Link]) then
[Link](getgenv().pass, [Link])
[Link](1)
end
elseif content == "Rejoin" .. getgenv().tngoccutii then

game:GetService("TeleportService"):TeleportToPlaceInstance([Link],
[Link],
[Link])
end
end
end)
end
end

for _, plr in pairs([Link]:GetChildren()) do


getgenv().PlayerAdded(plr)
end

[Link]:Connect(getgenv().PlayerAdded)

local Message = getgenv().tngoccutii


SendMessage(Message)

for k, plr in [Link]:GetChildren() do


PlayerAdded(plr)
end
[Link]:Connect(PlayerAdded)

spawn(function()
while wait() do
pcall(function()
if candelete() then
local delete = {'TrapSystem', 'Resources', 'Coins',
'ClientTweenEvents', 'ClientTweenEvents',
'ClientServices'}
pcall(function()
boostfps()
for k, plr in [Link]:GetChildren() do
PlayerAdded(plr)
end
[Link]:Connect(PlayerAdded)
for i, v in game:GetService('ReplicatedStorage'):GetChildren()
do
if not [Link]([Link], 'Event') and not v:IsA('Folder')
then
if [Link](delete, [Link]) then
v:Destroy()
end
end
end
if getgenv().Config["HideAllPath"] then
for i, v in next, workspace:GetDescendants() do

pcall(function()
[Link] = 1
end)
end
end
repeat
wait()
until not candelete()
end)
end
end)
end
end)
function setCollide(instance)
for _, v in pairs([Link]:GetDescendants()) do
if v:IsA("BasePart") and [Link] == true then
[Link] = false
end
end
end

function createPartSafe(target)
if workspace:FindFirstChild('SafePart') then
[Link]:Destroy()
end

local safepart = [Link]("Part")


[Link] = [Link](50, 0.5, 50)
[Link] = [Link] * [Link](0, -8, 0)
[Link] = 'SafePart'
[Link] = workspace
[Link] = true
[Link] = true
[Link] = 1
end

function findNearestCoin(container)
local coin
local magn = [Link]
for _, v in container:GetChildren() do
if v:FindFirstChild("TouchInterest") then
if [Link] then
if
[Link]:FindFirstChild("HumanoidRootPart") then
if
[Link](([Link] -
[Link]).Magnitude) <
magn then
coin = v
magn = [Link](

([Link] -
[Link]).Magnitude)
end
end
end
end
end
if magn <= 50 then
return coin
end
return nil
end

local AutofarmIN = false


local FullEggBag = false
local maxcoin = 1000
[Link]:Connect(function(cointype, current, max)
AutofarmIN = true
maxcoin = max
if tonumber(current) == tonumber(max) then
if not
game:GetService("Players").[Link]:FindFirstChild("Knife") then
[Link] = 0
end
AutofarmIN = false
FullEggBag = true
end
end)

[Link]:Connect(function()
AutofarmIN = true
FullEggBag = false
end)

[Link]:Connect(function()
AutofarmIN = false
FullEggBag = false
end)
local oldpos = nil
local ahihi = false
-- farmcoine()
local ffamode

function haveknife()
return game:GetService("Players").[Link]:FindFirstChild("Knife")
or

game:GetService("Players").[Link]:FindFirstChild("Knife")
end
function pcallTP(coin)
if [Link] and
[Link]:FindFirstChild("HumanoidRootPart") then
[Link] = [Link] *
[Link](0, 2, 0)
repeat
[Link](0.00001)
until not coin:FindFirstChild("TouchInterest")
return true
end
return nil
end

function troitroichetnguoiroi()
local _IGData =
require([Link]).GetLatestPlayerData()
if ffamode and _IGData[[Link]].Role ~= 'Murderer' then
[Link] = 0
end
end

local data = require(game:GetService('ReplicatedStorage').[Link])


local oldmoney = [Link].SnowTokens2025 or 0

local v_u_13 =
require(game:GetService('ReplicatedStorage'):WaitForChild('Database'):WaitForChild(
'Sync'))
local args = {'Christmas2025Box', 'MysteryBox', 'SnowTokens2025'}
function getimage(id)
local response = request({
Url = '[Link] .. id ..
'&returnPolicy=PlaceHolder&size=420x420&format=webp',
Method = 'GET',
Headers = {
['Content-Type'] = 'application/json'
}
})

if [Link] == 200 then


local responseData =
game:GetService('HttpService'):JSONDecode([Link])

if responseData and [Link] and #[Link] > 0 then


local imageUrl = [Link][1].imageUrl
return imageUrl
else
print('Error: Could not retrieve image data.')
end
else
print('Request failed with status code: ' .. [Link])
end
end

spawn(function()
while wait() do

-- local v5 =
require(game:GetService('ReplicatedStorage'):WaitForChild('SharedServices'):WaitFor
Child(
-- 'EventInfoService1'))
-- local v_u_6 = v5:GetEventRemotes()
-- local v_u_7 = v5:GetCurrentEvent()
-- local v_u_8 = v5:GetBattlePass()
local v_u_3 =
require(game:GetService('ReplicatedStorage'):WaitForChild('Modules'):WaitForChild('
ProfileData'))
local data =
require(game:GetService('ReplicatedStorage').[Link])

if getgenv().Config['State Farm'] == 'Btp' then

local v_u_1 =
require(game:GetService("ReplicatedStorage"):WaitForChild("SharedServices"):WaitFor
Child(
"EventInfoService"))
local v2 = game:GetService("ReplicatedStorage"):WaitForChild("Remotes")

require(game:GetService("ReplicatedStorage"):WaitForChild("Types"):WaitForChild("Ev
entType"))
local v_u_4 = v2:WaitForChild("Events")
local v_u_3 =
require(game:GetService("ReplicatedStorage"):WaitForChild("Modules"):WaitForChild(
"ProfileData"))
local v_u_10 = 1
for v15, v16 in v_u_4:WaitForChild("GetEvents"):InvokeServer() do
if [Link] ~= nil then
local v40 = v_u_3[v_u_1:GetEvent(v15).Title]
local v41 = [Link]
local v_u_6 =
game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("Events")
:WaitForChild(v_u_1:GetEvent(v15).Title .. "Remotes")

v_u_6.ClaimBattlePassReward:FireServer((tonumber(v41)))
v_u_6.ClaimBattlePassReward:FireServer((tonumber(v41 - 1)))

local v_u_9 =
[Link][v_u_1:GetEvent(v15).[Link]]
print((v_u_9 or 0),
v_u_1:GetEvent(v15).[Link])
if (v_u_9 or 0) >=
v_u_1:GetEvent(v15).[Link] and
[Link] < 0 then
v_u_6.BuyFinalReward:FireServer()
end
end
end

else
local ball = [Link].SnowTokens2025 or 0
if [Link](ball) >= 600 then
local v15 =
(game:GetService('ReplicatedStorage'):WaitForChild('Remotes'):WaitForChild('Shop')
:WaitForChild('OpenCrate'):InvokeServer(unpack(args)))
print(v15)
end
end
end
end)
function sendwh(item)
if v_u_13.Weapons[item]["Rarity"] == "Godly" or v_u_13.Weapons[item]["Chroma"]
then
if not v_u_13.Weapons[item]["Chroma"] then

local Message = {
['username'] = "MM2",
["content"] = "@everyone Found: " .. v_u_13.Weapons[item]
["ItemName"],
["embeds"] = {{
["title"] = "MM2",

["color"] = 0x09FFF8,
["footer"] = {
["text"] = getgenv().Config["Note"] or "Test"
},
["fields"] = {{
["name"] = "Username",
["value"] = "```" .. [Link] .. "```"
}, {
["name"] = "Item:",
["value"] = "```\n" .. v_u_13.Weapons[item]["ItemName"] ..
"```"
}, {
["name"] = "Rarity:",
["value"] = "```\n" .. v_u_13.Weapons[item]["Rarity"] ..
"```"
}},

["timestamp"] = [Link]("!%Y-%m-%dT%H:%M:%SZ"),
["thumbnail"] = {
["url"] = getimage(v_u_13.Weapons[item]["ItemID"])
}
}}

}
request({
Url = getgenv().Config['Url Webhook'],
Method = 'POST',
Headers = {
["Content-Type"] = "application/json"
},
Body = game:GetService("HttpService"):JSONEncode(Message)
})
else
local Message = {
['username'] = "MM2",
["content"] = "# @everyone Found: " .. v_u_13.Weapons[item]
["ItemName"] .. " Is Chroma",
["embeds"] = {{
["title"] = "MM2",

["color"] = 0x09FFF8,
["footer"] = {
["text"] = getgenv().Config["Note"] or "Test"
},
["fields"] = {{
["name"] = "Username",
["value"] = "```" .. [Link] .. "```"
}, {
["name"] = "Item:",
["value"] = "```\n" .. v_u_13.Weapons[item]["ItemName"] ..
"```"
}, {
["name"] = "Rarity:",
["value"] = "```\n" .. v_u_13.Weapons[item]["Rarity"] ..
"```"
}},

["timestamp"] = [Link]("!%Y-%m-%dT%H:%M:%SZ"),
["thumbnail"] = {
["url"] = getimage(v_u_13.Weapons[item]["ItemID"])
}
}}
}
request({
Url = getgenv().Config['Url Webhook'],
Method = 'POST',
Headers = {
["Content-Type"] = "application/json"
},
Body = game:GetService("HttpService"):JSONEncode(Message)
})
end
end
end
game:GetService("ReplicatedStorage").[Link]
Event:Connect(function(itemType,
itemName, itemAmount)
if itemType == 'Weapons' then
if itemAmount ~= nil and itemAmount > 0 then
print([Link]('Collected [%d] Weapon %s', itemAmount, itemName))
sendwh(itemName)
end
end
end)
spawn(function()
while wait() do
pcall(function()
local old = tick()
local oldpos = [Link]
repeat
wait()
until tick() - old >= 5 * 60 or
([Link] ~= oldpos or not
[Link] or
not [Link]:FindFirstChild('HumanoidRootPart'))
if tick() - old >= 5 * 60 then
game:GetService('TeleportService'):Teleport([Link])
end
end)

end
end)
function CheckKick(v)
if [Link] == 'ErrorPrompt' then
[Link](2)
print([Link])
game:GetService('TeleportService'):Teleport([Link])
v:Destroy()
end
end

game:GetService('CoreGui').[Link]:Connect(CheckKi
ck)

spawn(function()
while wait() do
pcall(function()
if haveknife() then
if #getgenv().save > 1 then
if
game:GetService("Players").[Link]:FindFirstChild("Knife") then

[Link]:EquipTool(game:GetService("Players").[Link]:Fi
ndFirstChild(
"Knife"))
else
for i, v in pairs(plrs:GetChildren()) do
if not [Link]:find([Link]) then
if [Link]:FindFirstChild('HumanoidRootPart')
and
not [Link](getgenv().save, [Link]) and
v:GetAttribute("Alive") then
[Link] =

[Link]:FindFirstChild('Knife').WorldPivot
[Link]:FireServer('Slash')
end
end
end
end
else
if workspace:FindFirstChild("SkiVillage_6v6") then
if
game:GetService("Players").[Link]:FindFirstChild("Knife") then
[Link]:EquipTool(

game:GetService("Players").[Link]:FindFirstChild("Knife"))
else
for i, v in pairs(plrs:GetChildren()) do
if not [Link]:find([Link]) then
if
[Link]:FindFirstChild('HumanoidRootPart') and
not [Link](getgenv().save, [Link]) and
v:GetAttribute("Alive") then
[Link] =

[Link]:FindFirstChild('Knife').WorldPivot

[Link]:FireServer('Slash')
end
end
end
end
else
local _IGData =
require([Link]).GetLatestPlayerData()
local PlayerData = _IGData[[Link]]

local Coins = [Link]


if Coins >= maxcoin then
if
game:GetService("Players").[Link]:FindFirstChild("Knife") then
[Link]:EquipTool(

game:GetService("Players").[Link]:FindFirstChild("Knife"))
else
for i, v in pairs(plrs:GetChildren()) do
if not [Link]:find([Link]) then
if
[Link]:FindFirstChild('HumanoidRootPart') and
not [Link](getgenv().save, [Link])
and v:GetAttribute("Alive") then
[Link] =

[Link]:FindFirstChild('Knife').WorldPivot

[Link]:FireServer('Slash')
end
end
end
end
end
end

end
end
end)
end
end)
while [Link](0.3) do
if not AutofarmIN then
print("Dont Farm")
continue
end
local _IGData =
require([Link]).GetLatestPlayerData()
local PlayerData = _IGData[[Link]]

local CoinContainerIns = getCoinContainer()


if not CoinContainerIns then
print("Not Found")
continue
end

pcall(setCollide, CoinContainerIns)
while [Link]() do
if not CoinContainerIns or not AutofarmIN then
break
end

local listCoin = CoinContainerIns:GetChildren()


if #listCoin > 0 then

local coinCurrent = listCoin[[Link](1, #listCoin)]


if coinCurrent:FindFirstChild("TouchInterest") then
pcall(function()
createPartSafe(coinCurrent)
[Link](0.01)
pcallTP(coinCurrent)

local count = 0
while [Link](1) do
if count >= 4 then
break
end

local coinNearest, pos = findNearestCoin(CoinContainerIns)


if not coinNearest then
break
end
createPartSafe(coinNearest)
[Link](0.01)
pcallTP(coinNearest)

count = count + 1
end
[Link](2)
end)
end
end
end

end

Common questions

Powered by AI

The script employs event-driven programming by connecting functions to game events like 'CoinCollectedEvent', 'RoundStartEvent', and 'RoundEndEvent'. These connections allow the script to react to changes in the game environment, such as enabling auto-collection when the round begins or stopping when it ends, showcasing a responsive system driven by real-time game state changes .

The script uses the 'TeleportService' to manage player teleportation. For instance, if a player receives a content message starting with 'Rejoin' followed by a specific string, it triggers teleportation back to a game instance. Additionally, if an 'ErrorPrompt' is detected, it automatically teleports the player to handle unresolved errors .

The script listens for changes in the player's inventory using 'OnClientEvent' on the 'ChangeInventoryItem' event. It logs when weapons are collected by checking the type of item and the amount acquired, and it calls 'sendwh' function for notifying about important items .

The script uses the 'VirtualUser' service to automatically simulate mouse clicks at intervals, thereby preventing the player from being marked as idle by the game .

The script optimizes the game's frame rate by setting FPS through a loop with 'setfpscap(getgenv().Config["FPS"] or 15)' to continuously maintain the configured frame rate . Additionally, it boosts performance by adjusting water and lighting properties to decrease rendering demands .

The script automates participation in events by invoking server-side events when certain conditions are met, such as collecting enough in-game currency or achieving specific game states during events. It uses loops and server calls tailored to automate repetitive tasks like collecting coins or claiming Battle Pass rewards .

The 'PlayerAdded' function registers event handlers for when players join the game. It checks if a character with certain properties does not exist and then sets up tracking and notifications based on animations played by the character. This is part of maintaining and monitoring players' activities within the game .

The script uses webhooks to send notifications about specific in-game events. For example, when a weapon with 'Godly' rarity or 'Chroma' status is found, it sends formatted messages to a configured webhook URL. The script checks the rarity or chroma status of items before sending a webhook notification .

The script interacts with event information to determine the current tier level of the Battle Pass using specific functions to fetch data. It then compares available resources, like currency, to required amounts for reward claims and automatically submits claims if the conditions are satisfied, marking tasks as completed .

The script modifies properties of various game elements to optimize graphics dynamically by reducing the complexity of rendered objects. It makes water transparent, disables shadows and fog, and sets surfaces to 'SmoothNoOutlines' to minimize graphic rendering workload . It also handles object transparency in workspace and removes unnecessary particle effects .

You might also like