· 6 years ago · Mar 17, 2020, 09:34 PM
1-- Gui to Lua
2-- Version: 3.2
3
4-- Instances:
5
6local chadguiv11 = Instance.new("ScreenGui")
7local mainframe = Instance.new("Frame")
8local title = Instance.new("TextLabel")
9local options = Instance.new("ScrollingFrame")
10local worldtab = Instance.new("TextButton")
11local gametab = Instance.new("TextButton")
12local feanimationsgui = Instance.new("TextButton")
13local close = Instance.new("TextButton")
14local worldgui = Instance.new("Frame")
15local graphics = Instance.new("TextButton")
16local closeworld = Instance.new("TextButton")
17local btools = Instance.new("TextButton")
18local infiniteyeild = Instance.new("TextButton")
19local gamegui = Instance.new("Frame")
20local unesp = Instance.new("TextButton")
21local closegame = Instance.new("TextButton")
22local openbutton = Instance.new("TextButton")
23
24--Properties:
25
26chadguiv11.Name = "chadguiv1.1"
27chadguiv11.Parent = game.CoreGui
28
29mainframe.Name = "mainframe"
30mainframe.Parent = chadguiv11
31mainframe.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
32mainframe.BorderColor3 = Color3.fromRGB(2, 8, 2)
33mainframe.BorderSizePixel = 5
34mainframe.Position = UDim2.new(0.227189779, 0, 0.277039856, 0)
35mainframe.Size = UDim2.new(0, 491, 0, 233)
36
37title.Name = "title"
38title.Parent = mainframe
39title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
40title.BackgroundTransparency = 1.000
41title.BorderSizePixel = 0
42title.Size = UDim2.new(0, 358, 0, 26)
43title.Font = Enum.Font.Code
44title.Text = "Chad Gui V1"
45title.TextColor3 = Color3.fromRGB(14, 94, 0)
46title.TextScaled = true
47title.TextSize = 50.000
48title.TextWrapped = true
49
50options.Name = "options"
51options.Parent = mainframe
52options.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
53options.BorderSizePixel = 0
54options.Position = UDim2.new(0.796334028, 0, 0, 0)
55options.Size = UDim2.new(0, 100, 0, 233)
56options.ScrollBarThickness = 10
57
58worldtab.Name = "worldtab"
59worldtab.Parent = options
60worldtab.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
61worldtab.BorderSizePixel = 0
62worldtab.Size = UDim2.new(0, 88, 0, 17)
63worldtab.Font = Enum.Font.Code
64worldtab.Text = "World"
65worldtab.TextColor3 = Color3.fromRGB(0, 40, 0)
66worldtab.TextSize = 14.000
67worldtab.MouseButton1Click:connect(function()
68
69 worldgui.Visible = true
70
71end)
72
73gametab.Name = "gametab"
74gametab.Parent = options
75gametab.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
76gametab.BorderSizePixel = 0
77gametab.Position = UDim2.new(0, 0, 0.0364806876, 0)
78gametab.Size = UDim2.new(0, 88, 0, 17)
79gametab.Font = Enum.Font.Code
80gametab.Text = "Game"
81gametab.TextColor3 = Color3.fromRGB(0, 40, 0)
82gametab.TextSize = 14.000
83gametab.MouseButton1Click:connect(function()
84
85 gamegui.Visible = true
86
87end)
88
89feanimationsgui.Name = "feanimationsgui"
90feanimationsgui.Parent = mainframe
91feanimationsgui.BackgroundColor3 = Color3.fromRGB(17, 17, 17)
92feanimationsgui.BorderColor3 = Color3.fromRGB(0, 43, 0)
93feanimationsgui.BorderSizePixel = 4
94feanimationsgui.Position = UDim2.new(0.0254136212, 0, 0.180770546, 0)
95feanimationsgui.Size = UDim2.new(0, 134, 0, 22)
96feanimationsgui.Font = Enum.Font.Code
97feanimationsgui.Text = "FE Animations GUI"
98feanimationsgui.TextColor3 = Color3.fromRGB(0, 85, 0)
99feanimationsgui.TextScaled = true
100feanimationsgui.TextSize = 14.000
101feanimationsgui.TextWrapped = true
102feanimationsgui.MouseButton1Click:connect(function()
103
104 loadstring(game:HttpGet("https://pastebin.com/raw/R1MgDiRX", true))()
105
106end)
107
108close.Name = "close"
109close.Parent = mainframe
110close.BackgroundColor3 = Color3.fromRGB(0, 31, 0)
111close.BorderSizePixel = 0
112close.Size = UDim2.new(0, 31, 0, 17)
113close.Font = Enum.Font.SourceSans
114close.Text = "X"
115close.TextColor3 = Color3.fromRGB(0, 85, 0)
116close.TextSize = 14.000
117close.TextStrokeTransparency = 0.000
118close.TextWrapped = true
119close.MouseButton1Click:connect(function()
120
121 mainframe.Visible = false
122 openbutton.Visible = true
123
124end)
125worldgui.Name = "worldgui"
126worldgui.Parent = mainframe
127worldgui.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
128worldgui.BorderSizePixel = 0
129worldgui.Position = UDim2.new(1.02647662, 0, 0.00429184549, 0)
130worldgui.Size = UDim2.new(0, 203, 0, 233)
131worldgui.Visible = false
132
133graphics.Name = "graphics"
134graphics.Parent = worldgui
135graphics.BackgroundColor3 = Color3.fromRGB(22, 22, 22)
136graphics.BorderColor3 = Color3.fromRGB(4, 7, 9)
137graphics.BorderSizePixel = 5
138graphics.Position = UDim2.new(0.133004919, 0, 0.107296139, 0)
139graphics.Size = UDim2.new(0, 149, 0, 25)
140graphics.Font = Enum.Font.Code
141graphics.Text = "BetterGraphics"
142graphics.TextColor3 = Color3.fromRGB(0, 85, 0)
143graphics.TextScaled = true
144graphics.TextSize = 14.000
145graphics.TextWrapped = true
146graphics.MouseButton1Click:connect(function()
147
148 -- Roblox Graphics Enhancher
149--Completely Made By iszaar on v3rmillion
150
151local light = game.Lighting
152for i, v in pairs(light:GetChildren()) do
153 v:Destroy()
154end
155
156local ter = workspace.Terrain
157local color = Instance.new("ColorCorrectionEffect")
158local bloom = Instance.new("BloomEffect")
159local sun = Instance.new("SunRaysEffect")
160local blur = Instance.new("BlurEffect")
161
162color.Parent = light
163bloom.Parent = light
164sun.Parent = light
165blur.Parent = light
166
167-- enable or disable shit
168
169local config = {
170
171 Terrain = true;
172 ColorCorrection = true;
173 Sun = true;
174 Lighting = true;
175 BloomEffect = true;
176
177}
178
179-- settings {
180
181color.Enabled = true
182color.Contrast = 0.15
183color.Brightness = 0.1
184color.Saturation = 0.25
185color.TintColor = Color3.fromRGB(255, 222, 211)
186
187bloom.Enabled = true
188bloom.Intensity = 0.1
189
190sun.Enabled = true
191sun.Intensity = 0.2
192sun.Spread = 1
193
194bloom.Enabled = true
195bloom.Intensity = 0.05
196bloom.Size = 32
197bloom.Threshold = 1
198
199blur.Enabled = false
200blur.Size = 6
201
202-- settings }
203
204
205if config.ColorCorrection then
206 color.Enabled = true
207end
208
209
210if config.Sun then
211 sun.Enabled = true
212end
213
214
215if config.Terrain then
216 -- settings {
217 ter.WaterColor = Color3.fromRGB(10, 10, 24)
218 ter.WaterWaveSize = 0.1
219 ter.WaterWaveSpeed = 22
220 ter.WaterTransparency = 0.9
221 ter.WaterReflectance = 0.05
222 -- settings }
223end
224
225
226if config.Lighting then
227 -- settings {
228 light.Ambient = Color3.fromRGB(1, 0, 0)
229 light.Brightness = 4
230 light.ColorShift_Bottom = Color3.fromRGB(0, 0, 0)
231 light.ColorShift_Top = Color3.fromRGB(0, 0, 0)
232 light.ExposureCompensation = 0
233 light.FogColor = Color3.fromRGB(132, 132, 132)
234 light.GlobalShadows = true
235 light.OutdoorAmbient = Color3.fromRGB(112, 117, 128)
236 light.Outlines = true
237 -- settings }
238end
239
240end)
241
242closeworld.Name = "closeworld"
243closeworld.Parent = worldgui
244closeworld.BackgroundColor3 = Color3.fromRGB(0, 31, 0)
245closeworld.BorderSizePixel = 0
246closeworld.Position = UDim2.new(0.847290635, 0, 0.0128755365, 0)
247closeworld.Size = UDim2.new(0, 31, 0, 13)
248closeworld.Font = Enum.Font.SourceSans
249closeworld.Text = "X"
250closeworld.TextColor3 = Color3.fromRGB(0, 85, 0)
251closeworld.TextSize = 14.000
252closeworld.TextStrokeTransparency = 0.000
253closeworld.TextWrapped = true
254closeworld.MouseButton1Click:connect(function()
255
256 worldgui.Visible = false
257
258end)
259
260btools.Name = "btools"
261btools.Parent = worldgui
262btools.BackgroundColor3 = Color3.fromRGB(22, 22, 22)
263btools.BorderColor3 = Color3.fromRGB(4, 7, 9)
264btools.BorderSizePixel = 5
265btools.Position = UDim2.new(0.133004919, 0, 0.270386249, 0)
266btools.Size = UDim2.new(0, 149, 0, 25)
267btools.Font = Enum.Font.Code
268btools.Text = "BTools"
269btools.TextColor3 = Color3.fromRGB(0, 85, 0)
270btools.TextScaled = true
271btools.TextSize = 14.000
272btools.TextWrapped = true
273btools.MouseButton1Click:connect(function()
274
275 local tool1 = Instance.new("HopperBin",game.Players.LocalPlayer.Backpack)
276local tool2 = Instance.new("HopperBin",game.Players.LocalPlayer.Backpack)
277local tool3 = Instance.new("HopperBin",game.Players.LocalPlayer.Backpack)
278local tool4 = Instance.new("HopperBin",game.Players.LocalPlayer.Backpack)
279local tool5 = Instance.new("HopperBin",game.Players.LocalPlayer.Backpack)
280tool1.BinType = "Clone"
281tool2.BinType = "GameTool"
282tool3.BinType = "Hammer"
283tool4.BinType = "Script"
284tool5.BinType = "Grab"
285
286end)
287
288infiniteyeild.Name = "infiniteyeild"
289infiniteyeild.Parent = mainframe
290infiniteyeild.BackgroundColor3 = Color3.fromRGB(17, 17, 17)
291infiniteyeild.BorderColor3 = Color3.fromRGB(0, 43, 0)
292infiniteyeild.BorderSizePixel = 4
293infiniteyeild.Position = UDim2.new(0.455148876, 0, 0.180770546, 0)
294infiniteyeild.Size = UDim2.new(0, 134, 0, 22)
295infiniteyeild.Font = Enum.Font.Code
296infiniteyeild.Text = " FE Infinite Yeild"
297infiniteyeild.TextColor3 = Color3.fromRGB(0, 85, 0)
298infiniteyeild.TextScaled = true
299infiniteyeild.TextSize = 14.000
300infiniteyeild.TextWrapped = true
301infiniteyeild.MouseButton1Click:connect(function()
302
303 loadstring(game:HttpGet(('https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source'),true))()
304
305end)
306
307gamegui.Name = "gamegui"
308gamegui.Parent = mainframe
309gamegui.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
310gamegui.BorderSizePixel = 0
311gamegui.Position = UDim2.new(1.02647662, 0, 0.00429184549, 0)
312gamegui.Size = UDim2.new(0, 203, 0, 233)
313
314unesp.Name = "unesp"
315unesp.Parent = gamegui
316unesp.BackgroundColor3 = Color3.fromRGB(22, 22, 22)
317unesp.BorderColor3 = Color3.fromRGB(4, 7, 9)
318unesp.BorderSizePixel = 5
319unesp.Position = UDim2.new(0.133004919, 0, 0.107296139, 0)
320unesp.Size = UDim2.new(0, 149, 0, 25)
321unesp.Font = Enum.Font.Code
322unesp.Text = "Un-Named ESP"
323unesp.TextColor3 = Color3.fromRGB(0, 85, 0)
324unesp.TextScaled = true
325unesp.TextSize = 14.000
326unesp.TextWrapped = true
327unesp.MouseButton1Click:connect(function()
328
329
330local UserInputService = game:GetService'UserInputService';
331local HttpService = game:GetService'HttpService';
332local GUIService = game:GetService'GuiService';
333local RunService = game:GetService'RunService';
334local Players = game:GetService'Players';
335local LocalPlayer = Players.LocalPlayer;
336local Camera = workspace.CurrentCamera
337local Mouse = LocalPlayer:GetMouse();
338local Menu = {};
339local MouseHeld = false;
340local LastRefresh = 0;
341local OptionsFile = 'IC3_ESP_SETTINGS.dat';
342local Binding = false;
343local BindedKey = nil;
344local OIndex = 0;
345local LineBox = {};
346local UIButtons = {};
347local Sliders = {};
348local Dragging = false;
349local DraggingUI = false;
350local DragOffset = Vector2.new();
351local DraggingWhat = nil;
352local OldData = {};
353local IgnoreList = {};
354local Red = Color3.new(1, 0, 0);
355local Green = Color3.new(0, 1, 0);
356local MenuLoaded = false;
357
358shared.MenuDrawingData = shared.MenuDrawingData or { Instances = {} };
359shared.PlayerData = shared.PlayerData or {};
360shared.RSName = shared.RSName or ('UnnamedESP_by_ic3-' .. HttpService:GenerateGUID(false));
361
362local GetDataName = shared.RSName .. '-GetData';
363local UpdateName = shared.RSName .. '-Update';
364
365local Debounce = setmetatable({}, {
366__index = function(t, i)
367return rawget(t, i) or false
368end;
369});
370
371pcall(function() shared.InputBeganCon:disconnect() end);
372pcall(function() shared.InputEndedCon:disconnect() end);
373
374function GetMouseLocation()
375return UserInputService:GetMouseLocation();
376end
377
378function MouseHoveringOver(Values)
379local X1, Y1, X2, Y2 = Values[1], Values[2], Values[3], Values[4]
380local MLocation = GetMouseLocation();
381return (MLocation.x >= X1 and MLocation.x <= (X1 + (X2 - X1))) and (MLocation.y >= Y1 and MLocation.y <= (Y1 + (Y2 - Y1)));
382end
383
384function GetTableData(t) -- basically table.foreach i dont even know why i made this
385if typeof(t) ~= 'table' then return end
386return setmetatable(t, {
387__call = function(t, func)
388if typeof(func) ~= 'function' then return end;
389for i, v in pairs(t) do
390pcall(func, i, v);
391end
392end;
393});
394end
395local function Format(format, ...)
396return string.format(format, ...);
397end
398function CalculateValue(Min, Max, Percent)
399return Min + math.floor(((Max - Min) * Percent) + .5);
400end
401
402local Options = setmetatable({}, {
403__call = function(t, ...)
404local Arguments = {...};
405local Name = Arguments[1];
406OIndex = OIndex + 1; -- (typeof(Arguments[3]) == 'boolean' and 1 or 0);
407rawset(t, Name, setmetatable({
408Name = Arguments[1];
409Text = Arguments[2];
410Value = Arguments[3];
411DefaultValue = Arguments[3];
412AllArgs = Arguments;
413Index = OIndex;
414}, {
415__call = function(t, v)
416if typeof(t.Value) == 'function' then
417t.Value();
418elseif typeof(t.Value) == 'EnumItem' then
419local BT = Menu:GetInstance(Format('%s_BindText', t.Name));
420Binding = true;
421local Val = 0
422while Binding do
423wait();
424Val = (Val + 1) % 17;
425BT.Text = Val <= 8 and '|' or '';
426end
427t.Value = BindedKey;
428BT.Text = tostring(t.Value):match'%w+%.%w+%.(.+)';
429BT.Position = t.BasePosition + Vector2.new(t.BaseSize.X - BT.TextBounds.X - 20, -10);
430else
431local NewValue = v;
432if NewValue == nil then NewValue = not t.Value; end
433rawset(t, 'Value', NewValue);
434if Arguments[2] ~= nil then
435if typeof(Arguments[3]) == 'number' then
436local AMT = Menu:GetInstance(Format('%s_AmountText', t.Name));
437AMT.Text = tostring(t.Value);
438AMT.Position = t.BasePosition + Vector2.new(t.BaseSize.X - AMT.TextBounds.X - 10, -10);
439else
440local Inner = Menu:GetInstance(Format('%s_InnerCircle', t.Name));
441Inner.Visible = t.Value;
442end
443end
444end
445end;
446}));
447end;
448})
449
450function Load()
451local _, Result = pcall(readfile, OptionsFile);
452if _ then -- extremely ugly code yea i know but i dont care p.s. i hate pcall
453local _, Table = pcall(HttpService.JSONDecode, HttpService, Result);
454if _ then
455for i, v in pairs(Table) do
456if Options[i] ~= nil and Options[i].Value ~= nil and (typeof(Options[i].Value) == 'boolean' or typeof(Options[i].Value) == 'number') then
457Options[i].Value = v.Value;
458pcall(Options[i], v.Value);
459end
460end
461end
462end
463end
464
465Options('Enabled', 'ESP Enabled', true);
466Options('ShowTeam', 'Show Team', false);
467Options('ShowName', 'Show Names', true);
468Options('ShowDistance', 'Show Distance', true);
469Options('ShowHealth', 'Show Health', true);
470Options('ShowBoxes', 'Show Boxes', true);
471Options('ShowTracers', 'Show Tracers', true);
472Options('ShowDot', 'Show Head Dot', false);
473Options('VisCheck', 'Visibility Check', false);
474Options('Crosshair', 'Crosshair', false);
475Options('TextOutline', 'Text Outline', true);
476Options('TextSize', 'Text Size', syn and 18 or 14, 10, 24); -- cuz synapse fonts look weird???
477Options('MaxDistance', 'Max Distance', 2500, 100, 5000);
478Options('RefreshRate', 'Refresh Rate (ms)', 5, 1, 200);
479Options('MenuKey', 'Menu Key', Enum.KeyCode.F4, 1);
480Options('ResetSettings', 'Reset Settings', function()
481for i, v in pairs(Options) do
482if Options[i] ~= nil and Options[i].Value ~= nil and Options[i].Text ~= nil and (typeof(Options[i].Value) == 'boolean' or typeof(Options[i].Value) == 'number') then
483Options[i](Options[i].DefaultValue);
484end
485end
486end, 4);
487Options('LoadSettings', 'Load Settings', Load, 3);
488Options('SaveSettings', 'Save Settings', function()
489writefile(OptionsFile, HttpService:JSONEncode(Options));
490end, 2)
491-- Options.SaveSettings.Value();
492
493Load();
494
495Options('MenuOpen', nil, true);
496
497local function Set(t, i, v)
498t[i] = v;
499end
500local function Combine(...)
501local Output = {};
502for i, v in pairs{...} do
503if typeof(v) == 'table' then
504table.foreach(v, function(i, v)
505Output[i] = v;
506end)
507end
508end
509return Output
510end
511function IsStringEmpty(String)
512if type(String) == 'string' then
513return String:match'^%s+$' ~= nil or #String == 0 or String == '' or false;
514end
515return false
516end
517
518function NewDrawing(InstanceName)
519local Instance = Drawing.new(InstanceName);
520return (function(Properties)
521for i, v in pairs(Properties) do
522pcall(Set, Instance, i, v);
523end
524return Instance;
525end)
526end
527
528function Menu:AddMenuInstace(Name, Instance)
529if shared.MenuDrawingData.Instances[Name] ~= nil then
530shared.MenuDrawingData.Instances[Name]:Remove();
531end
532shared.MenuDrawingData.Instances[Name] = Instance;
533return Instance;
534end
535function Menu:UpdateMenuInstance(Name)
536local Instance = shared.MenuDrawingData.Instances[Name];
537if Instance ~= nil then
538return (function(Properties)
539for i, v in pairs(Properties) do
540-- print(Format('%s %s -> %s', Name, tostring(i), tostring(v)));
541pcall(Set, Instance, i, v);
542end
543return Instance;
544end)
545end
546end
547function Menu:GetInstance(Name)
548return shared.MenuDrawingData.Instances[Name];
549end
550
551function LineBox:Create(Properties)
552local Box = { Visible = true }; -- prevent errors not really though dont worry bout the Visible = true thing
553
554local Properties = Combine({
555Transparency = 1;
556Thickness = 1;
557Visible = true;
558}, Properties);
559
560Box['TopLeft'] = NewDrawing'Line'(Properties);
561Box['TopRight'] = NewDrawing'Line'(Properties);
562Box['BottomLeft'] = NewDrawing'Line'(Properties);
563Box['BottomRight'] = NewDrawing'Line'(Properties);
564
565function Box:Update(CF, Size, Color, Properties)
566if not CF or not Size then return end
567
568local TLPos, Visible1 = Camera:WorldToViewportPoint((CF * CFrame.new( Size.X, Size.Y, 0)).p);
569local TRPos, Visible2 = Camera:WorldToViewportPoint((CF * CFrame.new(-Size.X, Size.Y, 0)).p);
570local BLPos, Visible3 = Camera:WorldToViewportPoint((CF * CFrame.new( Size.X, -Size.Y, 0)).p);
571local BRPos, Visible4 = Camera:WorldToViewportPoint((CF * CFrame.new(-Size.X, -Size.Y, 0)).p);
572-- ## BEGIN UGLY CODE
573if Visible1 then
574Box['TopLeft'].Visible = true;
575Box['TopLeft'].Color = Color;
576Box['TopLeft'].From = Vector2.new(TLPos.X, TLPos.Y);
577Box['TopLeft'].To = Vector2.new(TRPos.X, TRPos.Y);
578else
579Box['TopLeft'].Visible = false;
580end
581if Visible2 then
582Box['TopRight'].Visible = true;
583Box['TopRight'].Color = Color;
584Box['TopRight'].From = Vector2.new(TRPos.X, TRPos.Y);
585Box['TopRight'].To = Vector2.new(BRPos.X, BRPos.Y);
586else
587Box['TopRight'].Visible = false;
588end
589if Visible3 then
590Box['BottomLeft'].Visible = true;
591Box['BottomLeft'].Color = Color;
592Box['BottomLeft'].From = Vector2.new(BLPos.X, BLPos.Y);
593Box['BottomLeft'].To = Vector2.new(TLPos.X, TLPos.Y);
594else
595Box['BottomLeft'].Visible = false;
596end
597if Visible4 then
598Box['BottomRight'].Visible = true;
599Box['BottomRight'].Color = Color;
600Box['BottomRight'].From = Vector2.new(BRPos.X, BRPos.Y);
601Box['BottomRight'].To = Vector2.new(BLPos.X, BLPos.Y);
602else
603Box['BottomRight'].Visible = false;
604end
605-- ## END UGLY CODE
606if Properties then
607GetTableData(Properties)(function(i, v)
608pcall(Set, Box['TopLeft'], i, v);
609pcall(Set, Box['TopRight'], i, v);
610pcall(Set, Box['BottomLeft'], i, v);
611pcall(Set, Box['BottomRight'], i, v);
612end)
613end
614end
615function Box:SetVisible(bool)
616pcall(Set, Box['TopLeft'], 'Visible', bool);
617pcall(Set, Box['TopRight'], 'Visible', bool);
618pcall(Set, Box['BottomLeft'], 'Visible', bool);
619pcall(Set, Box['BottomRight'], 'Visible', bool);
620end
621function Box:Remove()
622self:SetVisible(false);
623Box['TopLeft']:Remove();
624Box['TopRight']:Remove();
625Box['BottomLeft']:Remove();
626Box['BottomRight']:Remove();
627end
628
629return Box;
630end
631
632function CreateMenu(NewPosition) -- Create Menu
633local function FromHex(HEX)
634HEX = HEX:gsub('#', '');
635return Color3.fromRGB(tonumber('0x' .. HEX:sub(1, 2)), tonumber('0x' .. HEX:sub(3, 4)), tonumber('0x' .. HEX:sub(5, 6)));
636end
637
638local Colors = {
639Primary = {
640Main = FromHex'424242';
641Light = FromHex'6d6d6d';
642Dark = FromHex'1b1b1b';
643};
644Secondary = {
645Main = FromHex'e0e0e0';
646Light = FromHex'ffffff';
647Dark = FromHex'aeaeae';
648};
649};
650
651MenuLoaded = false;
652
653GetTableData(UIButtons)(function(i, v)
654v.Instance.Visible = false;
655v.Instance:Remove();
656end)
657GetTableData(Sliders)(function(i, v)
658v.Instance.Visible = false;
659v.Instance:Remove();
660end)
661
662UIButtons = {};
663Sliders = {};
664
665local BaseSize = Vector2.new(300, 580);
666local BasePosition = NewPosition or Vector2.new(Camera.ViewportSize.X / 8 - (BaseSize.X / 2), Camera.ViewportSize.Y / 2 - (BaseSize.Y / 2));
667
668Menu:AddMenuInstace('CrosshairX', NewDrawing'Line'{
669Visible = false;
670Color = Color3.new(0, 1, 0);
671Transparency = 1;
672Thickness = 1;
673});
674Menu:AddMenuInstace('CrosshairY', NewDrawing'Line'{
675Visible = false;
676Color = Color3.new(0, 1, 0);
677Transparency = 1;
678Thickness = 1;
679});
680
681delay(.025, function() -- since zindex doesnt exist
682Menu:AddMenuInstace('Main', NewDrawing'Square'{
683Size = BaseSize;
684Position = BasePosition;
685Filled = false;
686Color = Colors.Primary.Main;
687Thickness = 3;
688Visible = true;
689});
690end);
691Menu:AddMenuInstace('TopBar', NewDrawing'Square'{
692Position = BasePosition;
693Size = Vector2.new(BaseSize.X, 25);
694Color = Colors.Primary.Dark;
695Filled = true;
696Visible = true;
697});
698Menu:AddMenuInstace('TopBarTwo', NewDrawing'Square'{
699Position = BasePosition + Vector2.new(0, 25);
700Size = Vector2.new(BaseSize.X, 60);
701Color = Colors.Primary.Main;
702Filled = true;
703Visible = true;
704});
705Menu:AddMenuInstace('TopBarText', NewDrawing'Text'{
706Size = 25;
707Position = shared.MenuDrawingData.Instances.TopBarTwo.Position + Vector2.new(25, 15);
708Text = 'Unnamed ESP';
709Color = Colors.Secondary.Light;
710Visible = true;
711});
712Menu:AddMenuInstace('TopBarTextBR', NewDrawing'Text'{
713Size = 15;
714Position = shared.MenuDrawingData.Instances.TopBarTwo.Position + Vector2.new(BaseSize.X - 65, 40);
715Text = 'by ic3w0lf';
716Color = Colors.Secondary.Dark;
717Visible = true;
718});
719Menu:AddMenuInstace('Filling', NewDrawing'Square'{
720Size = BaseSize - Vector2.new(0, 85);
721Position = BasePosition + Vector2.new(0, 85);
722Filled = true;
723Color = Colors.Secondary.Main;
724Transparency= .5;
725Visible = true;
726});
727
728local CPos = 0;
729
730GetTableData(Options)(function(i, v)
731if typeof(v.Value) == 'boolean' and not IsStringEmpty(v.Text) and v.Text ~= nil then
732CPos = CPos + 25;
733local BaseSize = Vector2.new(BaseSize.X, 30);
734local BasePosition = shared.MenuDrawingData.Instances.Filling.Position + Vector2.new(30, v.Index * 25 - 10);
735UIButtons[#UIButtons + 1] = {
736Option = v;
737Instance = Menu:AddMenuInstace(Format('%s_Hitbox', v.Name), NewDrawing'Square'{
738Position = BasePosition - Vector2.new(30, 15);
739Size = BaseSize;
740Visible = false;
741});
742};
743Menu:AddMenuInstace(Format('%s_OuterCircle', v.Name), NewDrawing'Circle'{
744Radius = 10;
745Position = BasePosition;
746Color = Colors.Secondary.Light;
747Filled = true;
748Visible = true;
749});
750Menu:AddMenuInstace(Format('%s_InnerCircle', v.Name), NewDrawing'Circle'{
751Radius = 7;
752Position = BasePosition;
753Color = Colors.Secondary.Dark;
754Filled = true;
755Visible = v.Value;
756});
757Menu:AddMenuInstace(Format('%s_Text', v.Name), NewDrawing'Text'{
758Text = v.Text;
759Size = 20;
760Position = BasePosition + Vector2.new(20, -10);
761Visible = true;
762Color = Colors.Primary.Dark;
763});
764end
765end)
766GetTableData(Options)(function(i, v) -- just to make sure certain things are drawn before or after others, too lazy to actually sort table
767if typeof(v.Value) == 'number' then
768CPos = CPos + 25;
769
770local BaseSize = Vector2.new(BaseSize.X, 30);
771local BasePosition = shared.MenuDrawingData.Instances.Filling.Position + Vector2.new(0, CPos - 10);
772
773local Text = Menu:AddMenuInstace(Format('%s_Text', v.Name), NewDrawing'Text'{
774Text = v.Text;
775Size = 20;
776Position = BasePosition + Vector2.new(20, -10);
777Visible = true;
778Color = Colors.Primary.Dark;
779});
780local AMT = Menu:AddMenuInstace(Format('%s_AmountText', v.Name), NewDrawing'Text'{
781Text = tostring(v.Value);
782Size = 20;
783Position = BasePosition;
784Visible = true;
785Color = Colors.Primary.Dark;
786});
787local Line = Menu:AddMenuInstace(Format('%s_SliderLine', v.Name), NewDrawing'Line'{
788Transparency = 1;
789Color = Colors.Primary.Dark;
790Thickness = 3;
791Visible = true;
792From = BasePosition + Vector2.new(20, 20);
793To = BasePosition + Vector2.new(BaseSize.X - 10, 20);
794});
795CPos = CPos + 10;
796local Slider = Menu:AddMenuInstace(Format('%s_Slider', v.Name), NewDrawing'Circle'{
797Visible = true;
798Filled = true;
799Radius = 6;
800Color = Colors.Secondary.Dark;
801Position = BasePosition + Vector2.new(35, 20);
802})
803
804local CSlider = {Slider = Slider; Line = Line; Min = v.AllArgs[4]; Max = v.AllArgs[5]; Option = v};
805Sliders[#Sliders + 1] = CSlider;
806
807-- local Percent = (v.Value / CSlider.Max) * 100;
808-- local Size = math.abs(Line.From.X - Line.To.X);
809-- local Value = Size * (Percent / 100); -- this shit's inaccurate but fuck it i'm not even gonna bother fixing it
810
811Slider.Position = BasePosition + Vector2.new(40, 20);
812
813v.BaseSize = BaseSize;
814v.BasePosition = BasePosition;
815AMT.Position = BasePosition + Vector2.new(BaseSize.X - AMT.TextBounds.X - 10, -10)
816end
817end)
818GetTableData(Options)(function(i, v) -- just to make sure certain things are drawn before or after others, too lazy to actually sort table
819if typeof(v.Value) == 'EnumItem' then
820CPos = CPos + 30;
821
822local BaseSize = Vector2.new(BaseSize.X, 30);
823local BasePosition = shared.MenuDrawingData.Instances.Filling.Position + Vector2.new(0, CPos - 10);
824
825UIButtons[#UIButtons + 1] = {
826Option = v;
827Instance = Menu:AddMenuInstace(Format('%s_Hitbox', v.Name), NewDrawing'Square'{
828Size = Vector2.new(BaseSize.X, 20) - Vector2.new(30, 0);
829Visible = true;
830Transparency= .5;
831Position = BasePosition + Vector2.new(15, -10);
832Color = Colors.Secondary.Light;
833Filled = true;
834});
835};
836local Text = Menu:AddMenuInstace(Format('%s_Text', v.Name), NewDrawing'Text'{
837Text = v.Text;
838Size = 20;
839Position = BasePosition + Vector2.new(20, -10);
840Visible = true;
841Color = Colors.Primary.Dark;
842});
843local BindText = Menu:AddMenuInstace(Format('%s_BindText', v.Name), NewDrawing'Text'{
844Text = tostring(v.Value):match'%w+%.%w+%.(.+)';
845Size = 20;
846Position = BasePosition;
847Visible = true;
848Color = Colors.Primary.Dark;
849});
850
851Options[i].BaseSize = BaseSize;
852Options[i].BasePosition = BasePosition;
853BindText.Position = BasePosition + Vector2.new(BaseSize.X - BindText.TextBounds.X - 20, -10);
854end
855end)
856GetTableData(Options)(function(i, v) -- just to make sure certain things are drawn before or after others, too lazy to actually sort table
857if typeof(v.Value) == 'function' then
858local BaseSize = Vector2.new(BaseSize.X, 30);
859local BasePosition = shared.MenuDrawingData.Instances.Filling.Position + Vector2.new(0, CPos + (25 * v.AllArgs[4]) - 35);
860
861UIButtons[#UIButtons + 1] = {
862Option = v;
863Instance = Menu:AddMenuInstace(Format('%s_Hitbox', v.Name), NewDrawing'Square'{
864Size = Vector2.new(BaseSize.X, 20) - Vector2.new(30, 0);
865Visible = true;
866Transparency= .5;
867Position = BasePosition + Vector2.new(15, -10);
868Color = Colors.Secondary.Light;
869Filled = true;
870});
871};
872local Text = Menu:AddMenuInstace(Format('%s_Text', v.Name), NewDrawing'Text'{
873Text = v.Text;
874Size = 20;
875Position = BasePosition + Vector2.new(20, -10);
876Visible = true;
877Color = Colors.Primary.Dark;
878});
879
880-- BindText.Position = BasePosition + Vector2.new(BaseSize.X - BindText.TextBounds.X - 10, -10);
881end
882end)
883
884delay(.1, function()
885MenuLoaded = true;
886end);
887
888-- this has to be at the bottom cuz proto drawing api doesnt have zindex :triumph:
889Menu:AddMenuInstace('Cursor1', NewDrawing'Line'{
890Visible = false;
891Color = Color3.new(1, 0, 0);
892Transparency = 1;
893Thickness = 2;
894});
895Menu:AddMenuInstace('Cursor2', NewDrawing'Line'{
896Visible = false;
897Color = Color3.new(1, 0, 0);
898Transparency = 1;
899Thickness = 2;
900});
901Menu:AddMenuInstace('Cursor3', NewDrawing'Line'{
902Visible = false;
903Color = Color3.new(1, 0, 0);
904Transparency = 1;
905Thickness = 2;
906});
907end
908
909CreateMenu();
910
911shared.InputBeganCon = UserInputService.InputBegan:connect(function(input)
912if input.UserInputType.Name == 'MouseButton1' and Options.MenuOpen.Value then
913MouseHeld = true;
914local Bar = Menu:GetInstance'TopBar';
915local Values = {
916Bar.Position.X;
917Bar.Position.Y;
918Bar.Position.X + Bar.Size.X;
919Bar.Position.Y + Bar.Size.Y;
920}
921if MouseHoveringOver(Values) and not syn then -- disable dragging for synapse cuz idk why it breaks
922DraggingUI = true;
923DragOffset = Menu:GetInstance'Main'.Position - GetMouseLocation();
924else
925for i, v in pairs(Sliders) do
926local Values = {
927v.Line.From.X - (v.Slider.Radius);
928v.Line.From.Y - (v.Slider.Radius);
929v.Line.To.X + (v.Slider.Radius);
930v.Line.To.Y + (v.Slider.Radius);
931};
932if MouseHoveringOver(Values) then
933DraggingWhat = v;
934Dragging = true;
935break
936end
937end
938end
939end
940end)
941shared.InputEndedCon = UserInputService.InputEnded:connect(function(input)
942if input.UserInputType.Name == 'MouseButton1' and Options.MenuOpen.Value then
943MouseHeld = false;
944for i, v in pairs(UIButtons) do
945local Values = {
946v.Instance.Position.X;
947v.Instance.Position.Y;
948v.Instance.Position.X + v.Instance.Size.X;
949v.Instance.Position.Y + v.Instance.Size.Y;
950};
951if MouseHoveringOver(Values) then
952v.Option();
953break -- prevent clicking 2 options
954end
955end
956elseif input.UserInputType.Name == 'Keyboard' then
957if Binding then
958BindedKey = input.KeyCode;
959Binding = false;
960elseif input.KeyCode == Options.MenuKey.Value or (input.KeyCode == Enum.KeyCode.Home and UserInputService:IsKeyDown(Enum.KeyCode.LeftControl)) then
961Options.MenuOpen();
962end
963end
964end)
965
966function ToggleMenu()
967if Options.MenuOpen.Value then
968GetTableData(shared.MenuDrawingData.Instances)(function(i, v)
969if OldData[v] then
970pcall(Set, v, 'Visible', true);
971end
972end)
973else
974-- GUIService:SetMenuIsOpen(false);
975GetTableData(shared.MenuDrawingData.Instances)(function(i, v)
976if v.Visible == true then
977OldData[v] = true;
978pcall(Set, v, 'Visible', false);
979end
980end)
981end
982end
983
984function CheckRay(Player, Distance, Position, Unit)
985local Pass = true;
986
987if Distance > 999 then return false; end
988
989local _Ray = Ray.new(Position, Unit * Distance);
990
991local List = {LocalPlayer.Character, Camera, Mouse.TargetFilter};
992
993for i,v in pairs(IgnoreList) do table.insert(List, v); end;
994
995local Hit = workspace:FindPartOnRayWithIgnoreList(_Ray, List);
996if Hit and not Hit:IsDescendantOf(Player.Character) then
997Pass = false;
998if Hit.Transparency >= .3 or not Hit.CanCollide and Hit.ClassName ~= Terrain then -- Detect invisible walls
999IgnoreList[#IgnoreList + 1] = Hit;
1000end
1001end
1002
1003return Pass;
1004end
1005
1006function CheckPlayer(Player)
1007if not Options.Enabled.Value then return false end
1008
1009local Pass = true;
1010local Distance = 0;
1011
1012if Player ~= LocalPlayer and Player.Character then
1013if not Options.ShowTeam.Value and Player.TeamColor == LocalPlayer.TeamColor then
1014Pass = false;
1015end
1016
1017local Head = Player.Character:FindFirstChild'Head';
1018
1019if Pass and Player.Character and Head then
1020Distance = (Camera.CFrame.p - Head.Position).magnitude;
1021if Options.VisCheck.Value then
1022Pass = CheckRay(Player, Distance, Camera.CFrame.p, (Head.Position - Camera.CFrame.p).unit);
1023end
1024if Distance > Options.MaxDistance.Value then
1025Pass = false;
1026end
1027end
1028else
1029Pass = false;
1030end
1031
1032return Pass, Distance;
1033end
1034
1035function UpdatePlayerData()
1036if (tick() - LastRefresh) > (Options.RefreshRate.Value / 1000) then
1037LastRefresh = tick();
1038for i, v in pairs(Players:GetPlayers()) do
1039local Data = shared.PlayerData[v.Name] or { Instances = {} };
1040
1041Data.Instances['Box'] = Data.Instances['Box'] or LineBox:Create{Thickness = 3};
1042Data.Instances['Tracer'] = Data.Instances['Tracer'] or NewDrawing'Line'{
1043Transparency = 1;
1044Thickness = 2;
1045}
1046Data.Instances['HeadDot'] = Data.Instances['HeadDot'] or NewDrawing'Circle'{
1047Filled = true;
1048NumSides = 30;
1049}
1050Data.Instances['NameTag'] = Data.Instances['NameTag'] or NewDrawing'Text'{
1051Size = Options.TextSize.Value;
1052Center = true;
1053Outline = Options.TextOutline.Value;
1054Visible = true;
1055};
1056Data.Instances['DistanceHealthTag'] = Data.Instances['DistanceHealthTag'] or NewDrawing'Text'{
1057Size = Options.TextSize.Value - 1;
1058Center = true;
1059Outline = Options.TextOutline.Value;
1060Visible = true;
1061};
1062
1063local NameTag = Data.Instances['NameTag'];
1064local DistanceTag = Data.Instances['DistanceHealthTag'];
1065local Tracer = Data.Instances['Tracer'];
1066local HeadDot = Data.Instances['HeadDot'];
1067local Box = Data.Instances['Box'];
1068
1069local Pass, Distance = CheckPlayer(v);
1070
1071if Pass and v.Character then
1072Data.LastUpdate = tick();
1073local Humanoid = v.Character:FindFirstChildOfClass'Humanoid';
1074local Head = v.Character:FindFirstChild'Head';
1075local HumanoidRootPart = v.Character:FindFirstChild'HumanoidRootPart';
1076if v.Character ~= nil and Head then
1077local ScreenPosition, Vis = Camera:WorldToViewportPoint(Head.Position);
1078if Vis then
1079local Color = v.TeamColor == LocalPlayer.TeamColor and Green or Red;
1080
1081local ScreenPositionUpper = Camera:WorldToViewportPoint(Head.CFrame * CFrame.new(0, Head.Size.Y, 0).p);
1082local Scale = Head.Size.Y / 2;
1083
1084if Options.ShowName.Value then
1085NameTag.Visible = true;
1086NameTag.Text = v.Name;
1087NameTag.Size = Options.TextSize.Value;
1088NameTag.Outline = Options.TextOutline.Value;
1089NameTag.Position = Vector2.new(ScreenPositionUpper.X, ScreenPositionUpper.Y);
1090NameTag.Color = Color;
1091if Drawing.Fonts then -- CURRENTLY SYNAPSE ONLY :MEGAHOLY:
1092NameTag.Font = Drawing.Fonts.UI;
1093end
1094else
1095NameTag.Visible = false;
1096end
1097if Options.ShowDistance.Value or Options.ShowHealth.Value then
1098DistanceTag.Visible = true;
1099DistanceTag.Size = Options.TextSize.Value - 1;
1100DistanceTag.Outline = Options.TextOutline.Value;
1101DistanceTag.Color = Color3.new(1, 1, 1);
1102if Drawing.Fonts then -- CURRENTLY SYNAPSE ONLY :MEGAHOLY:
1103NameTag.Font = Drawing.Fonts.UI;
1104end
1105
1106local Str = '';
1107
1108if Options.ShowDistance.Value then
1109Str = Str .. Format('[%d] ', Distance);
1110end
1111if Options.ShowHealth.Value and Humanoid then
1112Str = Str .. Format('[%d/100]', Humanoid.Health / Humanoid.MaxHealth * 100);
1113end
1114
1115DistanceTag.Text = Str;
1116DistanceTag.Position = Vector2.new(ScreenPositionUpper.X, ScreenPositionUpper.Y) + Vector2.new(0, NameTag.Size);
1117else
1118DistanceTag.Visible = false;
1119end
1120if Options.ShowDot.Value then
1121local Top = Camera:WorldToViewportPoint((Head.CFrame * CFrame.new(0, Scale, 0)).p);
1122local Bottom = Camera:WorldToViewportPoint((Head.CFrame * CFrame.new(0, -Scale, 0)).p);
1123local Radius = (Top - Bottom).y;
1124
1125HeadDot.Visible = true;
1126HeadDot.Color = Color;
1127HeadDot.Position = Vector2.new(ScreenPosition.X, ScreenPosition.Y);
1128HeadDot.Radius = Radius;
1129else
1130HeadDot.Visible = false;
1131end
1132if Options.ShowTracers.Value then
1133Tracer.Visible = true;
1134Tracer.From = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y);
1135Tracer.To = Vector2.new(ScreenPosition.X, ScreenPosition.Y);
1136Tracer.Color = Color;
1137else
1138Tracer.Visible = false;
1139end
1140if Options.ShowBoxes.Value and HumanoidRootPart then
1141Box:Update(HumanoidRootPart.CFrame, Vector3.new(2, 3, 0) * (Scale * 2), Color);
1142else
1143Box:SetVisible(false);
1144end
1145else
1146NameTag.Visible = false;
1147DistanceTag.Visible = false;
1148Tracer.Visible = false;
1149HeadDot.Visible = false;
1150
1151Box:SetVisible(false);
1152end
1153end
1154else
1155NameTag.Visible = false;
1156DistanceTag.Visible = false;
1157Tracer.Visible = false;
1158HeadDot.Visible = false;
1159
1160Box:SetVisible(false);
1161end
1162
1163shared.PlayerData[v.Name] = Data;
1164end
1165end
1166end
1167
1168function Update()
1169for i, v in pairs(shared.PlayerData) do
1170if not Players:FindFirstChild(tostring(i)) then
1171GetTableData(v.Instances)(function(i, obj)
1172obj.Visible = false;
1173obj:Remove();
1174v.Instances[i] = nil;
1175end)
1176shared.PlayerData[i] = nil;
1177end
1178end
1179
1180local CX = Menu:GetInstance'CrosshairX';
1181local CY = Menu:GetInstance'CrosshairY';
1182if Options.Crosshair.Value then
1183CX.Visible = true;
1184CY.Visible = true;
1185
1186CX.To = Vector2.new((Camera.ViewportSize.X / 2) - 8, (Camera.ViewportSize.Y / 2));
1187CX.From = Vector2.new((Camera.ViewportSize.X / 2) + 8, (Camera.ViewportSize.Y / 2));
1188CY.To = Vector2.new((Camera.ViewportSize.X / 2), (Camera.ViewportSize.Y / 2) - 8);
1189CY.From = Vector2.new((Camera.ViewportSize.X / 2), (Camera.ViewportSize.Y / 2) + 8);
1190else
1191CX.Visible = false;
1192CY.Visible = false;
1193end
1194
1195if Options.MenuOpen.Value and MenuLoaded then
1196local MLocation = GetMouseLocation();
1197shared.MenuDrawingData.Instances.Main.Color = Color3.fromHSV(tick() * 24 % 255/255, 1, 1);
1198local MainInstance = Menu:GetInstance'Main';
1199local Values = {
1200MainInstance.Position.X;
1201MainInstance.Position.Y;
1202MainInstance.Position.X + MainInstance.Size.X;
1203MainInstance.Position.Y + MainInstance.Size.Y;
1204};
1205if MainInstance and MouseHoveringOver(Values) then
1206Debounce.CursorVis = true;
1207-- GUIService:SetMenuIsOpen(true);
1208Menu:UpdateMenuInstance'Cursor1'{
1209Visible = true;
1210From = Vector2.new(MLocation.x, MLocation.y);
1211To = Vector2.new(MLocation.x + 5, MLocation.y + 6);
1212}
1213Menu:UpdateMenuInstance'Cursor2'{
1214Visible = true;
1215From = Vector2.new(MLocation.x, MLocation.y);
1216To = Vector2.new(MLocation.x, MLocation.y + 8);
1217}
1218Menu:UpdateMenuInstance'Cursor3'{
1219Visible = true;
1220From = Vector2.new(MLocation.x, MLocation.y + 6);
1221To = Vector2.new(MLocation.x + 5, MLocation.y + 5);
1222}
1223else
1224if Debounce.CursorVis then
1225Debounce.CursorVis = false;
1226-- GUIService:SetMenuIsOpen(false);
1227Menu:UpdateMenuInstance'Cursor1'{Visible = false};
1228Menu:UpdateMenuInstance'Cursor2'{Visible = false};
1229Menu:UpdateMenuInstance'Cursor3'{Visible = false};
1230end
1231end
1232if MouseHeld then
1233if Dragging then
1234DraggingWhat.Slider.Position = Vector2.new(math.clamp(MLocation.X, DraggingWhat.Line.From.X, DraggingWhat.Line.To.X), DraggingWhat.Slider.Position.Y);
1235local Percent = (DraggingWhat.Slider.Position.X - DraggingWhat.Line.From.X) / ((DraggingWhat.Line.To.X - DraggingWhat.Line.From.X));
1236local Value = CalculateValue(DraggingWhat.Min, DraggingWhat.Max, Percent);
1237DraggingWhat.Option(Value);
1238elseif DraggingUI then
1239Debounce.UIDrag = true;
1240local Main = Menu:GetInstance'Main';
1241local MousePos = GetMouseLocation();
1242Main.Position = MousePos + DragOffset;
1243end
1244else
1245Dragging = false;
1246if DraggingUI and Debounce.UIDrag then
1247Debounce.UIDrag = false;
1248DraggingUI = false;
1249CreateMenu(Menu:GetInstance'Main'.Position);
1250end
1251end
1252if not Debounce.Menu then
1253Debounce.Menu = true;
1254ToggleMenu();
1255end
1256elseif Debounce.Menu and not Options.MenuOpen.Value then
1257Debounce.Menu = false;
1258ToggleMenu();
1259end
1260end
1261
1262RunService:UnbindFromRenderStep(GetDataName);
1263RunService:UnbindFromRenderStep(UpdateName);
1264
1265RunService:BindToRenderStep(GetDataName, 1, UpdatePlayerData);
1266RunService:BindToRenderStep(UpdateName, 1, Update);
1267
1268end)
1269
1270closegame.Name = "closegame"
1271closegame.Parent = gamegui
1272closegame.BackgroundColor3 = Color3.fromRGB(0, 31, 0)
1273closegame.BorderSizePixel = 0
1274closegame.Position = UDim2.new(0.847290635, 0, 0.0128755365, 0)
1275closegame.Size = UDim2.new(0, 31, 0, 13)
1276closegame.Font = Enum.Font.SourceSans
1277closegame.Text = "X"
1278closegame.TextColor3 = Color3.fromRGB(0, 85, 0)
1279closegame.TextSize = 14.000
1280closegame.TextStrokeTransparency = 0.000
1281closegame.TextWrapped = true
1282closegame.MouseButton1Click:connect(function()
1283
1284 gamegui.Visible = false
1285
1286end)
1287openbutton.Name = "openbutton"
1288openbutton.Parent = chadguiv11
1289openbutton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
1290openbutton.BorderColor3 = Color3.fromRGB(39, 39, 39)
1291openbutton.BorderSizePixel = 4
1292openbutton.Position = UDim2.new(0, 0, 0.574952543, 0)
1293openbutton.Size = UDim2.new(0, 73, 0, 34)
1294openbutton.Font = Enum.Font.Cartoon
1295openbutton.Text = "Open"
1296openbutton.TextColor3 = Color3.fromRGB(0, 0, 0)
1297openbutton.TextScaled = true
1298openbutton.TextSize = 14.000
1299openbutton.TextStrokeColor3 = Color3.fromRGB(85, 170, 0)
1300openbutton.TextStrokeTransparency = 0.000
1301openbutton.TextWrapped = true
1302openbutton.MouseButton1Click:connect(function()
1303
1304 mainframe.Visible = true
1305 openbutton.Visible = false
1306
1307end)
1308-- Scripts:
1309
1310local function UWRIDZ_fake_script() -- mainframe.LocalScript
1311 local script = Instance.new('LocalScript', mainframe)
1312
1313 script.parent.Selectable = true
1314 script.parent.Active = true
1315 script.parent.Draggable = true
1316end
1317coroutine.wrap(UWRIDZ_fake_script)()