-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuildACheatForTreasure.lua
322 lines (253 loc) · 10.2 KB
/
BuildACheatForTreasure.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
tweenService = game:GetService("TweenService")
local pos1 = Vector3.new(-57.53654861450195, 34.05609130859375, -225.95188903808594)
local pos2 = Vector3.new(-164.93063354492188, 51.40309524536133, 1275.562744140625)
local pos3 = Vector3.new(-130.416259765625, 51.94549560546875, 8228.53515625)
local pos4 = Vector3.new(-51.67303466796875, 17.631446838378906, 8680.4306640625)
local finish = Vector3.new(-55.36488342285156, -360.0461730957031, 9488.30859375)
Version = "0.0.1"
warn("----------------------------------------------------|")
warn("Loading Build A Cheat For Treasure V" .. Version .. "!")
warn("----------------------------------------------------|")
--! Debugger
local DEBUG = false
if DEBUG then
getfenv().getfenv = function()
return setmetatable({}, {
__index = function()
return function()
return true
end
end
})
end
end
--! Services
local HttpService = game:GetService("HttpService")
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local TweenService = game:GetService("TweenService")
--! Interface Manager
local UISettings = {
TabWidth = 160,
Size = { 680, 560 },
Theme = "Darker",
Acrylic = false,
Transparency = true,
MinimizeKey = "RightShift",
ShowNotifications = true,
ShowWarnings = true,
RenderingMode = "RenderStepped",
AutoImport = true
}
local InterfaceManager = {}
function InterfaceManager:ImportSettings()
pcall(function()
if not DEBUG and getfenv().isfile and getfenv().readfile and getfenv().isfile("UISettings.JSON") and getfenv().readfile("UISettings.F_INT") then
for Key, Value in next, HttpService:JSONDecode(getfenv().readfile("UISettings.JSON")) do
UISettings[Key] = Value
end
end
end)
end
function InterfaceManager:ExportSettings()
pcall(function()
if not DEBUG and getfenv().isfile and getfenv().readfile and getfenv().writefile then
getfenv().writefile("UISettings.JSON", HttpService:JSONEncode(UISettings))
end
end)
end
InterfaceManager:ImportSettings()
UISettings.__LAST_RUN__ = os.date()
InterfaceManager:ExportSettings()
warn("Saved UISettings Loaded!")
local Player = Players.LocalPlayer
local IsComputer = UserInputService.KeyboardEnabled and UserInputService.MouseEnabled
warn("Constants loaded!")
--! Fields
local Fluent = nil
local ShowWarning = false
local Clock = os.clock()
local Aiming = false
local Tween = nil
local MouseSensitivity = UserInputService.MouseDeltaSensitivity
do
if typeof(script) == "Instance" and script:FindFirstChild("Fluent") and script:FindFirstChild("Fluent"):IsA("ModuleScript") then
Fluent = require(script:FindFirstChild("Fluent"))
else
local Success, Result = pcall(function()
return game:HttpGet("https://raw.githubusercontent.com/R3P3x/Scripts/refs/heads/main/Fluent.txt", true)
end)
if Success and typeof(Result) == "string" then
Fluent = loadstring(Result)()
else
return
end
end
end
warn("Fluent UI Library loaded!")
do
local Window = Fluent:CreateWindow({
Title = "Build A Cheat For Treasure",
SubTitle = "[PRIVATE RELEASE V" .. Version .. "]",
TabWidth = UISettings.TabWidth,
Size = UDim2.fromOffset(table.unpack(UISettings.Size)),
Theme = UISettings.Theme,
Acrylic = UISettings.Acrylic,
MinimizeKey = UISettings.MinimizeKey
})
local Tabs = { Main = Window:AddTab({ Title = "Main", Icon = "coins" }) }
Window:SelectTab(1)
local GrinderSection = Tabs.Main:AddSection("Grinder")
local AimbotToggle = GrinderSection:AddToggle("Grinder", { Title = "Grinder", Description = "Toggles the Grinder", Default = Configuration.Grinder })
AimbotToggle:OnChanged(function(Value)
Tabs.Settings = Window:AddTab({ Title = "Settings", Icon = "settings" })
local UISection = Tabs.Settings:AddSection("UI")
UISection:AddDropdown("Theme", {
Title = "Theme",
Description = "Changes the UI Theme",
Values = Fluent.Themes,
Default = Fluent.Theme,
Callback = function(Value)
Fluent:SetTheme(Value)
UISettings.Theme = Value
InterfaceManager:ExportSettings()
end
})
if Fluent.UseAcrylic then
UISection:AddToggle("Acrylic", {
Title = "Acrylic",
Description = "Blurred Background requires Graphic Quality >= 8",
Default = Fluent.Acrylic,
Callback = function(Value)
if not Value or not UISettings.ShowWarnings then
Fluent:ToggleAcrylic(Value)
elseif UISettings.ShowWarnings then
Window:Dialog({
Title = "Warning",
Content = "This Option can be detected! Activate it anyway?",
Buttons = {
{
Title = "Confirm",
Callback = function()
Fluent:ToggleAcrylic(Value)
end
},
{
Title = "Cancel",
Callback = function()
Fluent.Options.Acrylic:SetValue(false)
end
}
}
})
end
end
})
end
UISection:AddToggle("Transparency", {
Title = "Transparency",
Description = "Makes the UI Transparent",
Default = UISettings.Transparency,
Callback = function(Value)
Fluent:ToggleTransparency(Value)
UISettings.Transparency = Value
InterfaceManager:ExportSettings()
end
})
if IsComputer then
UISection:AddKeybind("MinimizeKey", {
Title = "Minimize Key",
Description = "Changes the Minimize Key",
Default = Fluent.MinimizeKey,
ChangedCallback = function(Value)
UISettings.MinimizeKey = pcall(UserInputService.GetStringForKeyCode, UserInputService, Value) and UserInputService:GetStringForKeyCode(Value) or "RMB"
InterfaceManager:ExportSettings()
end
})
Fluent.MinimizeKeybind = Fluent.Options.MinimizeKey
end
Tabs.Credits = Window:AddTab({ Title = "Credits", Icon = "book" })
Tabs.Credits:AddParagraph({
Title = "Credits",
Content = "|--------------------------------|\n|Coding: S_B\n|--------------------------------|\n|Testing: S_B\n|--------------------------------|\n|Design: S_B|\n|--------------------------------|\n|Module Design: S_B|\n|--------------------------------|\n|Fluent UI Library: Dawid\n|--------------------------------|",
})
Tabs.Contact = Window:AddTab({ Title = "Contact Me", Icon = "user"})
Tabs.Contact:AddParagraph({
Title = "Contact Me!",
Content = "Report bugs, give me suggestions, or just talk to me!"
})
Tabs.Contact:AddButton({
Title = "Contact me on Discord!",
Description = "Click to copy the Discord invite to your clipboard!",
Callback = function()
setclipboard("https://discord.gg/MBMehqKKCv")
end
})
if UISettings.ShowWarnings then
if ShowWarning then
Window:Dialog({
Title = "Note",
Content = "This script is very ultra pre-historic-pre-alpha 0.0.0.1, also its made by S_B, shameless plug: Use Future Internals aimbot its soo good frfrfrfr https://Future-Internals.xyz 🔥🔥",
Buttons = {
{ Title = "ight" }
}
})
end
end
warn("UI loaded!")
--! Notifications Handler
local function Notify(Message)
if Fluent and typeof(Message) == "string" then
Fluent:Notify({
Title = "Build A Cheat For Treasure",
Content = Message,
SubContent = "By S_B",
Duration = 2.5
})
end
end
Notify("Notification System loaded!")
warn("Notification System loaded!")
--! Fields Handler
local FieldsHandler = {}
--! Input Handler
warn("Input Handler loaded!")
local OnTeleport; OnTeleport = Player.OnTeleport:Connect(function()
if DEBUG or not Fluent or not getfenv().queue_on_teleport then
OnTeleport:Disconnect()
else
getfenv().queue_on_teleport("getfenv().loadstring(game:HttpGet(\"https://raw.githubusercontent.com/R3P3x/Scripts/refs/heads/main/FutureInternals.lua\", true))()")
OnTeleport:Disconnect()
end
end)
warn("Player Events Handler loaded!")
while Grinder == true do
tweenServie = game:GetService("TweenService")
local one = TweenInfo.new(3, Enum.EasingStyle.Linear, Enum.EasingDirection.In)
local two = TweenInfo.new(3, Enum.EasingStyle.Linear, Enum.EasingDirection.In)
local three = TweenInfo.new(50, Enum.EasingStyle.Linear, Enum.EasingDirection.In)
local four = TweenInfo.new(2, Enum.EasingStyle.Linear, Enum.EasingDirection.In)
local finishh = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.In)
local oneone = tweenService:Create(Players.LocalPlayer.Character.HumanoidRootPart, one, {Position = pos1})
local twotwo = tweenService:Create(Players.LocalPlayer.Character.HumanoidRootPart, two, {Position = pos2})
local threethree = tweenService:Create(Players.LocalPlayer.Character.HumanoidRootPart, three, {Position = pos3})
local fourfour = tweenService:Create(Players.LocalPlayer.Character.HumanoidRootPart, four, {Position = pos4})
local finishfinish = tweenService:Create(Players.LocalPlayer.Character.HumanoidRootPart, finishh, {Position = finish})
oneone:Play()
task.wait(3.5)
twotwo:Play()
task.wait(3.5)
threethree:Play()
task.wait(50.5)
fourfour:Play()
task.wait(2.5)
finishfinish:Play()
task.wait(23.5)
end
warn("Grinder Handler loaded!")
wait(1)
warn("----------------------------------------------------|")
warn("Loaded Build A Cheat For Treasure V" .. Version .. "!")
warn("----------------------------------------------------|")
end