Run it
Copy the script and paste it into your executor.
Players = :()
RunService = :()
UIS = :()
StarterGui = :()
lp = Players.LocalPlayer
CFG = {
Distance = ,
HideTime = ,
Key = .KeyCode.K,
HideKey = .KeyCode.RightShift,
Whitelist = {},
}
enabled, busy = ,
hits, lastName = ,
updateUI = ()
(t)
(()
StarterGui:(, {Title = , Text = t, Duration = })
)
(plr)
c = plr.Character
c c:()
(name)
name = name:()
_, n (CFG.Whitelist)
n:() == name
(attacker)
me = (lp)
me
busy =
hits +=
lastName = attacker.Name
()
home = me.CFrame
y = .FallenPartsDestroyHeight +
me.CFrame = .(home.X, y, home.Z)
me.AssemblyLinearVelocity = .zero
me.Anchored =
(attacker.Name .. )
.(CFG.HideTime, ()
r = (lp)
r
r.Anchored =
r.AssemblyLinearVelocity = .zero
r.CFrame = home
busy =
)
RunService.Heartbeat:(()
enabled busy
me = (lp)
me
_, p (Players:())
p ~= lp (p.Name)
r = (p)
r (r.Position - me.Position).Magnitude < CFG.Distance
(p)
)
(class, props, parent)
o = .(class)
k, v (props) o[k] = v
o.Parent = parent
o
(o, r) (, {CornerRadius = .(, r )}, o)
BG, PANEL, GREEN, RED = .(, , ), .(, , ), .(, , ), .(, , )
gui = (, {Name = , ResetOnSpawn = }, (gethui ()) lp:())
main = (, {Size = .(, ), Position = .(, , , ), BackgroundColor3 = BG, BorderSizePixel = }, gui)
(main, )
title = (, {Size = .(, , , ), BackgroundColor3 = PANEL, BorderSizePixel = }, main)
(title, )
(, {Size = .(, -, , ), Position = .(, ), BackgroundTransparency = , Text = , TextColor3 = .(, , ), Font = .Font.GothamBold, TextSize = , TextXAlignment = .TextXAlignment.Left}, title)
minBtn = (, {Size = .(, ), Position = .(, -, , ), BackgroundColor3 = BG, Text = , TextColor3 = .(, , ), Font = .Font.GothamBold, TextSize = }, title)
(minBtn, )
body = (, {Size = .(, , , -), Position = .(, ), BackgroundTransparency = }, main)
(, {PaddingTop = .(, ), PaddingLeft = .(, ), PaddingRight = .(, )}, body)
(, {Padding = .(, ), SortOrder = .SortOrder.LayoutOrder}, body)
(text, h, order)
(, {Size = .(, , , h), BackgroundTransparency = , Text = text, TextColor3 = .(, , ), Font = .Font.Gotham, TextSize = , TextWrapped = , TextXAlignment = .TextXAlignment.Left, LayoutOrder = order}, body)
(text, w, order, parent)
b = (, {Size = .(w, , , ), BackgroundColor3 = PANEL, Text = text, TextColor3 = .(, , ), Font = .Font.GothamBold, TextSize = , LayoutOrder = order}, parent body)
(b, )
b
toggleBtn = (, , )
toggleBtn.Size = .(, , , )
(name, order, key, step, min, max)
row = (, {Size = .(, , , ), BackgroundTransparency = , LayoutOrder = order}, body)
(, {Size = .(, , , ), BackgroundTransparency = , Text = name, TextColor3 = .(, , ), Font = .Font.Gotham, TextSize = , TextXAlignment = .TextXAlignment.Left}, row)
minus = (, {Size = .(, ), Position = .(, , , ), BackgroundColor3 = PANEL, Text = , TextColor3 = .(, , ), Font = .Font.GothamBold, TextSize = }, row)
val = (, {Size = .(, , , ), Position = .(, , , ), BackgroundTransparency = , TextColor3 = .(, , ), Font = .Font.GothamBold, TextSize = }, row)
plus = (, {Size = .(, ), Position = .(, -, , ), BackgroundColor3 = PANEL, Text = , TextColor3 = .(, , ), Font = .Font.GothamBold, TextSize = }, row)
(minus, ) (plus, )
(v)
CFG[key] = .(.(v * + ) / , min, max)
val.Text = (CFG[key])
minus.MouseButton1Click:(() (CFG[key] - step) )
plus.MouseButton1Click:(() (CFG[key] + step) )
(CFG[key])
(, , , , , )
(, , , , , )
wlRow = (, {Size = .(, , , ), BackgroundTransparency = , LayoutOrder = }, body)
box = (, {Size = .(, -, , ), BackgroundColor3 = PANEL, PlaceholderText = , Text = , TextColor3 = .(, , ), PlaceholderColor3 = .(, , ), Font = .Font.Gotham, TextSize = , ClearTextOnFocus = }, wlRow)
(box, )
addBtn = (, {Size = .(, ), Position = .(, -, , ), BackgroundColor3 = GREEN, Text = , TextColor3 = .(, , ), Font = .Font.GothamBold, TextSize = }, wlRow)
clrBtn = (, {Size = .(, ), Position = .(, -, , ), BackgroundColor3 = RED, Text = , TextColor3 = .(, , ), Font = .Font.GothamBold, TextSize = }, wlRow)
(addBtn, ) (clrBtn, )
wlLabel = (, , )
statLabel = (, , )
()
toggleBtn.Text = enabled
toggleBtn.BackgroundColor3 = enabled GREEN RED
wlLabel.Text = .. (#CFG.Whitelist > .(CFG.Whitelist, ) )
statLabel.Text = .. hits .. .. lastName
() enabled = enabled ()
toggleBtn.MouseButton1Click:(toggle)
addBtn.MouseButton1Click:(()
n = box.Text:(, ):(, )
n ~= (n) .(CFG.Whitelist, n)
box.Text =
()
)
clrBtn.MouseButton1Click:(() CFG.Whitelist = {} () )
collapsed =
minBtn.MouseButton1Click:(()
collapsed = collapsed
body.Visible = collapsed
main.Size = collapsed .(, ) .(, )
minBtn.Text = collapsed
)
dragging, startPos, startInput
title.InputBegan:((i)
i.UserInputType == .UserInputType.MouseButton1 i.UserInputType == .UserInputType.Touch
dragging, startPos, startInput = , main.Position, i.Position
i.Changed:(()
i.UserInputState == .UserInputState.End dragging =
)
)
UIS.InputChanged:((i)
dragging (i.UserInputType == .UserInputType.MouseMovement i.UserInputType == .UserInputType.Touch)
d = i.Position - startInput
main.Position = .(startPos.X.Scale, startPos.X.Offset + d.X, startPos.Y.Scale, startPos.Y.Offset + d.Y)
)
UIS.InputBegan:((i, gp)
gp
i.KeyCode == CFG.Key ()
i.KeyCode == CFG.HideKey main.Visible = main.Visible
)
()
Universal