-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustomScriptHubivan.lua
More file actions
144 lines (124 loc) · 3.83 KB
/
customScriptHubivan.lua
File metadata and controls
144 lines (124 loc) · 3.83 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
-- it's a lazy script hub, not so user friendly but simple
-- made for myself personally
local src = [[
if customScriptHubivan then
return
end
getgenv().customScriptHubivan = true
local ExtraAbilities=getgenv().ExtraAbilities or loadstring(game:HttpGet("http://github.com/IvanTheProtogen/ExtraAbilities/raw/main/main.lua"))();
local coregui = game:GetService("CoreGui")
if coregui:FindFirstChild("customScriptHubivan") then
coregui.customScriptHubivan:Destroy()
end
if not pcall(listfiles, "customScriptHubivan") then
makefolder("customScriptHubivan")
end
if not pcall(listfiles, "customScriptHubivan/autoexec") then
makefolder("customScriptHubivan/autoexec")
end
local function getfiles()
return listfiles("customScriptHubivan")
end
local function filename(name)
local s = #("customScriptHubivan/")
return string.sub(name, s+1)
end
local function getfilesAE()
return listfiles("customScriptHubivan/autoexec")
end
local function runfile(name)
local suc,func = pcall(loadstring, readfile(name))
if not suc then return suc,func end
return pcall(func)
end
local gui = Instance.new("ScreenGui", coregui)
gui.Name = "customScriptHubivan"
gui.DisplayOrder = 15
gui.ResetOnSpawn = false
local bubble = Instance.new("TextButton", gui)
bubble.Name = "bubble"
bubble.Size = UDim2.new(0,30,0,30)
bubble.Position = UDim2.new(0.25,-15,1,-40)
bubble.BorderSizePixel = 0
bubble.BackgroundColor3 = Color3.fromRGB(27,27,27)
bubble.Text = ""
local icon = Instance.new("TextLabel", bubble)
icon.Name = "icon"
icon.Font = Enum.Font.Ubuntu
icon.BorderSizePixel = 0
icon.Position = UDim2.new(0.5,0,0.5,0)
icon.Text = "S"
icon.TextSize = 16
icon.TextColor3 = Color3.new(1,1,1)
task.spawn(function()
local x = 0
while task.wait() do
gui.bubble.Rotation = x/2
gui.bubble.Position = UDim2.new(0.25,-15,1,-45-(math.sin(x/30)*10))
gui.bubble.icon.Rotation = -(x/2)
x=x+1
end
end)
gui.bubble.MouseButton1Click:Connect(function()
gui.topbar.Visible = not gui.topbar.Visible
end)
local topbar = Instance.new("TextLabel", gui)
topbar.Name = "topbar"
topbar.BorderSizePixel = 0
topbar.BackgroundColor3 = Color3.fromRGB(27,27,27)
topbar.Size = UDim2.new(0,400,0,15)
topbar.Position = UDim2.new(0.5,-200,0.5,-(255/2))
topbar.Active = true
topbar.Draggable = true
topbar.Font = Enum.Font.Ubuntu
topbar.Text = "Ivan's Custom Script Hub"
topbar.TextColor3 = Color3.new(1,1,1)
topbar.Visible = false
local main = Instance.new("Frame", topbar)
main.Name = "main"
main.BorderSizePixel = 0
main.BackgroundColor3 = Color3.fromRGB(31,31,31)
main.Size = UDim2.new(0,400,0,240)
main.Position = UDim2.new(0,0,0,15)
main.Active = true
local scroll = Instance.new("ScrollingFrame", main)
scroll.Name = "scroll"
scroll.BorderSizePixel = 0
scroll.BackgroundColor3 = Color3.fromRGB(27,27,27)
scroll.Size = UDim2.new(0,380,0,220)
scroll.Position = UDim2.new(0,10,0,10)
scroll.Active = true
scroll.AutomaticCanvasSize = Enum.AutomaticSize.Y
local file = Instance.new("TextButton")
file.Archivable = true
file.Size = UDim2.new(0,380,0,25)
file.BackgroundColor3 = Color3.fromRGB(24,24,24)
file.BorderSizePixel = 0
file.TextColor3 = Color3.new(1,1,1)
file.TextXAlignment = Enum.TextXAlignment.Left
local function displayfile(name)
local file = file:Clone()
local scroll = gui.topbar.main.scroll
file.Parent = scroll
file.Text = filename(name)
file.Position = UDim2.new(0,0,0,(5*#scroll:GetChildren())+(25*#scroll:GetChildren()))
file.MouseButton1Click:Connect(function()
local resp = ExtraAbilities.NotifyRequest("Select action", "Select action to do with the file", "Data To Clipboard", "Execute now")
if resp == "Execute now" then
runfile(name)
else if resp == "Data To Clipboard" then
setclipboard(readfile(name))
end end
end)
end
for i,v in getfiles() do
if not isfolder(v) then
displayfile(v)
end
end
for i,v in getfilesAE() do
task.spawn(runfile,v)
end
]]
loadstring(src)()
queueonteleport(src)