Run it
Copy the script and paste it into your executor.
Players = :()
RunService = :()
UIS = :()
CAS = :()
CoreGui = :()
Workspace = :()
LocalPlayer = Players.LocalPlayer
Settings = {
TOGGLE_KEY = .KeyCode.L,
TARGET_LIMBS = {},
LIMB_SIZE = ,
LIMB_TRANSPARENCY = ,
LIMB_CAN_COLLIDE = ,
TEAM_CHECK = ,
FORCEFIELD_CHECK = ,
RESET_LIMB_ON_DEATH = ,
USE_HIGHLIGHT = ,
WALL_CHECK = ,
RGB_ENABLED = ,
RGB_SPEED = ,
DEPTH_MODE = .HighlightDepthMode.AlwaysOnTop,
HIGHLIGHT_FILL_COLOR = .(, , ),
HIGHLIGHT_FILL_TRANSPARENCY = ,
HIGHLIGHT_OUTLINE_COLOR = .(, , ),
HIGHLIGHT_OUTLINE_TRANSPARENCY = ,
}
ALL_LIMBS = {
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
}
().LimbExtender ().LimbExtender.DestroyAll
().LimbExtender.()
State = {
Running = ,
Destroyed = ,
PlayerData = {},
TouchConns = {},
OriginalData = {},
ActiveHighlights = {},
Connections = {},
LimbButtons = {},
RgbHue =
}
().LimbExtender = State
(player)
Settings.TEAM_CHECK LocalPlayer.Team ~= player.Team == LocalPlayer.Team
(limbName)
.(Settings.TARGET_LIMBS, limbName) ~=
(targetPart, character)
Settings.WALL_CHECK
camera = Workspace.CurrentCamera
camera targetPart targetPart.Parent
origin = camera.CFrame.Position
targetPos = targetPart.Position
direction = targetPos - origin
distance = direction.Magnitude
distance <=
params = RaycastParams.()
params.FilterType = .RaycastFilterType.Exclude
params.IgnoreWater =
ignoreList = {}
LocalPlayer.Character
.(ignoreList, LocalPlayer.Character)
character
.(ignoreList, character)
params.FilterDescendantsInstances = ignoreList
result = Workspace:(origin, direction.Unit * distance, params)
result
character result.Instance:(character)
(h, part, character, rgbColor)
h h.Parent
fillColor = rgbColor Settings.HIGHLIGHT_FILL_COLOR
outlineColor = rgbColor .(
.(.(rgbColor.R * * ), , ),
.(.(rgbColor.G * * ), , ),
.(.(rgbColor.B * * ), , )
) Settings.HIGHLIGHT_OUTLINE_COLOR
h.FillColor = fillColor
h.FillTransparency = Settings.HIGHLIGHT_FILL_TRANSPARENCY
h.OutlineColor = outlineColor
h.OutlineTransparency = Settings.HIGHLIGHT_OUTLINE_TRANSPARENCY
Settings.WALL_CHECK
visible = (part, character)
h.DepthMode = visible .HighlightDepthMode.AlwaysOnTop .HighlightDepthMode.Occluded
h.DepthMode = Settings.DEPTH_MODE
(parent)
parent parent:()
existing = parent:()
existing existing:()
State.ActiveHighlights[existing] = {
Part = parent,
Character = parent:()
}
(existing, parent, parent:(), )
existing
h = .()
h.Name =
h.Adornee = parent
h.Parent = parent
charModel = parent:()
State.ActiveHighlights[h] = {
Part = parent,
Character = charModel
}
(h, parent, charModel, )
h
(parent)
parent
h, _ (State.ActiveHighlights)
h.Parent h.Parent == parent h.Adornee == parent
State.ActiveHighlights[h] =
h = parent:()
h h:()
_, child (parent:())
child:()
State.ActiveHighlights[child] =
child:()
()
rgbColor = Settings.RGB_ENABLED .(State.RgbHue % , , )
h, meta (State.ActiveHighlights)
h h.Parent meta.Part meta.Part.Parent
Settings.USE_HIGHLIGHT
(h, meta.Part, meta.Character, rgbColor)
h:()
State.ActiveHighlights[h] =
State.ActiveHighlights[h] =
(limb)
limb.CanTouch =
limb.CanCollide = Settings.LIMB_CAN_COLLIDE
State.TouchConns[limb]
State.TouchConns[limb]:()
State.TouchConns[limb] = limb:():(()
State.Running State.Destroyed limb.CanTouch
limb.CanTouch =
)
(limb)
State.OriginalData[limb]
mesh = limb:()
State.OriginalData[limb] = {
Size = limb.Size,
Transparency = limb.Transparency,
CanCollide = limb.CanCollide,
CanTouch = limb.CanTouch,
Massless = limb.Massless,
MeshScale = mesh mesh.Scale
}
(limb)
limb limb:()
(()
(limb)
limb.Size = .(Settings.LIMB_SIZE, Settings.LIMB_SIZE, Settings.LIMB_SIZE)
limb.Transparency = Settings.LIMB_TRANSPARENCY
limb.CanCollide = Settings.LIMB_CAN_COLLIDE
limb.CanTouch =
limb.Massless =
(limb)
mesh = limb:()
mesh
mesh.Scale = .(, , )
)
Settings.USE_HIGHLIGHT
(limb)
(limb)
(limb)
limb
State.TouchConns[limb]
State.TouchConns[limb]:()
State.TouchConns[limb] =
(()
orig = State.OriginalData[limb]
orig
limb.Size = orig.Size
limb.Transparency = orig.Transparency
limb.CanCollide = orig.CanCollide
limb.CanTouch = orig.CanTouch
limb.Massless = orig.Massless
mesh = limb:()
mesh orig.MeshScale
mesh.Scale = orig.MeshScale
State.OriginalData[limb] =
limb.Name ==
limb.Size = .(, , )
limb.Name == limb.Name == limb.Name == limb.Name ==
limb.Size = .(, , )
limb.Size = .(, , )
limb.Transparency = (limb.Name == )
limb.CanCollide = (limb.Name ~= )
limb.CanTouch =
limb.Massless =
)
(limb)
(char)
char
_, part (char:())
part:()
(part)
State.OriginalData[part] (part.Name)
(part)
()
limb, _ (State.OriginalData)
limb limb.Parent
(limb)
State.OriginalData = {}
State.ActiveHighlights = {}
_, p (Players:())
p.Character
(p.Character)
(player, char)
char State.Running State.Destroyed
(player)
(char)
Settings.FORCEFIELD_CHECK char:()
conn
conn = char.ChildRemoved:((c)
c:()
conn:()
(player, char)
)
humanoid = char:()
humanoid
_, part (char:())
part:()
(part.Name)
(part)
Settings.RESET_LIMB_ON_DEATH
humanoid.Died:(()
(part)
)
State.OriginalData[part]
(part)
()
State.Running
_, p (Players:())
p ~= LocalPlayer p.Character
(p, p.Character)
()
State.Running
_, p (Players:())
p ~= LocalPlayer p.Character
(p)
(p.Character)
(p, p.Character)
(player)
player == LocalPlayer
State.PlayerData[player]
State.PlayerData[player]:()
State.PlayerData[player] = player.CharacterAdded:((char)
.()
State.Running State.Destroyed
(player, char)
)
player.Character
.(applyToCharacter, player, player.Character)
(player)
State.PlayerData[player]
State.PlayerData[player]:()
State.PlayerData[player] =
UpdateToggleVisuals
()
State.Destroyed State.Running
State.Running =
State.SteppedConn = RunService.Stepped:((_, dt)
State.Running State.Destroyed
Settings.RGB_ENABLED
State.RgbHue = (State.RgbHue + (dt ) * Settings.RGB_SPEED) %
_, p (Players:())
p ~= LocalPlayer p.Character
(p)
(p.Character)
_, limbName (Settings.TARGET_LIMBS)
limb = p.Character:(limbName)
limb limb:()
limb.CanTouch =
limb.CanCollide = Settings.LIMB_CAN_COLLIDE
Settings.USE_HIGHLIGHT
()
)
_, p (Players:())
p ~= LocalPlayer
(p)
State.AddConn = Players.PlayerAdded:(onPlayerAdded)
State.RemConn = Players.PlayerRemoving:(onPlayerRemoving)
UpdateToggleVisuals ()
()
State.Running
State.Running =
State.SteppedConn
State.SteppedConn:()
State.SteppedConn =
_, conn (State.PlayerData)
(conn) == conn:()
State.PlayerData = {}
State.AddConn State.AddConn:() State.AddConn =
State.RemConn State.RemConn:() State.RemConn =
()
UpdateToggleVisuals ()
()
State.Destroyed
State.Running
()
()
ScreenGui = .()
ScreenGui.Name =
ScreenGui.ResetOnSpawn =
ScreenGui.ZIndexBehavior = .ZIndexBehavior.Sibling
parentSuccess = (()
ScreenGui.Parent = CoreGui
)
parentSuccess ScreenGui.Parent
ScreenGui.Parent = LocalPlayer:()
COLORS = {
BgDark = .(, , ),
HeaderBg = .(, , ),
CardBg = .(, , ),
CardHover = .(, , ),
Crimson = .(, , ),
CrimsonDark = .(, , ),
Border = .(, , ),
BorderDim = .(, , ),
TextMain = .(, , ),
TextDim = .(, , )
}
EXPANDED_HEIGHT =
COLLAPSED_LIST_HEIGHT =
PANEL_WIDTH =
MainFrame = .()
MainFrame.Name =
MainFrame.Size = .(, PANEL_WIDTH, , EXPANDED_HEIGHT)
MainFrame.Position = .(, -PANEL_WIDTH / , , -EXPANDED_HEIGHT / )
MainFrame.BackgroundColor3 = COLORS.BgDark
MainFrame.BorderSizePixel =
MainFrame.ClipsDescendants =
MainFrame.Parent = ScreenGui
MainCorner = .()
MainCorner.CornerRadius = .(, )
MainCorner.Parent = MainFrame
MainStroke = .()
MainStroke.Color = COLORS.Border
MainStroke.Thickness =
MainStroke.Parent = MainFrame
TopBar = .()
TopBar.Name =
TopBar.Size = .(, , , )
TopBar.BackgroundColor3 = COLORS.HeaderBg
TopBar.BorderSizePixel =
TopBar.Parent = MainFrame
TopLine = .()
TopLine.Size = .(, , , )
TopLine.Position = .(, , , -)
TopLine.BackgroundColor3 = COLORS.CrimsonDark
TopLine.BorderSizePixel =
TopLine.Parent = TopBar
TitleLabel = .()
TitleLabel.Size = .(, -, , )
TitleLabel.Position = .(, , , )
TitleLabel.BackgroundTransparency =
TitleLabel.Text =
TitleLabel.Font = .Font.GothamBold
TitleLabel.TextSize =
TitleLabel.TextColor3 = COLORS.TextMain
TitleLabel.TextXAlignment = .TextXAlignment.Left
TitleLabel.Parent = TopBar
MinBtn = .()
MinBtn.Name =
MinBtn.Size = .(, , , )
MinBtn.Position = .(, -, , -)
MinBtn.BackgroundColor3 = COLORS.CardBg
MinBtn.Text =
MinBtn.Font = .Font.GothamBold
MinBtn.TextSize =
MinBtn.TextColor3 = COLORS.TextMain
MinBtn.AutoButtonColor =
MinBtn.Parent = TopBar
MinCorner = .()
MinCorner.CornerRadius = .(, )
MinCorner.Parent = MinBtn
MinStroke = .()
MinStroke.Color = COLORS.BorderDim
MinStroke.Thickness =
MinStroke.Parent = MinBtn
CloseBtn = .()
CloseBtn.Name =
CloseBtn.Size = .(, , , )
CloseBtn.Position = .(, -, , -)
CloseBtn.BackgroundColor3 = COLORS.CrimsonDark
CloseBtn.Text =
CloseBtn.Font = .Font.GothamBold
CloseBtn.TextSize =
CloseBtn.TextColor3 = COLORS.TextMain
CloseBtn.AutoButtonColor =
CloseBtn.Parent = TopBar
CloseCorner = .()
CloseCorner.CornerRadius = .(, )
CloseCorner.Parent = CloseBtn
CloseStroke = .()
CloseStroke.Color = COLORS.Crimson
CloseStroke.Thickness =
CloseStroke.Parent = CloseBtn
Content = .()
Content.Name =
Content.Size = .(, -, , -)
Content.Position = .(, , , )
Content.BackgroundTransparency =
Content.Parent = MainFrame
ToggleBtn = .()
ToggleBtn.Name =
ToggleBtn.Size = .(, , , )
ToggleBtn.Position = .(, , , )
ToggleBtn.BackgroundColor3 = COLORS.CardBg
ToggleBtn.Text =
ToggleBtn.Font = .Font.GothamBold
ToggleBtn.TextSize =
ToggleBtn.TextColor3 = COLORS.TextDim
ToggleBtn.AutoButtonColor =
ToggleBtn.Parent = Content
ToggleCorner = .()
ToggleCorner.CornerRadius = .(, )
ToggleCorner.Parent = ToggleBtn
ToggleStroke = .()
ToggleStroke.Color = COLORS.BorderDim
ToggleStroke.Thickness =
ToggleStroke.Parent = ToggleBtn
UpdateToggleVisuals = ()
State.Running
ToggleBtn.BackgroundColor3 = COLORS.CrimsonDark
ToggleBtn.Text =
ToggleBtn.TextColor3 = COLORS.TextMain
ToggleStroke.Color = COLORS.Crimson
ToggleBtn.BackgroundColor3 = COLORS.CardBg
ToggleBtn.Text =
ToggleBtn.TextColor3 = COLORS.TextDim
ToggleStroke.Color = COLORS.BorderDim
SizeFrame = .()
SizeFrame.Size = .(, , , )
SizeFrame.Position = .(, , , )
SizeFrame.BackgroundColor3 = COLORS.CardBg
SizeFrame.BorderSizePixel =
SizeFrame.Parent = Content
SizeCorner = .()
SizeCorner.CornerRadius = .(, )
SizeCorner.Parent = SizeFrame
SizeStroke = .()
SizeStroke.Color = COLORS.BorderDim
SizeStroke.Thickness =
SizeStroke.Parent = SizeFrame
SizeLabel = .()
SizeLabel.Size = .(, , , )
SizeLabel.Position = .(, , , )
SizeLabel.BackgroundTransparency =
SizeLabel.Text =
SizeLabel.Font = .Font.GothamSemibold
SizeLabel.TextSize =
SizeLabel.TextColor3 = COLORS.TextMain
SizeLabel.TextXAlignment = .TextXAlignment.Left
SizeLabel.Parent = SizeFrame
SizeBox = .()
SizeBox.Size = .(, , , )
SizeBox.Position = .(, -, , -)
SizeBox.BackgroundColor3 = COLORS.BgDark
SizeBox.Text = (Settings.LIMB_SIZE)
SizeBox.Font = .Font.GothamBold
SizeBox.TextSize =
SizeBox.TextColor3 = COLORS.Crimson
SizeBox.ClearTextOnFocus =
SizeBox.Parent = SizeFrame
SizeBoxCorner = .()
SizeBoxCorner.CornerRadius = .(, )
SizeBoxCorner.Parent = SizeBox
SizeBoxStroke = .()
SizeBoxStroke.Color = COLORS.CrimsonDark
SizeBoxStroke.Thickness =
SizeBoxStroke.Parent = SizeBox
CheckRow = .()
CheckRow.Name =
CheckRow.Size = .(, , , )
CheckRow.Position = .(, , , )
CheckRow.BackgroundTransparency =
CheckRow.Parent = Content
(labelText, posX, widthScale, initialState, onToggle)
btn = .()
btn.Size = .(widthScale, -, , )
btn.Position = .(posX, , , )
btn.BackgroundColor3 = initialState COLORS.CrimsonDark COLORS.CardBg
btn.Text =
btn.AutoButtonColor =
btn.Parent = CheckRow
corner = .()
corner.CornerRadius = .(, )
corner.Parent = btn
stroke = .()
stroke.Color = initialState COLORS.Crimson COLORS.BorderDim
stroke.Thickness =
stroke.Parent = btn
box = .()
box.Size = .(, , , )
box.Position = .(, , , -)
box.BackgroundColor3 = COLORS.BgDark
box.BorderSizePixel =
box.Parent = btn
boxCorner = .()
boxCorner.CornerRadius = .(, )
boxCorner.Parent = box
boxStroke = .()
boxStroke.Color = initialState COLORS.Crimson COLORS.BorderDim
boxStroke.Thickness =
boxStroke.Parent = box
mark = .()
mark.Size = .(, , , )
mark.BackgroundTransparency =
mark.Text = initialState
mark.Font = .Font.GothamBold
mark.TextSize =
mark.TextColor3 = COLORS.TextMain
mark.Parent = box
lbl = .()
lbl.Size = .(, -, , )
lbl.Position = .(, , , )
lbl.BackgroundTransparency =
lbl.Text = labelText
lbl.Font = .Font.GothamSemibold
lbl.TextSize =
lbl.TextColor3 = initialState COLORS.TextMain COLORS.TextDim
lbl.TextXAlignment = .TextXAlignment.Left
lbl.Parent = btn
state = initialState
(active)
state = active
btn.BackgroundColor3 = active COLORS.CrimsonDark COLORS.CardBg
stroke.Color = active COLORS.Crimson COLORS.BorderDim
boxStroke.Color = active COLORS.Crimson COLORS.BorderDim
mark.Text = active
lbl.TextColor3 = active COLORS.TextMain COLORS.TextDim
btn.MouseButton1Click:(()
( state)
(state)
)
setVisuals
(, , , Settings.WALL_CHECK, (active)
Settings.WALL_CHECK = active
()
)
(, , , Settings.TEAM_CHECK, (active)
Settings.TEAM_CHECK = active
()
)
(, , , Settings.RGB_ENABLED, (active)
Settings.RGB_ENABLED = active
()
)
RgbFrame = .()
RgbFrame.Name =
RgbFrame.Size = .(, , , )
RgbFrame.Position = .(, , , )
RgbFrame.BackgroundColor3 = COLORS.CardBg
RgbFrame.BorderSizePixel =
RgbFrame.Parent = Content
RgbCorner = .()
RgbCorner.CornerRadius = .(, )
RgbCorner.Parent = RgbFrame
RgbStroke = .()
RgbStroke.Color = COLORS.BorderDim
RgbStroke.Thickness =
RgbStroke.Parent = RgbFrame
RgbLabel = .()
RgbLabel.Size = .(, , , )
RgbLabel.Position = .(, , , )
RgbLabel.BackgroundTransparency =
RgbLabel.Text =
RgbLabel.Font = .Font.GothamSemibold
RgbLabel.TextSize =
RgbLabel.TextColor3 = COLORS.TextMain
RgbLabel.TextXAlignment = .TextXAlignment.Left
RgbLabel.Parent = RgbFrame
Swatch = .()
Swatch.Size = .(, , , )
Swatch.Position = .(, -, , -)
Swatch.BackgroundColor3 = Settings.HIGHLIGHT_FILL_COLOR
Swatch.BorderSizePixel =
Swatch.Parent = RgbFrame
SwatchCorner = .()
SwatchCorner.CornerRadius = .(, )
SwatchCorner.Parent = Swatch
SwatchStroke = .()
SwatchStroke.Color = COLORS.TextMain
SwatchStroke.Thickness =
SwatchStroke.Parent = Swatch
(defaultVal, offsetFromRight, onChanged)
box = .()
box.Size = .(, , , )
box.Position = .(, offsetFromRight, , -)
box.BackgroundColor3 = COLORS.BgDark
box.Text = (defaultVal)
box.Font = .Font.GothamBold
box.TextSize =
box.TextColor3 = COLORS.TextMain
box.ClearTextOnFocus =
box.Parent = RgbFrame
c = .()
c.CornerRadius = .(, )
c.Parent = box
s = .()
s.Color = COLORS.BorderDim
s.Thickness =
s.Parent = box
box.FocusLost:(()
n = (box.Text)
n
n = .(.(n), , )
box.Text = (n)
(n)
box.Text = (defaultVal)
)
box
rVal = .(Settings.HIGHLIGHT_FILL_COLOR.R * )
gVal = .(Settings.HIGHLIGHT_FILL_COLOR.G * )
bVal = .(Settings.HIGHLIGHT_FILL_COLOR.B * )
()
custom = .(rVal, gVal, bVal)
Settings.HIGHLIGHT_FILL_COLOR = custom
Settings.HIGHLIGHT_OUTLINE_COLOR = .(
.(.(rVal * ), , ),
.(.(gVal * ), , ),
.(.(bVal * ), , )
)
Swatch.BackgroundColor3 = custom
()
(bVal, -, (v)
bVal = v
()
)
(gVal, -, (v)
gVal = v
()
)
(rVal, -, (v)
rVal = v
()
)
SliderFrame = .()
SliderFrame.Name =
SliderFrame.Size = .(, , , )
SliderFrame.Position = .(, , , )
SliderFrame.BackgroundColor3 = COLORS.CardBg
SliderFrame.BorderSizePixel =
SliderFrame.Parent = Content
SliderCorner = .()
SliderCorner.CornerRadius = .(, )
SliderCorner.Parent = SliderFrame
SliderStroke = .()
SliderStroke.Color = COLORS.BorderDim
SliderStroke.Thickness =
SliderStroke.Parent = SliderFrame
SliderTitle = .()
SliderTitle.Size = .(, , , )
SliderTitle.Position = .(, , , )
SliderTitle.BackgroundTransparency =
SliderTitle.Text =
SliderTitle.Font = .Font.GothamSemibold
SliderTitle.TextSize =
SliderTitle.TextColor3 = COLORS.TextMain
SliderTitle.TextXAlignment = .TextXAlignment.Left
SliderTitle.Parent = SliderFrame
SliderValueLabel = .()
SliderValueLabel.Size = .(, , , )
SliderValueLabel.Position = .(, , , )
SliderValueLabel.BackgroundTransparency =
SliderValueLabel.Text = .(, Settings.HIGHLIGHT_FILL_TRANSPARENCY)
SliderValueLabel.Font = .Font.GothamBold
SliderValueLabel.TextSize =
SliderValueLabel.TextColor3 = COLORS.Crimson
SliderValueLabel.TextXAlignment = .TextXAlignment.Right
SliderValueLabel.Parent = SliderFrame
TrackBar = .()
TrackBar.Name =
TrackBar.Size = .(, -, , )
TrackBar.Position = .(, , , )
TrackBar.BackgroundColor3 = COLORS.BgDark
TrackBar.BorderSizePixel =
TrackBar.Parent = SliderFrame
TrackCorner = .()
TrackCorner.CornerRadius = .(, )
TrackCorner.Parent = TrackBar
FillBar = .()
FillBar.Name =
FillBar.Size = .(Settings.HIGHLIGHT_FILL_TRANSPARENCY, , , )
FillBar.BackgroundColor3 = COLORS.Crimson
FillBar.BorderSizePixel =
FillBar.Parent = TrackBar
FillCorner = .()
FillCorner.CornerRadius = .(, )
FillCorner.Parent = FillBar
Knob = .()
Knob.Name =
Knob.Size = .(, , , )
Knob.AnchorPoint = .(, )
Knob.Position = .(Settings.HIGHLIGHT_FILL_TRANSPARENCY, , , )
Knob.BackgroundColor3 = COLORS.TextMain
Knob.Text =
Knob.AutoButtonColor =
Knob.Parent = TrackBar
KnobCorner = .()
KnobCorner.CornerRadius = .(, )
KnobCorner.Parent = Knob
KnobStroke = .()
KnobStroke.Color = COLORS.Crimson
KnobStroke.Thickness =
KnobStroke.Parent = Knob
slidingTransparency =
(alpha)
clamped = .(alpha, , )
rounded = .(clamped * + ) /
Settings.HIGHLIGHT_FILL_TRANSPARENCY = rounded
FillBar.Size = .(rounded, , , )
Knob.Position = .(rounded, , , )
SliderValueLabel.Text = .(, rounded)
()
(screenX)
absPos = TrackBar.AbsolutePosition.X
absSize = TrackBar.AbsoluteSize.X
absSize <=
((screenX - absPos) / absSize)
TrackBar.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
slidingTransparency =
(input.Position.X)
)
Knob.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
slidingTransparency =
)
.(State.Connections, UIS.InputEnded:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
slidingTransparency =
))
.(State.Connections, UIS.InputChanged:((input)
slidingTransparency (input.UserInputType == .UserInputType.MouseMovement input.UserInputType == .UserInputType.Touch)
(input.Position.X)
))
PresetFrame = .()
PresetFrame.Size = .(, , , )
PresetFrame.Position = .(, , , )
PresetFrame.BackgroundTransparency =
PresetFrame.Parent = Content
(text, posX, widthScale, callback)
btn = .()
btn.Size = .(widthScale, -, , )
btn.Position = .(posX, , , )
btn.BackgroundColor3 = COLORS.CardBg
btn.Text = text
btn.Font = .Font.GothamSemibold
btn.TextSize =
btn.TextColor3 = COLORS.TextMain
btn.AutoButtonColor =
btn.Parent = PresetFrame
c = .()
c.CornerRadius = .(, )
c.Parent = btn
s = .()
s.Color = COLORS.BorderDim
s.Thickness =
s.Parent = btn
btn.MouseButton1Click:(callback)
btn
DropdownBtn = .()
DropdownBtn.Name =
DropdownBtn.Size = .(, , , )
DropdownBtn.Position = .(, , , )
DropdownBtn.BackgroundColor3 = COLORS.CardBg
DropdownBtn.Text =
DropdownBtn.Font = .Font.GothamBold
DropdownBtn.TextSize =
DropdownBtn.TextColor3 = COLORS.TextMain
DropdownBtn.TextXAlignment = .TextXAlignment.Left
DropdownBtn.AutoButtonColor =
DropdownBtn.Parent = Content
DropCorner = .()
DropCorner.CornerRadius = .(, )
DropCorner.Parent = DropdownBtn
DropStroke = .()
DropStroke.Color = COLORS.Crimson
DropStroke.Thickness =
DropStroke.Parent = DropdownBtn
DropdownList = .()
DropdownList.Name =
DropdownList.Size = .(, , , )
DropdownList.Position = .(, , , )
DropdownList.BackgroundColor3 = .(, , )
DropdownList.BorderSizePixel =
DropdownList.ScrollBarThickness =
DropdownList.ScrollBarImageColor3 = COLORS.Crimson
DropdownList.Visible =
DropdownList.CanvasSize = .(, , , )
DropdownList.Parent = Content
ListCorner = .()
ListCorner.CornerRadius = .(, )
ListCorner.Parent = DropdownList
ListStroke = .()
ListStroke.Color = COLORS.BorderDim
ListStroke.Thickness =
ListStroke.Parent = DropdownList
UIList = .()
UIList.Padding = .(, )
UIList.SortOrder = .SortOrder.LayoutOrder
UIList.Parent = DropdownList
ListPadding = .()
ListPadding.PaddingTop = .(, )
ListPadding.PaddingBottom = .(, )
ListPadding.PaddingLeft = .(, )
ListPadding.PaddingRight = .(, )
ListPadding.Parent = DropdownList
dropdownOpen =
()
count = #Settings.TARGET_LIMBS
arrow = dropdownOpen
DropdownBtn.Text = .(, count, arrow)
()
limbName, data (State.LimbButtons)
selected = (limbName)
data.Button.BackgroundColor3 = selected COLORS.CrimsonDark COLORS.CardBg
data.Stroke.Color = selected COLORS.Crimson COLORS.BorderDim
data.Check.Text = selected
data.Label.TextColor3 = selected COLORS.TextMain COLORS.TextDim
()
i, limbName (ALL_LIMBS)
itemBtn = .()
itemBtn.Name = limbName
itemBtn.Size = .(, , , )
itemBtn.LayoutOrder = i
itemBtn.BackgroundColor3 = COLORS.CardBg
itemBtn.Text =
itemBtn.AutoButtonColor =
itemBtn.Parent = DropdownList
itemCorner = .()
itemCorner.CornerRadius = .(, )
itemCorner.Parent = itemBtn
itemStroke = .()
itemStroke.Color = COLORS.BorderDim
itemStroke.Thickness =
itemStroke.Parent = itemBtn
checkLabel = .()
checkLabel.Size = .(, , , )
checkLabel.BackgroundTransparency =
checkLabel.Text =
checkLabel.Font = .Font.GothamBold
checkLabel.TextSize =
checkLabel.TextColor3 = COLORS.TextMain
checkLabel.Parent = itemBtn
nameLabel = .()
nameLabel.Size = .(, -, , )
nameLabel.Position = .(, , , )
nameLabel.BackgroundTransparency =
nameLabel.Text = limbName
nameLabel.Font = .Font.GothamSemibold
nameLabel.TextSize =
nameLabel.TextColor3 = COLORS.TextDim
nameLabel.TextXAlignment = .TextXAlignment.Left
nameLabel.Parent = itemBtn
State.LimbButtons[limbName] = {
Button = itemBtn,
Stroke = itemStroke,
Check = checkLabel,
Label = nameLabel
}
itemBtn.MouseButton1Click:(()
idx = .(Settings.TARGET_LIMBS, limbName)
idx
.(Settings.TARGET_LIMBS, idx)
.(Settings.TARGET_LIMBS, limbName)
()
()
)
DropdownList.CanvasSize = .(, , , (#ALL_LIMBS * ) + )
()
(, , , ()
Settings.TARGET_LIMBS = {, , , , , }
()
()
)
(, , , ()
Settings.TARGET_LIMBS = {
, , ,
, , ,
, , ,
, , ,
, ,
}
()
()
)
(, , , ()
Settings.TARGET_LIMBS = {}
()
()
)
dragging =
dragInput, dragStart, startPos
TopBar.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
dragging =
dragStart = input.Position
startPos = MainFrame.Position
input.Changed:(()
input.UserInputState == .UserInputState.End
dragging =
)
)
TopBar.InputChanged:((input)
input.UserInputType == .UserInputType.MouseMovement input.UserInputType == .UserInputType.Touch
dragInput = input
)
.(State.Connections, UIS.InputChanged:((input)
input == dragInput dragging
delta = input.Position - dragStart
MainFrame.Position = .(
startPos.X.Scale,
startPos.X.Offset + delta.X,
startPos.Y.Scale,
startPos.Y.Offset + delta.Y
)
))
DropdownBtn.MouseButton1Click:(()
dropdownOpen = dropdownOpen
DropdownList.Visible = dropdownOpen
dropdownOpen
MainFrame.Size = .(, PANEL_WIDTH, , EXPANDED_HEIGHT)
MainFrame.Size = .(, PANEL_WIDTH, , COLLAPSED_LIST_HEIGHT)
()
)
minimized =
MinBtn.MouseButton1Click:(()
minimized = minimized
minimized
Content.Visible =
MainFrame.Size = .(, PANEL_WIDTH, , )
MinBtn.Text =
Content.Visible =
MainFrame.Size = dropdownOpen .(, PANEL_WIDTH, , EXPANDED_HEIGHT) .(, PANEL_WIDTH, , COLLAPSED_LIST_HEIGHT)
MinBtn.Text =
)
ToggleBtn.MouseButton1Click:(toggle)
SizeBox.FocusLost:(()
num = (SizeBox.Text)
num num >= num <=
Settings.LIMB_SIZE = num
SizeBox.Text = (num)
()
SizeBox.Text = (Settings.LIMB_SIZE)
)
()
State.Destroyed
()
State.Destroyed =
limb, conn (State.TouchConns)
(conn) ==
conn:()
State.TouchConns = {}
_, conn (State.Connections)
(conn) ==
conn:()
State.Connections = {}
(()
CAS:()
)
()
ScreenGui
ScreenGui:()
().LimbExtender =
State.DestroyAll = destroyAll
CloseBtn.MouseButton1Click:(destroyAll)
.(State.Connections, UIS.InputBegan:((input, gp)
gp State.Destroyed
input.KeyCode == Settings.TOGGLE_KEY
()
input.KeyCode == .KeyCode.RightControl
ScreenGui.Enabled = ScreenGui.Enabled
))
CAS:(, (_, inputState)
inputState == .UserInputState.Begin
()
, , Settings.TOGGLE_KEY)
Universal