Run it
Copy the script and paste it into your executor.
Players = :()
RunService = :()
UserInputService = :()
LocalPlayer = Players.LocalPlayer
Settings = {
NotifyKnife = ,
NotifyFight = ,
PlaySound = ,
ShowDistance = ,
AutoHighlight = ,
HighlightColor = .(, , )
}
playersWithKnives = {}
notifications = {}
highlights = {}
ScreenGui = .()
ScreenGui.Name =
ScreenGui.ResetOnSpawn =
ScreenGui.Parent = LocalPlayer:()
MainFrame = .()
MainFrame.Name =
MainFrame.Size = .(, , , )
MainFrame.Position = .(, -, , )
MainFrame.BackgroundColor3 = .(, , )
MainFrame.BorderSizePixel =
MainFrame.Active =
MainFrame.Draggable =
MainFrame.Parent = ScreenGui
MainCorner = .()
MainCorner.CornerRadius = .(, )
MainCorner.Parent = MainFrame
Border = .()
Border.Name =
Border.Size = .(, , , )
Border.Position = .(, -, , -)
Border.BackgroundColor3 = .(, , )
Border.BorderSizePixel =
Border.ZIndex =
Border.Parent = MainFrame
BorderCorner = .()
BorderCorner.CornerRadius = .(, )
BorderCorner.Parent = Border
BorderGradient = .()
BorderGradient.Color = ColorSequence.{
ColorSequenceKeypoint.(, .(, , )),
ColorSequenceKeypoint.(, .(, , )),
ColorSequenceKeypoint.(, .(, , ))
}
BorderGradient.Parent = Border
.(()
i = , ,
BorderGradient.Rotation = i
.()
)
TitleBar = .()
TitleBar.Name =
TitleBar.Size = .(, , , )
TitleBar.BackgroundColor3 = .(, , )
TitleBar.BorderSizePixel =
TitleBar.Parent = MainFrame
TitleCorner = .()
TitleCorner.CornerRadius = .(, )
TitleCorner.Parent = TitleBar
Title = .()
Title.Size = .(, -, , )
Title.Position = .(, , , )
Title.BackgroundTransparency =
Title.Text =
Title.TextColor3 = .(, , )
Title.TextSize =
Title.Font = .Font.GothamBold
Title.TextXAlignment = .TextXAlignment.Left
Title.Parent = TitleBar
MinimizeButton = .()
MinimizeButton.Size = .(, , , )
MinimizeButton.Position = .(, -, , )
MinimizeButton.BackgroundColor3 = .(, , )
MinimizeButton.Text =
MinimizeButton.TextColor3 = .(, , )
MinimizeButton.TextSize =
MinimizeButton.Font = .Font.GothamBold
MinimizeButton.Parent = TitleBar
MinCorner = .()
MinCorner.CornerRadius = .(, )
MinCorner.Parent = MinimizeButton
CloseButton = .()
CloseButton.Size = .(, , , )
CloseButton.Position = .(, -, , )
CloseButton.BackgroundColor3 = .(, , )
CloseButton.Text =
CloseButton.TextColor3 = .(, , )
CloseButton.TextSize =
CloseButton.Font = .Font.GothamBold
CloseButton.Parent = TitleBar
CloseCorner = .()
CloseCorner.CornerRadius = .(, )
CloseCorner.Parent = CloseButton
isMinimized =
MinimizeButton.MouseButton1Click:(()
isMinimized = isMinimized
MainFrame:(
isMinimized .(, , , ) .(, , , ),
.EasingDirection.Out,
.EasingStyle.Quad,
,
)
MinimizeButton.Text = isMinimized
)
CloseButton.MouseButton1Click:(()
ScreenGui:()
)
SettingsFrame = .()
SettingsFrame.Size = .(, -, , )
SettingsFrame.Position = .(, , , )
SettingsFrame.BackgroundColor3 = .(, , )
SettingsFrame.BorderSizePixel =
SettingsFrame.Parent = MainFrame
SettingsCorner = .()
SettingsCorner.CornerRadius = .(, )
SettingsCorner.Parent = SettingsFrame
(name, yPos, defaultValue, callback)
Toggle = .()
Toggle.Size = .(, -, , )
Toggle.Position = .(, , , yPos)
Toggle.BackgroundTransparency =
Toggle.Parent = SettingsFrame
Label = .()
Label.Size = .(, , , )
Label.BackgroundTransparency =
Label.Text = name
Label.TextColor3 = .(, , )
Label.TextSize =
Label.Font = .Font.GothamMedium
Label.TextXAlignment = .TextXAlignment.Left
Label.Parent = Toggle
Button = .()
Button.Size = .(, , , )
Button.Position = .(, -, , -)
Button.BackgroundColor3 = defaultValue .(, , ) .(, , )
Button.Text = defaultValue
Button.TextColor3 = .(, , )
Button.TextSize =
Button.Font = .Font.GothamBold
Button.Parent = Toggle
ButtonCorner = .()
ButtonCorner.CornerRadius = .(, )
ButtonCorner.Parent = Button
isEnabled = defaultValue
Button.MouseButton1Click:(()
isEnabled = isEnabled
Button.BackgroundColor3 = isEnabled .(, , ) .(, , )
Button.Text = isEnabled
(isEnabled)
)
(, , Settings.NotifyKnife, (val) Settings.NotifyKnife = val )
(, , Settings.NotifyFight, (val) Settings.NotifyFight = val )
(, , Settings.PlaySound, (val) Settings.PlaySound = val )
(, , Settings.AutoHighlight, (val) Settings.AutoHighlight = val )
ListFrame = .()
ListFrame.Size = .(, -, , -)
ListFrame.Position = .(, , , )
ListFrame.BackgroundColor3 = .(, , )
ListFrame.BorderSizePixel =
ListFrame.ScrollBarThickness =
ListFrame.ScrollBarImageColor3 = .(, , )
ListFrame.CanvasSize = .(, , , )
ListFrame.Parent = MainFrame
ListCorner = .()
ListCorner.CornerRadius = .(, )
ListCorner.Parent = ListFrame
ListLayout = .()
ListLayout.Padding = .(, )
ListLayout.Parent = ListFrame
ListLayout:():(()
ListFrame.CanvasSize = .(, , , ListLayout.AbsoluteContentSize.Y + )
)
StatusLabel = .()
StatusLabel.Size = .(, , , )
StatusLabel.Position = .(, , , -)
StatusLabel.BackgroundTransparency =
StatusLabel.Text =
StatusLabel.TextColor3 = .(, , )
StatusLabel.TextSize =
StatusLabel.Font = .Font.Gotham
StatusLabel.Parent = MainFrame
NotificationFrame = .()
NotificationFrame.Size = .(, , , )
NotificationFrame.Position = .(, -, , )
NotificationFrame.BackgroundTransparency =
NotificationFrame.Parent = ScreenGui
NotificationLayout = .()
NotificationLayout.Padding = .(, )
NotificationLayout.HorizontalAlignment = .HorizontalAlignment.Center
NotificationLayout.Parent = NotificationFrame
(text, color)
Notif = .()
Notif.Size = .(, , , )
Notif.BackgroundColor3 = .(, , )
Notif.BorderSizePixel =
Notif.Parent = NotificationFrame
NotifCorner = .()
NotifCorner.CornerRadius = .(, )
NotifCorner.Parent = Notif
NotifBorder = .()
NotifBorder.Size = .(, , , )
NotifBorder.Position = .(, -, , -)
NotifBorder.BackgroundColor3 = color
NotifBorder.BorderSizePixel =
NotifBorder.ZIndex =
NotifBorder.Parent = Notif
NotifBorderCorner = .()
NotifBorderCorner.CornerRadius = .(, )
NotifBorderCorner.Parent = NotifBorder
Icon = .()
Icon.Size = .(, , , )
Icon.BackgroundTransparency =
Icon.Text =
Icon.TextColor3 = color
Icon.TextSize =
Icon.Font = .Font.GothamBold
Icon.Parent = Notif
Label = .()
Label.Size = .(, -, , )
Label.Position = .(, , , )
Label.BackgroundTransparency =
Label.Text = text
Label.TextColor3 = .(, , )
Label.TextSize =
Label.Font = .Font.GothamBold
Label.TextXAlignment = .TextXAlignment.Left
Label.TextWrapped =
Label.Parent = Notif
Notif:(.(, , , ), .EasingDirection.Out, .EasingStyle.Back, , )
Settings.PlaySound
sound = .()
sound.SoundId =
sound.Volume =
sound.Parent = Notif
sound:()
:():(sound, )
.(, ()
Notif:(.(, , , ), .EasingDirection.In, .EasingStyle.Quad, , )
.()
Notif:()
)
(player, hasKnife)
Entry = .()
Entry.Name = player.Name
Entry.Size = .(, -, , )
Entry.BackgroundColor3 = hasKnife .(, , ) .(, , )
Entry.BorderSizePixel =
Entry.Parent = ListFrame
EntryCorner = .()
EntryCorner.CornerRadius = .(, )
EntryCorner.Parent = Entry
PlayerName = .()
PlayerName.Size = .(, -, , )
PlayerName.Position = .(, , , )
PlayerName.BackgroundTransparency =
PlayerName.Text = player.Name
PlayerName.TextColor3 = hasKnife .(, , ) .(, , )
PlayerName.TextSize =
PlayerName.Font = .Font.GothamBold
PlayerName.TextXAlignment = .TextXAlignment.Left
PlayerName.Parent = Entry
StatusText = .()
StatusText.Name =
StatusText.Size = .(, -, , )
StatusText.Position = .(, , , )
StatusText.BackgroundTransparency =
StatusText.Text = hasKnife
StatusText.TextColor3 = hasKnife .(, , ) .(, , )
StatusText.TextSize =
StatusText.Font = .Font.Gotham
StatusText.TextXAlignment = .TextXAlignment.Left
StatusText.Parent = Entry
DistanceLabel = .()
DistanceLabel.Name =
DistanceLabel.Size = .(, , , )
DistanceLabel.Position = .(, -, , )
DistanceLabel.BackgroundTransparency =
DistanceLabel.Text =
DistanceLabel.TextColor3 = .(, , )
DistanceLabel.TextSize =
DistanceLabel.Font = .Font.GothamBold
DistanceLabel.Parent = Entry
Entry
(player, hasKnife)
entry = ListFrame:(player.Name)
entry
entry.BackgroundColor3 = hasKnife .(, , ) .(, , )
entry.Status.Text = hasKnife
entry.Status.TextColor3 = hasKnife .(, , ) .(, , )
nameLabel = entry:()
nameLabel
nameLabel.TextColor3 = hasKnife .(, , ) .(, , )
(player, hasKnife)
(player, enable)
player.Character
enable Settings.AutoHighlight
highlights[player]
highlight = .()
highlight.FillColor = Settings.HighlightColor
highlight.OutlineColor = .(, , )
highlight.FillTransparency =
highlight.OutlineTransparency =
highlight.Parent = player.Character
highlights[player] = highlight
highlights[player]
highlights[player]:()
highlights[player] =
(player)
player.Character
tool = player.Character:()
tool (tool.Name:():() tool.Name:():())
backpack = player:()
backpack
_, item (backpack:())
item:() (item.Name:():() item.Name:():())
(player)
player == LocalPlayer
(player, )
(character)
.()
character.ChildAdded:((child)
child:() (child.Name:():() child.Name:():())
playersWithKnives[player]
playersWithKnives[player] =
Settings.NotifyKnife
(player.Name .. , .(, , ))
(player, )
(player, )
)
character.ChildRemoved:((child)
child:() (child.Name:():() child.Name:():())
(player)
playersWithKnives[player] =
(player, )
(player, )
)
player.Character
(player.Character)
player.CharacterAdded:(OnCharacterAdded)
_, player (Players:())
(player)
Players.PlayerAdded:(MonitorPlayer)
Players.PlayerRemoving:((player)
playersWithKnives[player] =
entry = ListFrame:(player.Name)
entry entry:()
highlights[player]
highlights[player]:()
highlights[player] =
)
RunService.Heartbeat:(()
LocalPlayer.Character LocalPlayer.Character:()
_, entry (ListFrame:())
entry:() entry.Name ~=
player = Players:(entry.Name)
player player.Character player.Character:()
distance = (player.Character.HumanoidRootPart.Position - LocalPlayer.Character.HumanoidRootPart.Position).Magnitude
distLabel = entry:()
distLabel
distLabel.Text = .(distance) ..
)
UserInputService.InputBegan:((input)
input.KeyCode == .KeyCode.Insert
MainFrame.Visible = MainFrame.Visible
)
()
()knife tracking player