-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.lua
More file actions
394 lines (307 loc) · 11.4 KB
/
script.lua
File metadata and controls
394 lines (307 loc) · 11.4 KB
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
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
--[=[
d888b db db d888888b .d888b. db db db .d8b.
88' Y8b 88 88 `88' VP `8D 88 88 88 d8' `8b
88 88 88 88 odD' 88 88 88 88ooo88
88 ooo 88 88 88 .88' 88 88 88 88~~~88
88. ~8~ 88b d88 .88. j88. 88booo. 88b d88 88 88 @uniquadev
Y888P ~Y8888P' Y888888P 888888D Y88888P ~Y8888P' YP YP CONVERTER
]=]
-- Made with gpt lol
-- Instances: 21 | Scripts: 2 | Modules: 0 | Tags: 0
local G2L = {};
-- StarterGui.NSNndnjdnf
G2L["1"] = Instance.new("ScreenGui", gethui());
G2L["1"]["Name"] = [[NSNndnjdnf]];
G2L["1"]["ZIndexBehavior"] = Enum.ZIndexBehavior.Sibling;
-- StarterGui.NSNndnjdnf.Frame
G2L["2"] = Instance.new("Frame", G2L["1"]);
G2L["2"]["BorderSizePixel"] = 0;
G2L["2"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
G2L["2"]["Size"] = UDim2.new(0.20828, 0, 0.02772, 0);
G2L["2"]["Position"] = UDim2.new(0.17189, 0, 0.18124, 0);
G2L["2"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
G2L["2"]["BackgroundTransparency"] = 1;
-- StarterGui.NSNndnjdnf.Frame.Frame
G2L["3"] = Instance.new("Frame", G2L["2"]);
G2L["3"]["BorderSizePixel"] = 0;
G2L["3"]["BackgroundColor3"] = Color3.fromRGB(41, 41, 41);
G2L["3"]["Size"] = UDim2.new(1.13855, 0, 17.92308, 0);
G2L["3"]["Position"] = UDim2.new(0.01205, 0, -0.15385, 0);
G2L["3"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
-- StarterGui.NSNndnjdnf.Frame.Frame.UICorner
G2L["4"] = Instance.new("UICorner", G2L["3"]);
-- StarterGui.NSNndnjdnf.Frame.Frame.e
G2L["5"] = Instance.new("TextBox", G2L["3"]);
G2L["5"]["Name"] = [[e]];
G2L["5"]["PlaceholderColor3"] = Color3.fromRGB(255, 255, 255);
G2L["5"]["ZIndex"] = 5;
G2L["5"]["BorderSizePixel"] = 0;
G2L["5"]["TextWrapped"] = true;
G2L["5"]["TextSize"] = 14;
G2L["5"]["TextColor3"] = Color3.fromRGB(255, 255, 255);
G2L["5"]["BackgroundColor3"] = Color3.fromRGB(76, 76, 76);
G2L["5"]["RichText"] = true;
G2L["5"]["FontFace"] = Font.new([[rbxasset://fonts/families/SourceSansPro.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
G2L["5"]["PlaceholderText"] = [[5]];
G2L["5"]["Size"] = UDim2.new(0.82011, 0, 0.1588, 0);
G2L["5"]["Position"] = UDim2.new(0.08995, 0, 0.29614, 0);
G2L["5"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
G2L["5"]["Text"] = [[]];
G2L["5"]["BackgroundTransparency"] = 1;
-- StarterGui.NSNndnjdnf.Frame.Frame.e.UIStroke
G2L["6"] = Instance.new("UIStroke", G2L["5"]);
G2L["6"]["ApplyStrokeMode"] = Enum.ApplyStrokeMode.Border;
-- StarterGui.NSNndnjdnf.Frame.Frame.e.UICorner
G2L["7"] = Instance.new("UICorner", G2L["5"]);
-- StarterGui.NSNndnjdnf.Frame.Frame.start
G2L["8"] = Instance.new("TextBox", G2L["3"]);
G2L["8"]["Name"] = [[start]];
G2L["8"]["PlaceholderColor3"] = Color3.fromRGB(255, 255, 255);
G2L["8"]["ZIndex"] = 5;
G2L["8"]["BorderSizePixel"] = 0;
G2L["8"]["TextWrapped"] = true;
G2L["8"]["TextSize"] = 14;
G2L["8"]["TextColor3"] = Color3.fromRGB(255, 255, 255);
G2L["8"]["BackgroundColor3"] = Color3.fromRGB(76, 76, 76);
G2L["8"]["RichText"] = true;
G2L["8"]["FontFace"] = Font.new([[rbxasset://fonts/families/SourceSansPro.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
G2L["8"]["PlaceholderText"] = [[1]];
G2L["8"]["Size"] = UDim2.new(0.82011, 0, 0.1588, 0);
G2L["8"]["Position"] = UDim2.new(0.08995, 0, 0.1073, 0);
G2L["8"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
G2L["8"]["Text"] = [[]];
G2L["8"]["BackgroundTransparency"] = 1;
-- StarterGui.NSNndnjdnf.Frame.Frame.start.UIStroke
G2L["9"] = Instance.new("UIStroke", G2L["8"]);
G2L["9"]["ApplyStrokeMode"] = Enum.ApplyStrokeMode.Border;
-- StarterGui.NSNndnjdnf.Frame.Frame.start.UICorner
G2L["a"] = Instance.new("UICorner", G2L["8"]);
-- StarterGui.NSNndnjdnf.Frame.Frame.fnl
G2L["b"] = Instance.new("TextBox", G2L["3"]);
G2L["b"]["Name"] = [[fnl]];
G2L["b"]["PlaceholderColor3"] = Color3.fromRGB(255, 255, 255);
G2L["b"]["ZIndex"] = 5;
G2L["b"]["BorderSizePixel"] = 0;
G2L["b"]["TextWrapped"] = true;
G2L["b"]["TextSize"] = 14;
G2L["b"]["TextColor3"] = Color3.fromRGB(255, 255, 255);
G2L["b"]["BackgroundColor3"] = Color3.fromRGB(76, 76, 76);
G2L["b"]["RichText"] = true;
G2L["b"]["FontFace"] = Font.new([[rbxasset://fonts/families/SourceSansPro.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
G2L["b"]["PlaceholderText"] = [[!]];
G2L["b"]["Size"] = UDim2.new(0.82011, 0, 0.1588, 0);
G2L["b"]["Position"] = UDim2.new(0.08995, 0, 0.48069, 0);
G2L["b"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
G2L["b"]["Text"] = [[]];
G2L["b"]["BackgroundTransparency"] = 1;
-- StarterGui.NSNndnjdnf.Frame.Frame.fnl.UIStroke
G2L["c"] = Instance.new("UIStroke", G2L["b"]);
G2L["c"]["ApplyStrokeMode"] = Enum.ApplyStrokeMode.Border;
-- StarterGui.NSNndnjdnf.Frame.Frame.fnl.UICorner
G2L["d"] = Instance.new("UICorner", G2L["b"]);
-- StarterGui.NSNndnjdnf.Frame.Frame.str
G2L["e"] = Instance.new("TextButton", G2L["3"]);
G2L["e"]["BorderSizePixel"] = 0;
G2L["e"]["TextColor3"] = Color3.fromRGB(255, 255, 255);
G2L["e"]["TextSize"] = 14;
G2L["e"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
G2L["e"]["FontFace"] = Font.new([[rbxasset://fonts/families/SourceSansPro.json]], Enum.FontWeight.Bold, Enum.FontStyle.Italic);
G2L["e"]["Size"] = UDim2.new(0.82011, 0, 0.14592, 0);
G2L["e"]["BackgroundTransparency"] = 1;
G2L["e"]["Name"] = [[str]];
G2L["e"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
G2L["e"]["Text"] = [[Start]];
G2L["e"]["Position"] = UDim2.new(0.08995, 0, 0.80687, 0);
-- StarterGui.NSNndnjdnf.Frame.Frame.str.UIStroke
G2L["f"] = Instance.new("UIStroke", G2L["e"]);
G2L["f"]["ApplyStrokeMode"] = Enum.ApplyStrokeMode.Border;
-- StarterGui.NSNndnjdnf.Frame.Frame.str.UICorner
G2L["10"] = Instance.new("UICorner", G2L["e"]);
-- StarterGui.NSNndnjdnf.Frame.Frame.LocalScript
G2L["11"] = Instance.new("LocalScript", G2L["3"]);
-- StarterGui.NSNndnjdnf.Frame.Frame.close
G2L["12"] = Instance.new("TextButton", G2L["3"]);
G2L["12"]["TextWrapped"] = true;
G2L["12"]["BorderSizePixel"] = 0;
G2L["12"]["TextColor3"] = Color3.fromRGB(0, 0, 0);
G2L["12"]["TextSize"] = 14;
G2L["12"]["BackgroundColor3"] = Color3.fromRGB(255, 0, 0);
G2L["12"]["FontFace"] = Font.new([[rbxasset://fonts/families/SourceSansPro.json]], Enum.FontWeight.Bold, Enum.FontStyle.Italic);
G2L["12"]["Size"] = UDim2.new(0.18519, 0, 0.14163, 0);
G2L["12"]["Name"] = [[close]];
G2L["12"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
G2L["12"]["Text"] = [[X]];
G2L["12"]["Position"] = UDim2.new(0.91005, 0, -0.08584, 0);
-- StarterGui.NSNndnjdnf.Frame.Frame.close.UIStroke
G2L["13"] = Instance.new("UIStroke", G2L["12"]);
G2L["13"]["ApplyStrokeMode"] = Enum.ApplyStrokeMode.Border;
-- StarterGui.NSNndnjdnf.Frame.Frame.close.UICorner
G2L["14"] = Instance.new("UICorner", G2L["12"]);
-- StarterGui.NSNndnjdnf.Frame.UIDrag
G2L["15"] = Instance.new("LocalScript", G2L["2"]);
G2L["15"]["Name"] = [[UIDrag]];
-- StarterGui.NSNndnjdnf.Frame.Frame.LocalScript
local function C_11()
local script = G2L["11"];
-- Função para converter número em extenso
local fnl = " !"
local started = false
local unidades = {
"UM", "DOIS", "TRÊS", "QUATRO",
"CINCO", "SEIS", "SETE", "OITO", "NOVE"
}
local dezenas = {
[10] = "DEZ", [11] = "ONZE", [12] = "DOZE", [13] = "TREZE",
[14] = "CATORZE", [15] = "QUINZE", [16] = "DEZESSEIS",
[17] = "DEZESSETE", [18] = "DEZOITO", [19] = "DEZENOVE"
}
local dezenasCheias = {
"DEZ", "VINTE", "TRINTA", "QUARENTA",
"CINQUENTA", "SESSENTA", "SETENTA",
"OITENTA", "NOVENTA"
}
local centenasCheias = {
"CEM", "CENTO", "DUZENTOS", "TREZENTOS", "QUATROCENTOS",
"QUINHENTOS", "SEISCENTOS", "SETECENTOS",
"OITOCENTOS", "NOVECENTOS"
}
-- Função principal para converter número em extenso
local function npr(n, mil)
n = math.round(n)
if n < 0 or n > 58573 then
return "Número fora do alcance suportado (0 a 100.000)"
end
if n == 0 then return "ZERO"..fnl end
local resultado = ""
-- Milhares
local milhares = math.floor(n / 1000)
n = n % 1000
if milhares > 0 then
if milhares == 1 then
resultado = "MIL"
else
resultado = npr(milhares, true) .. "MIL E"
end
end
-- Centenas
local centenas = math.floor(n / 100)
n = n % 100
if centenas > 0 then
if centenas == 1 and n == 0 then
resultado = resultado .. " " .. centenasCheias[1]
else
resultado = resultado .. " " .. centenasCheias[centenas+1]
end
end
-- Dezenas e unidades
if n > 0 then
if n >= 10 and n <= 19 then
resultado = resultado .. " " .. dezenas[n]
else
local dezena = math.floor(n / 10)
local unidade = n % 10
if dezena > 0 then
if resultado ~= "" then
resultado = resultado .. " E " .. dezenasCheias[dezena]
end
if resultado == "" then
resultado = resultado .. " " .. dezenasCheias[dezena]
end
end
if unidade > 0 and n > 0 then
if resultado ~= "" then
resultado = resultado .. " E " .. unidades[unidade]
end
if resultado == "" then
resultado = unidades[unidade]
end
end
end
end
if mil == true then
resultado = resultado..fnl
end
if resultado:find("!") then
resultado = resultado:gsub("!", "")
end
resultado = resultado..fnl
return resultado:gsub("^%s+", "")
end
-- Testando a função
-- Função para contar até o número com espera de 0.2 segundos
function can(start, maxNumero)
for i = start, maxNumero do
if started == false then break end
wait(2.5)
local extenso = npr(i)
game.TextChatService.TextChannels.RBXGeneral:SendAsync(extenso)
game.Players.LocalPlayer.Character.Humanoid.Jump = true
end
end
function test(start, maxNumero)
for i = start, maxNumero do
local extenso = npr(i)
print(extenso)
end
end
repeat wait() until game.TextChatService.TextChannels.RBXGeneral
local fr = script.Parent
local s = fr.str
local c = fr.close
local f = fr.fnl
local ss = fr.start
local e = fr.e
s.MouseButton1Click:Connect(function()
if ss.Text == "" then return end
if e.Text == "" then return end
if started == false then
started = true
can(ss.Text, e.Text)
else
started = false
end
end)
f:GetPropertyChangedSignal("Text"):Connect(function(...: any)
fnl = f.Text
end)
end;
task.spawn(C_11);
-- StarterGui.NSNndnjdnf.Frame.UIDrag
local function C_15()
local script = G2L["15"];
-- Made by Real_IceyDev (@lceyDex) --
-- Simple UI dragger (PC Only/Any device that has a mouse) --
local UIS = game:GetService('UserInputService')
local frame = script.Parent
local dragToggle = nil
local dragSpeed = 0.25
local dragStart = nil
local startPos = nil
local function updateInput(input)
local delta = input.Position - dragStart
local position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X,
startPos.Y.Scale, startPos.Y.Offset + delta.Y)
game:GetService('TweenService'):Create(frame, TweenInfo.new(dragSpeed), {Position = position}):Play()
end
frame.InputBegan:Connect(function(input)
if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
dragToggle = true
dragStart = input.Position
startPos = frame.Position
input.Changed:Connect(function()
if input.UserInputState == Enum.UserInputState.End then
dragToggle = false
end
end)
end
end)
UIS.InputChanged:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
if dragToggle then
updateInput(input)
end
end
end)
end;
task.spawn(C_15);
return G2L["1"], require;