Run it
Copy the script and paste it into your executor.
Players = :()
UserInputService = :()
ReplicatedStorage = :()
player = Players.LocalPlayer
ScreenGui_1 = .()
ScreenGui_1.Name =
ScreenGui_1.ResetOnSpawn =
ScreenGui_1.Parent = player:()
cyan = .(, , )
Frame_1 = .()
Frame_1.BackgroundColor3 = .(, , )
Frame_1.Position = .(, , , )
Frame_1.Size = .(, , , )
Frame_1.Active =
Frame_1.Parent = ScreenGui_1
UICorner_1 = .()
UICorner_1.Parent = Frame_1
UIStroke_1 = .()
UIStroke_1.Color = cyan
UIStroke_1.Parent = Frame_1
TextLabel_1 = .()
TextLabel_1.BackgroundTransparency =
TextLabel_1.Position = .(, , , )
TextLabel_1.Size = .(, , , )
TextLabel_1.FontFace = Font.()
TextLabel_1.Text =
TextLabel_1.TextSize =
TextLabel_1.TextColor3 = .(, , )
TextLabel_1.TextStrokeColor3 = cyan
TextLabel_1.TextStrokeTransparency =
TextLabel_1.Parent = Frame_1
Frame_2 = .()
Frame_2.BackgroundColor3 = .(, , )
Frame_2.Position = .(, , , )
Frame_2.Size = .(, , , )
Frame_2.Parent = ScreenGui_1
UICorner_2 = .()
UICorner_2.Parent = Frame_2
UIStroke_2 = .()
UIStroke_2.Color = cyan
UIStroke_2.Parent = Frame_2
CloseButton = .()
CloseButton.BackgroundTransparency =
CloseButton.Size = .(, , , )
CloseButton.FontFace = Font.()
CloseButton.Text =
CloseButton.TextSize =
CloseButton.TextColor3 = .(, , )
CloseButton.TextStrokeColor3 = cyan
CloseButton.TextStrokeTransparency =
CloseButton.Parent = Frame_2
CloseButton.MouseButton1Click:(()
ScreenGui_1.Enabled =
)
(position, buttonText, textSize, unitName)
frame = .()
frame.BackgroundColor3 = .(, , )
frame.Position = position
frame.Size = .(, , , )
frame.Parent = ScreenGui_1
corner = .()
corner.Parent = frame
stroke = .()
stroke.Color = cyan
stroke.Parent = frame
button = .()
button.BackgroundTransparency =
button.Size = .(, , , )
button.FontFace = Font.()
button.Text = buttonText
button.TextSize = textSize
button.TextColor3 = .(, , )
button.TextStrokeColor3 = cyan
button.TextStrokeTransparency =
button.Parent = frame
button.MouseButton1Click:(()
args = {
unitName,
:(),
}
ReplicatedStorage:()
:()
:((args))
)
frame
Frame_3 = (
.(, , , ),
,
,
)
Frame_4 = (
.(, , , ),
,
,
)
Frame_5 = (
.(, , , ),
,
,
)
Frame_6 = (
.(, , , ),
,
,
)
dragging =
dragStart
startPositions = {}
guiFrames = {
Frame_1,
Frame_2,
Frame_3,
Frame_4,
Frame_5,
Frame_6
}
Frame_1.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
dragging =
dragStart = input.Position
startPositions = {}
i, frame (guiFrames)
startPositions[i] = frame.Position
)
UserInputService.InputEnded:((input)
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
dragging =
)
UserInputService.InputChanged:((input)
dragging input.UserInputType == .UserInputType.MouseMovement
delta = input.Position - dragStart
i, frame (guiFrames)
frame.Position = startPositions[i] + .(delta.X, delta.Y)
)
UserInputService.InputBegan:((input, gameProcessed)
gameProcessed
input.KeyCode == .KeyCode.K
ScreenGui_1.Enabled =
)Allows you spawn admin units