Run it
Copy the script and paste it into your executor.
Players = :()
RunService = :()
TweenService = :()
UserInputService = :()
LocalPlayer = Players.LocalPlayer
CONFIG = {
Colors = {
Background = .(, , ),
Header = .(, , ),
Accent = .(, , ),
Slap = .(, , ),
Kill = .(, , ),
Get = .(, , ),
AutoOff = .(, , ),
AutoOn = .(, , ),
Text = .(, , ),
Subtext = .(, , ),
},
AnimSpeed = ,
}
isAutoSlapping =
autoSlapConnection: RBXScriptConnection? =
(instance: , props: { []: any }, duration: number?): Tween
t = TweenService:(instance,
TweenInfo.(duration CONFIG.AnimSpeed, .EasingStyle.Quart, .EasingDirection.Out),
props
)
t:()
t
(target, pos)
char = LocalPlayer.Character
char char:()
char.VoidSlap.Event:(, target.Character, pos)
ScreenGui = .()
ScreenGui.Name =
ScreenGui.Parent = :()
Main = .()
Main.Name =
Main.Size = .(, , , )
Main.Position = .(, -, , -)
Main.BackgroundColor3 = CONFIG.Colors.Background
Main.BorderSizePixel =
Main.Active =
Main.ClipsDescendants =
Main.Parent = ScreenGui
mainCorner = .()
mainCorner.CornerRadius = .(, )
mainCorner.Parent = Main
shadow = .()
shadow.Name =
shadow.AnchorPoint = .(, )
shadow.Position = .(, , , )
shadow.Size = .(, , , )
shadow.BackgroundTransparency =
shadow.Image =
shadow.ImageColor3 = .(, , )
shadow.ImageTransparency =
shadow.ScaleType = .ScaleType.Slice
shadow.SliceCenter = Rect.(, , , )
shadow.ZIndex = -
shadow.Parent = Main
Header = .()
Header.Name =
Header.Size = .(, , , )
Header.BackgroundColor3 = CONFIG.Colors.Header
Header.BorderSizePixel =
Header.Parent = Main
headerCorner = .()
headerCorner.CornerRadius = .(, )
headerCorner.Parent = Header
headerFix = .()
headerFix.Size = .(, , , )
headerFix.Position = .(, , , -)
headerFix.BackgroundColor3 = CONFIG.Colors.Header
headerFix.BorderSizePixel =
headerFix.Parent = Header
TitleIcon = .()
TitleIcon.Name =
TitleIcon.Size = .(, , , )
TitleIcon.Position = .(, , , )
TitleIcon.AnchorPoint = .(, )
TitleIcon.BackgroundTransparency =
TitleIcon.Text =
TitleIcon.TextSize =
TitleIcon.Parent = Header
Title = .()
Title.Size = .(, -, , )
Title.Position = .(, , , )
Title.BackgroundTransparency =
Title.Text =
Title.TextColor3 = CONFIG.Colors.Text
Title.TextSize =
Title.Font = .Font.GothamBlack
Title.TextXAlignment = .TextXAlignment.Left
Title.Parent = Header
Minimize = .()
Minimize.Name =
Minimize.Size = .(, , , )
Minimize.Position = .(, -, , )
Minimize.AnchorPoint = .(, )
Minimize.BackgroundColor3 = .(, , )
Minimize.BackgroundTransparency =
Minimize.Text =
Minimize.AutoButtonColor =
Minimize.Parent = Header
minCorner = .()
minCorner.CornerRadius = .(, )
minCorner.Parent = Minimize
MinimizeIcon = .()
MinimizeIcon.Name =
MinimizeIcon.Size = .(, , , )
MinimizeIcon.BackgroundTransparency =
MinimizeIcon.Text =
MinimizeIcon.TextColor3 = CONFIG.Colors.Text
MinimizeIcon.TextSize =
MinimizeIcon.Font = .Font.GothamBold
MinimizeIcon.Parent = Minimize
Minimize.MouseEnter:(()
(Minimize, { BackgroundTransparency = }, )
)
Minimize.MouseLeave:(()
(Minimize, { BackgroundTransparency = }, )
)
Content = .()
Content.Name =
Content.Size = .(, -, , -)
Content.Position = .(, , , )
Content.AnchorPoint = .(, )
Content.BackgroundTransparency =
Content.Parent = Main
UIList = .()
UIList.Padding = .(, )
UIList.Parent = Content
(text: , color: , callback: () -> ()): TextButton
btn = .()
btn.Size = .(, , , )
btn.BackgroundColor3 = color
btn.Text =
btn.AutoButtonColor =
btn.Parent = Content
gradient = .()
gradient.Color = ColorSequence.({
ColorSequenceKeypoint.(, .(, , )),
ColorSequenceKeypoint.(, .(, , ))
})
gradient.Transparency = NumberSequence.(, )
gradient.Rotation =
gradient.Parent = btn
btnCorner = .()
btnCorner.CornerRadius = .(, )
btnCorner.Parent = btn
glow = .()
glow.Name =
glow.Size = .(, , , )
glow.BackgroundColor3 = color
glow.BackgroundTransparency =
glow.BorderSizePixel =
glow.ZIndex = -
glow.Parent = btn
glowCorner = .()
glowCorner.CornerRadius = .(, )
glowCorner.Parent = glow
btnText = .()
btnText.Name =
btnText.Size = .(, , , )
btnText.BackgroundTransparency =
btnText.Text = text
btnText.TextColor3 = CONFIG.Colors.Text
btnText.TextSize =
btnText.Font = .Font.GothamBold
btnText.Parent = btn
icon = .()
icon.Name =
icon.Size = .(, , , )
icon.Position = .(, , , )
icon.AnchorPoint = .(, )
icon.BackgroundTransparency =
icon.Text =
icon.TextSize =
icon.Parent = btn
btn.MouseEnter:(()
(btn, { Size = .(, , , ) }, )
(glow, { BackgroundTransparency = }, )
)
btn.MouseLeave:(()
(btn, { Size = .(, , , ) }, )
(glow, { BackgroundTransparency = }, )
)
btn.MouseButton1Down:(()
(btn, { Size = .(, -, , ) }, )
)
btn.MouseButton1Up:(()
(btn, { Size = .(, , , ) }, )
()
)
btn
(): (TextButton, Frame, TextLabel, Frame)
btn = .()
btn.Name =
btn.Size = .(, , , )
btn.BackgroundColor3 = CONFIG.Colors.AutoOff
btn.Text =
btn.AutoButtonColor =
btn.Parent = Content
btnCorner = .()
btnCorner.CornerRadius = .(, )
btnCorner.Parent = btn
stroke = .()
stroke.Color = CONFIG.Colors.AutoOff
stroke.Thickness =
stroke.Transparency =
stroke.Parent = btn
dot = .()
dot.Name =
dot.Size = .(, , , )
dot.Position = .(, , , )
dot.AnchorPoint = .(, )
dot.BackgroundColor3 = .(, , )
dot.BorderSizePixel =
dot.Parent = btn
dotCorner = .()
dotCorner.CornerRadius = .(, )
dotCorner.Parent = dot
pulse = .()
pulse.Name =
pulse.Size = .(, , , )
pulse.Position = .(, , , )
pulse.AnchorPoint = .(, )
pulse.BackgroundColor3 = CONFIG.Colors.AutoOff
pulse.BackgroundTransparency =
pulse.BorderSizePixel =
pulse.Visible =
pulse.Parent = btn
pulseCorner = .()
pulseCorner.CornerRadius = .(, )
pulseCorner.Parent = pulse
text = .()
text.Name =
text.Size = .(, -, , )
text.Position = .(, , , )
text.BackgroundTransparency =
text.Text =
text.TextColor3 = CONFIG.Colors.Text
text.TextSize =
text.Font = .Font.GothamBlack
text.TextXAlignment = .TextXAlignment.Left
text.Parent = btn
stateLabel = .()
stateLabel.Name =
stateLabel.Size = .(, , , )
stateLabel.Position = .(, -, , )
stateLabel.AnchorPoint = .(, )
stateLabel.BackgroundTransparency =
stateLabel.Text =
stateLabel.TextColor3 = .(, , )
stateLabel.TextSize =
stateLabel.Font = .Font.GothamBold
stateLabel.Parent = btn
btn.MouseEnter:(()
(btn, { Size = .(, , , ) }, )
)
btn.MouseLeave:(()
(btn, { Size = .(, , , ) }, )
)
btn, dot, text, pulse, stateLabel, stroke
slapBtn = (, CONFIG.Colors.Slap, ()
_, p (Players:())
p ~= LocalPlayer p.Character
(p, .(, , ))
)
killBtn = (, CONFIG.Colors.Kill, ()
_, p (Players:())
p ~= LocalPlayer p.Character
(p, .(, , ))
)
getBtn = (, CONFIG.Colors.Get, ()
char = LocalPlayer.Character
hrp = char char:()
hrp
oldCF = hrp.CFrame
hrp.CFrame = .(, -, -, , , -, , , , , -, )
.()
hrp.CFrame = oldCF
)
toggleBtn, toggleDot, toggleText, togglePulse, stateLabel, toggleStroke = ()
(enabled: boolean)
targetColor = enabled CONFIG.Colors.AutoOn CONFIG.Colors.AutoOff
(toggleBtn, { BackgroundColor3 = targetColor }, )
(toggleStroke, { Color = targetColor }, )
stateLabel.Text = enabled
stateLabel.TextColor3 = enabled .(, , ) .(, , )
enabled
togglePulse.Visible =
togglePulse.BackgroundColor3 = targetColor
()
isAutoSlapping
togglePulse.Size = .(, , , )
togglePulse.BackgroundTransparency =
(togglePulse, { Size = .(, , , ), BackgroundTransparency = }, )
.()
.(pulseAnim)
togglePulse.Visible =
()
autoSlapConnection
autoSlapConnection = RunService.Heartbeat:(()
isAutoSlapping
_, p (Players:())
p ~= LocalPlayer p.Character
(p, .(, , ))
)
()
autoSlapConnection
autoSlapConnection:()
autoSlapConnection =
toggleBtn.MouseButton1Click:(()
isAutoSlapping = isAutoSlapping
(isAutoSlapping)
isAutoSlapping
()
()
)
open =
Minimize.MouseButton1Click:(()
open = open
open
Content.Visible =
(Main, { Size = .(, , , ) }, )
MinimizeIcon.Text =
(Main, { Size = .(, , , ) }, )
.()
Content.Visible =
MinimizeIcon.Text =
)
dragging =
dragStart: ?
startPos: ?
Header.InputBegan:((input: InputObject)
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
dragging =
dragStart = input.Position
startPos = Main.Position
(Main, { Size = .(, , , open ) }, )
input.Changed:(()
input.UserInputState == .UserInputState.End
dragging =
(Main, { Size = .(, , , open ) }, )
)
)
UserInputService.InputChanged:((input: InputObject)
dragging (input.UserInputType == .UserInputType.MouseMovement
input.UserInputType == .UserInputType.Touch)
dragStart startPos
delta = input.Position - dragStart
Main.Position = .(
startPos.X.Scale,
startPos.X.Offset + delta.X,
startPos.Y.Scale,
startPos.Y.Offset + delta.Y
)
)
Main.Size = .(, , , )
Main.Rotation = -
(Main, { Size = .(, , , ), Rotation = }, )Math Tower 🧠