-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfix.lua
71 lines (61 loc) · 1.74 KB
/
fix.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
--[[
Incase you are having any problems with loading Cmd (which most likely is caught by the file saving) then run this.
]]
local Http = game:GetService("HttpService");
local JSONEncode, JSONDecode = Http.JSONEncode, Http.JSONDecode
local Settings = {
Prefix = ";",
Seperator = ",",
Player = "/",
Version = "1.1",
ScaleSize = 1,
Blur = false,
Themes = {
Primary = Color3.fromRGB(35, 35, 35);
Secondary = Color3.fromRGB(40, 40, 40);
Third = Color3.fromRGB(45, 45, 45);
Title = Color3.fromRGB(255, 255, 255);
Description = Color3.fromRGB(200, 200, 200);
Icon = Color3.fromRGB(255, 255, 255);
Shadow = Color3.fromRGB(0, 0, 0);
Outline = Color3.fromRGB(45, 45, 45);
Transparency = 0.05,
Mode = "Dark"
},
Binds = {},
}
local Options = { -- for the settings tab
Notifications = true,
AntiInterfere = false,
Recommendation = true,
Popups = true,
Logging = false,
}
local Folders = { "Cmd", "Cmd/Data", "Cmd/Plugins", "Cmd/Logs" }
for Index, Check in next, Folders do
if not isfolder(Check) then
makefolder(Check);
task.wait(.05);
end
end
local Data = {};
Data.new = function(Name, Info)
writefile(string.format('Cmd/Data/%s', Name), Info)
end
Data.SaveTheme = function(ThemeTable)
local Themes = {}
for Index, Color in next, ThemeTable do
Themes[Index] = tostring(Color)
end
Data.new("Themes.json", JSONEncode(Http, Themes));
end
Data.new("Settings.json", JSONEncode(Http, Settings));
Data.new("CustomAliases.json", JSONEncode(Http, {}));
Data.new("Scale.json", "1");
Data.new("Waypoints.json", JSONEncode(Http, {}));
Data.new("Toggles.json", JSONEncode(Http, Options));
Data.SaveTheme(Settings.Themes);
game:GetService("StarterGui"):SetCore("SendNotification", {
Title = "Done",
Text = "Please run Cmd again!"
})