Run it
Copy the script and paste it into your executor.
-- kill npc gui
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "KillAllNPCs"
screenGui.ResetOnSpawn = false
local button = .()
button.Size = .(, , , )
button.Position = .(, -, , -)
button.Text =
button.Font = .Font.SourceSansBold
button.TextSize =
button.BackgroundColor3 = .(, , )
button.BorderSizePixel =
button.Parent = screenGui
screenGui.Parent = .Players.LocalPlayer:()
dragging =
dragInput, mousePos, framePos
(input)
delta = input.Position - mousePos
button.Position = .(framePos.X.Scale, framePos.X.Offset + delta.X, framePos.Y.Scale, framePos.Y.Offset + delta.Y)
button.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
dragging =
mousePos = input.Position
framePos = button.Position
input.Changed:(()
input.UserInputState == .UserInputState.End
dragging =
)
)
button.InputChanged:((input)
dragging (input.UserInputType == .UserInputType.MouseMovement input.UserInputType == .UserInputType.Touch)
dragInput = input
)
:().InputChanged:((input)
dragging input == dragInput
(input)
)
()
()
_, d (.Workspace:())
d:()
isPlayer =
_, player (.Players:())
d.Parent == player.Character
isPlayer =
isPlayer
d.Health = -
d:(.HumanoidStateType.Dead)
d:()
isKilling =
button.MouseButton1Click:(()
dragging
isKilling
isKilling =
button.Text =
button.BackgroundColor3 = .(, , )
isKilling =
button.Text =
button.BackgroundColor3 = .(, , )
.(.(killAllNPCs))
)works on mini game

Universal