-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathExecutorNot_SupportedGUI.lua
More file actions
103 lines (92 loc) · 3.26 KB
/
ExecutorNot_SupportedGUI.lua
File metadata and controls
103 lines (92 loc) · 3.26 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
local uis = game:GetService("UserInputService")
local core = cloneref and cloneref(game:GetService("CoreGui")) or game:GetService("CoreGui")
local scr = Instance.new("ScreenGui")
scr.Name = "ExecutorInterface"
scr.ResetOnSpawn = false
scr.IgnoreGuiInset = true
scr.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
scr.Parent = core
local is_mob = uis.TouchEnabled
local fr = Instance.new("Frame")
fr.Name = "MainFrame"
fr.Size = is_mob and UDim2.new(0.300000012, 0, 0.449999988, 0) or UDim2.new(0.6,0,0.6,0)
fr.Position = is_mob and UDim2.new(0.05,0,0.27,0) or UDim2.new(0.2,0,0.2,0)
fr.BackgroundColor3 = Color3.fromRGB(25,25,25)
fr.BorderSizePixel = 0
fr.Parent = scr
local cr = Instance.new("UICorner")
cr.CornerRadius = UDim.new(0,12)
cr.Parent = fr
local cls = Instance.new("TextButton")
cls.Name = "CloseButton"
cls.Size = is_mob and UDim2.new(0,26,0,26) or UDim2.new(0,30,0,30)
cls.Position = is_mob and UDim2.new(1,-30,0,4) or UDim2.new(1,-35,0,5)
cls.BackgroundColor3 = Color3.fromRGB(255,50,50)
cls.Text = "X"
cls.TextScaled = true
cls.Font = Enum.Font.SourceSansBold
cls.TextColor3 = Color3.fromRGB(255,255,255)
cls.BorderSizePixel = 0
cls.Parent = fr
local cr2 = Instance.new("UICorner")
cr2.CornerRadius = UDim.new(1,0)
cr2.Parent = cls
local msg = Instance.new("TextLabel")
msg.Name = "MainMessage"
msg.Size = is_mob and UDim2.new(1,-20,0,70) or UDim2.new(1,-40,0,100)
msg.Position = is_mob and UDim2.new(0,10,0.33,-35) or UDim2.new(0,20,0.4,-60)
msg.BackgroundTransparency = 1
msg.Text = "This executor cannot run this script, we are terribly sorry!"
msg.TextScaled = true
msg.Font = Enum.Font.SourceSansSemibold
msg.TextColor3 = Color3.fromRGB(255,255,255)
msg.Parent = fr
local sub = Instance.new("TextLabel")
sub.Name = "CreditLabel"
sub.Size = is_mob and UDim2.new(1,-20,0,35) or UDim2.new(1,-40,0,50)
sub.Position = is_mob and UDim2.new(0,10,0.33,40) or UDim2.new(0,20,0.4,50)
sub.BackgroundTransparency = 1
sub.Text = "Made by: computerbinaries on Discord."
sub.TextScaled = true
sub.Font = Enum.Font.SourceSans
sub.TextColor3 = Color3.fromRGB(180,180,180)
sub.Parent = fr
cls.MouseButton1Click:Connect(function()
scr:Destroy()
end)
local UIS = uis
local function dragify(Frame)
dragToggle = nil
dragSpeed = 0.15
dragInput = nil
dragStart = nil
dragPos = nil
function updateInput(input)
Delta = input.Position - dragStart
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(0.15), {Position = Position}):Play()
end
Frame.InputBegan:Connect(function(input)
if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil 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)
Frame.InputChanged:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
dragInput = input
end
end)
UIS.InputChanged:Connect(function(input)
if input == dragInput and dragToggle then
updateInput(input)
end
end)
end
dragify(fr)