100% found this document useful (1 vote)
295 views5 pages

Sans RNG Auto Clicker Script

The document is a Lua script for a Roblox game that creates a user interface using the Orion library. It includes features like auto-clicking NPCs, toggling God mode, and changing font styles for UI elements. The script allows users to interact with different NPCs and manage their game experience through various toggles and settings.
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
100% found this document useful (1 vote)
295 views5 pages

Sans RNG Auto Clicker Script

The document is a Lua script for a Roblox game that creates a user interface using the Orion library. It includes features like auto-clicking NPCs, toggling God mode, and changing font styles for UI elements. The script allows users to interact with different NPCs and manage their game experience through various toggles and settings.
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

local OrionLib =

loadstring(game:HttpGet(('[Link]
main/source')))()

local Window = OrionLib:MakeWindow({Name = "Sans-rng | v1.6", HidePremium =


false,IntroText = ":^Killer boy^:", SaveConfig = true, ConfigFolder =
"OrionTest"})

local ClickSansRng = Window:MakeTab({


Name = "AutoClickSans",
Icon = "rbxassetid://4483345998",
PremiumOnly = false
})
local ClickAll = Window:MakeTab({
Name = "AutoClickAll",
Icon = "rbxassetid://4483345998",
PremiumOnly = false
})

local RunService = game:GetService("RunService")


local connection

ClickSansRng:AddToggle({
Name = "[Link]",
Default = false,
Callback = function(Value)
print("Auto Click NPCs:", Value)

if Value then
-- เช็คก่อนว่า connection เก่ามีอยู่แล้วหรือไม่ ถ้ามีให้ disconnect
ก่อนเพื่อไม่ให้ซ้ำซ้อน
if connection then
connection:Disconnect()
connection = nil
end

connection = [Link]:Connect(function()
local enemiesFolder = workspace:FindFirstChild("NPCs")
if enemiesFolder then
for _, npc in pairs(enemiesFolder:GetChildren()) do
local hitbox = npc:FindFirstChild("ClickablePart")
if hitbox and hitbox:IsA("Part") then
local clickDetector =
hitbox:FindFirstChildOfClass("ClickDetector")
if clickDetector then
fireclickdetector(clickDetector)
end
end
end
end
end)
else
if connection then
connection:Disconnect()
connection = nil
end
end
end
})
ClickAll:AddLabel("[Link]")

local autoRunning = false

ClickAll:AddToggle({
Name = "[Link]",
Default = false,
Callback = function(Value)
print(Value)
autoRunning = Value

if Value then
-- เปลี่ยนฟอนต์ทั้งหมดเป็น Sans (ใช้ SciFi แทน Sans จริง)
for _, descendant in ipairs(game:GetDescendants()) do
if descendant:IsA("TextLabel") or
descendant:IsA("TextButton") or descendant:IsA("TextBox") then
[Link] = [Link]
end
end

-- เริ่มทำงานอัตโนมัติแบบ loop
[Link](function()
while autoRunning do
local npcFolder = workspace:FindFirstChild("Sans")
if npcFolder then
for _, npc in ipairs(npcFolder:GetChildren())
do
if npc:IsA("Model") then
-- ตรวจหาและคลิก ClickDetector ใน
Main
local main =
npc:FindFirstChild("Main")
if main then
local clickDetector =
main:FindFirstChildOfClass("ClickDetector")
if clickDetector then

fireclickdetector(clickDetector)
end
end

-- ตรวจหาและคลิก ClickDetector ใน
Part
local part =
npc:FindFirstChild("Part")
if part then
local clickDetectorPart =
part:FindFirstChildOfClass("ClickDetector")
if clickDetectorPart then

fireclickdetector(clickDetectorPart)
end
end
end
end
end

[Link](0.01)
end
end)
end
end
})

local godModeEnabled = false


local connection -- ตัวแปรเก็บการเชื่อมต่อเพื่อปิดตอนปิด GodMode

ClickAll:AddToggle({
Name = "GodMode",
Default = false,
Callback = function(Value)
print("GodMode:", Value)
godModeEnabled = Value

local attacksFolder = workspace:FindFirstChild("Attacks")


if not attacksFolder then return end

local function disableAttackObject(obj)


if obj:IsA("BasePart") or obj:IsA("MeshPart") or
obj:IsA("UnionOperation") then
[Link] = 1
[Link] = false
[Link] = false
elseif obj:IsA("Decal") or obj:IsA("SurfaceGui") then
[Link] = false
elseif obj:IsA("Script") or obj:IsA("LocalScript") then
[Link] = true
end
end

-- กรณีเปิด GodMode
if Value then
-- ซ่อนทั้งหมดที่มีอยู่แล้ว
for _, obj in ipairs(attacksFolder:GetDescendants()) do
disableAttackObject(obj)
end

-- ฟังของใหม่ที่ถูกเพิ่มเข้ามา
connection = [Link]:Connect(function(obj)
disableAttackObject(obj)
end)

else
-- กรณีปิด GodMode
for _, obj in ipairs(attacksFolder:GetDescendants()) do
if obj:IsA("BasePart") or obj:IsA("MeshPart") or
obj:IsA("UnionOperation") then
[Link] = 0
[Link] = true
[Link] = true
elseif obj:IsA("Decal") or obj:IsA("SurfaceGui") then
[Link] = true
elseif obj:IsA("Script") or obj:IsA("LocalScript") then
[Link] = false
end
end
-- ยกเลิกการฟัง
if connection then
connection:Disconnect()
connection = nil
end
end
end
})

ClickAll:AddLabel("Unnamed [Link]")

local RunService = game:GetService("RunService")


local connection

ClickAll:AddToggle({
Name = "AutoClick-Unnamed [Link]",
Default = false,
Callback = function(Value)
print("Auto Click NPCs:", Value)

if Value then
-- เช็คก่อนว่า connection เก่ามีอยู่แล้วหรือไม่ ถ้ามีให้ disconnect
ก่อนเพื่อไม่ให้ซ้ำซ้อน
if connection then
connection:Disconnect()
connection = nil
end

connection = [Link]:Connect(function()
local enemiesFolder = workspace:FindFirstChild("Enemies")
if enemiesFolder then
for _, npc in pairs(enemiesFolder:GetChildren()) do
local hitbox = npc:FindFirstChild("ClickHitbox")
if hitbox and hitbox:IsA("Part") then
local clickDetector =
hitbox:FindFirstChildOfClass("ClickDetector")
if clickDetector then
fireclickdetector(clickDetector)
end
end
end
end
end)
else
if connection then
connection:Disconnect()
connection = nil
end
end
end
})

ClickAll:AddLabel("YUKKIY’S SANS RNG")

local RunService = game:GetService("RunService")


local connection

ClickAll:AddToggle({
Name = "AutoClick-YUKKIY’S SANS RNG",
Default = false,
Callback = function(Value)
print("Auto Click NPCs:", Value)

if Value then
-- หากมีการเชื่อมต่อเก่าอยู่แล้ว ให้ยกเลิกก่อน
if connection then
connection:Disconnect()
connection = nil
end

connection = [Link]:Connect(function()
local enemiesFolder = workspace:FindFirstChild("Sanses")
if enemiesFolder then
for _, npc in pairs(enemiesFolder:GetChildren()) do
local union = npc:FindFirstChild("BasePart")
if union and union:IsA("UnionOperation") then
local clickDetector =
union:FindFirstChildOfClass("ClickDetector")
if clickDetector then
fireclickdetector(clickDetector)
end
end
end
end
end)
else
if connection then
connection:Disconnect()
connection = nil
end
end
end
})

You might also like