Run it
Copy the script and paste it into your executor.
player = .Players.LocalPlayer
playerGui = player:()
targetToolName =
targetSoundId =
targetVolume =
targetLoop =
targetDistMin =
targetDistMax =
equipConnection =
backpackConnection =
(str)
str str ==
parts = {}
part .(str, )
trimmed = .(part, )
lower = .(trimmed)
lower == lower ==
.(parts, .huge)
num = (trimmed)
num .(parts, num)
(#parts == ) parts
screenGui = .()
screenGui.Parent = playerGui
screenGui.Name =
screenGui.ResetOnSpawn =
frame = .()
frame.Size = .(, , , )
frame.Position = .(, -, , -)
frame.BackgroundColor3 = .(, , )
frame.BorderSizePixel =
frame.Parent = screenGui
corner = .()
corner.CornerRadius = .(, )
corner.Parent = frame
dragging, dragInput, dragStart, startPos
(input)
delta = input.Position - dragStart
frame.Position = .(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
frame.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
dragging =
dragStart = input.Position
startPos = frame.Position
input.Changed:(()
input.UserInputState == .UserInputState.End dragging =
)
)
frame.InputChanged:((input)
input.UserInputType == .UserInputType.MouseMovement input.UserInputType == .UserInputType.Touch
dragInput = input
)
:().InputChanged:((input)
dragging input == dragInput (input)
)
title = .()
title.Size = .(, , , )
title.BackgroundTransparency =
title.Text =
title.TextColor3 = .(, , )
title.TextSize =
title.Font = .Font.SourceSansBold
title.Parent = frame
toolLabel = .()
toolLabel.Size = .(, -, , )
toolLabel.Position = .(, , , )
toolLabel.BackgroundTransparency =
toolLabel.Text =
toolLabel.TextColor3 = .(, , )
toolLabel.TextSize =
toolLabel.TextXAlignment = .TextXAlignment.Left
toolLabel.Parent = frame
toolTextBox = .()
toolTextBox.Size = .(, -, , )
toolTextBox.Position = .(, , , )
toolTextBox.BackgroundColor3 = .(, , )
toolTextBox.TextColor3 = .(, , )
toolTextBox.PlaceholderText =
toolTextBox.Text = targetToolName
toolTextBox.TextSize =
toolTextBox.Font = .Font.SourceSans
toolTextBox.Parent = frame
toolCorner = .()
toolCorner.CornerRadius = .(, )
toolCorner.Parent = toolTextBox
idLabel = .()
idLabel.Size = .(, -, , )
idLabel.Position = .(, , , )
idLabel.BackgroundTransparency =
idLabel.Text =
idLabel.TextColor3 = .(, , )
idLabel.TextSize =
idLabel.TextXAlignment = .TextXAlignment.Left
idLabel.Parent = frame
idTextBox = .()
idTextBox.Size = .(, -, , )
idTextBox.Position = .(, , , )
idTextBox.BackgroundColor3 = .(, , )
idTextBox.TextColor3 = .(, , )
idTextBox.PlaceholderText =
idTextBox.TextSize =
idTextBox.Font = .Font.SourceSans
idTextBox.Parent = frame
idCorner = .()
idCorner.CornerRadius = .(, )
idCorner.Parent = idTextBox
volLabel = .()
volLabel.Size = .(, -, , )
volLabel.Position = .(, , , )
volLabel.BackgroundTransparency =
volLabel.Text =
volLabel.TextColor3 = .(, , )
volLabel.TextSize =
volLabel.TextXAlignment = .TextXAlignment.Left
volLabel.Parent = frame
volTextBox = .()
volTextBox.Size = .(, -, , )
volTextBox.Position = .(, , , )
volTextBox.BackgroundColor3 = .(, , )
volTextBox.TextColor3 = .(, , )
volTextBox.PlaceholderText =
volTextBox.TextSize =
volTextBox.Font = .Font.SourceSans
volTextBox.Parent = frame
volCorner = .()
volCorner.CornerRadius = .(, )
volCorner.Parent = volTextBox
distLabel = .()
distLabel.Size = .(, -, , )
distLabel.Position = .(, , , )
distLabel.BackgroundTransparency =
distLabel.Text =
distLabel.TextColor3 = .(, , )
distLabel.TextSize =
distLabel.TextXAlignment = .TextXAlignment.Left
distLabel.Parent = frame
distTextBox = .()
distTextBox.Size = .(, -, , )
distTextBox.Position = .(, , , )
distTextBox.BackgroundColor3 = .(, , )
distTextBox.TextColor3 = .(, , )
distTextBox.PlaceholderText =
distTextBox.TextSize =
distTextBox.Font = .Font.SourceSans
distTextBox.Parent = frame
distCorner = .()
distCorner.CornerRadius = .(, )
distCorner.Parent = distTextBox
loopButton = .()
loopButton.Size = .(, -, , )
loopButton.Position = .(, , , )
loopButton.BackgroundColor3 = .(, , )
loopButton.Text =
loopButton.TextColor3 = .(, , )
loopButton.TextSize =
loopButton.Font = .Font.SourceSansBold
loopButton.Parent = frame
loopCorner = .()
loopCorner.CornerRadius = .(, )
loopCorner.Parent = loopButton
loopButton.MouseButton1Click:(()
targetLoop = targetLoop
targetLoop
loopButton.Text =
loopButton.BackgroundColor3 = .(, , )
loopButton.Text =
loopButton.BackgroundColor3 = .(, , )
)
applyButton = .()
applyButton.Size = .(, -, , )
applyButton.Position = .(, , , )
applyButton.BackgroundColor3 = .(, , )
applyButton.Text =
applyButton.TextColor3 = .(, , )
applyButton.TextSize =
applyButton.Font = .Font.SourceSansBold
applyButton.Parent = frame
applyCorner = .()
applyCorner.CornerRadius = .(, )
applyCorner.Parent = applyButton
statusLabel = .()
statusLabel.Size = .(, -, , )
statusLabel.Position = .(, , , -)
statusLabel.BackgroundTransparency =
statusLabel.Text =
statusLabel.TextColor3 = .(, , )
statusLabel.TextSize =
statusLabel.Font = .Font.SourceSans
statusLabel.TextWrapped =
statusLabel.Parent = frame
closeButton = .()
closeButton.Size = .(, , , )
closeButton.Position = .(, -, , )
closeButton.BackgroundColor3 = .(, , )
closeButton.Text =
closeButton.TextColor3 = .(, , )
closeButton.TextSize =
closeButton.Font = .Font.SourceSansBold
closeButton.Parent = frame
closeCorner = .()
closeCorner.CornerRadius = .(, )
closeCorner.Parent = closeButton
closeButton.MouseButton1Click:(()
backpackConnection backpackConnection:()
equipConnection equipConnection:()
screenGui:()
)
(tool, sid, svol, distab)
ts = tool:()
ts ts:()
success, settings = (, ts)
success settings settings.soundTable
_, soundEntry (settings.soundTable)
soundEntry.type == soundEntry.type == soundEntry.type ==
soundEntry.id = sid
soundEntry.volume = svol
soundEntry.dist = distab
()
(()
()
(parent)
_, obj (parent:())
obj:() obj.SoundId:() == (targetSoundId)
obj.Volume = targetVolume
obj.Looped = targetLoop
( .. targetVolume .. .. (targetLoop) .. .. obj:())
player.Character (player.Character)
)
(toolName)
backpack = player.Backpack
char = player.Character
foundTool =
_, t (backpack:())
t.Name == toolName foundTool = t
foundTool char
_, t (char:())
t.Name == toolName foundTool = t
foundTool
ts = foundTool:()
ts ts:()
success, settings = (, ts)
success settings settings.soundTable
_, soundEntry (settings.soundTable)
soundEntry.type == soundEntry.type == soundEntry.type ==
idTextBox.Text = (soundEntry.id )
volTextBox.Text = (soundEntry.volume )
targetSoundId = soundEntry.id targetSoundId
targetVolume = soundEntry.volume
soundEntry.dist (soundEntry.dist) == soundEntry.dist[] ~= soundEntry.dist[] ~=
d1 = soundEntry.dist[]
d2 = soundEntry.dist[]
d1str = (d1 == .huge d1 == /) (d1)
d2str = (d2 == .huge d2 == /) (d2)
distTextBox.Text = d1str .. .. d2str
targetDistMin = d1
targetDistMax = d2
statusLabel.Text = .. toolName ..
statusLabel.TextColor3 = .(, , )
statusLabel.Text = .. toolName ..
statusLabel.TextColor3 = .(, , )
(toolName)
backpackConnection backpackConnection:()
equipConnection equipConnection:()
backpackConnection = player.Backpack.ChildAdded:((child)
child.Name == toolName
(()
ts = child:(, )
ts
distab = {targetDistMin, targetDistMax}
(child, targetSoundId, targetVolume, distab)
equipConnection = child.Equipped:(()
(() () () )
)
( .. toolName .. .. targetSoundId .. .. targetVolume .. .. targetDistMin .. .. targetDistMax .. .. (targetLoop))
(toolName)
)
)
(()
_, child (player.Backpack:())
child.Name == toolName child:()
equipConnection = child.Equipped:(()
(() () () )
)
player.Character
_, child (player.Character:())
child.Name == toolName child:()
()
)
(targetToolName)
(targetToolName)
applyButton.MouseButton1Click:(()
newToolName = toolTextBox.Text ~= toolTextBox.Text targetToolName
newId = (idTextBox.Text)
newVol = (volTextBox.Text)
distParts = (distTextBox.Text)
newId newVol ~= newVol >= distParts
backpack = player.Backpack
char = player.Character
updatedCount =
targetToolName = newToolName
targetSoundId = newId
targetVolume = newVol
targetDistMin, targetDistMax = distParts[], distParts[]
_, t (backpack:())
t.Name == newToolName
(t, newId, newVol, distParts) updatedCount = updatedCount +
char
_, t (char:())
t.Name == newToolName
(t, newId, newVol, distParts) updatedCount = updatedCount +
()
(newToolName)
volWarn = (newVol > )
dminstr = (targetDistMin == .huge) (targetDistMin)
dmaxstr = (targetDistMax == .huge) (targetDistMax)
statusLabel.Text = .. updatedCount .. .. newToolName .. .. newId .. .. newVol .. volWarn .. .. dminstr .. .. dmaxstr .. .. (targetLoop)
statusLabel.TextColor3 = .(, , )
( .. newToolName .. )
( .. newId)
( .. newVol .. volWarn)
( .. targetDistMin .. .. targetDistMax .. )
( .. (targetLoop))
( .. updatedCount .. )
()
(newToolName)
statusLabel.Text =
statusLabel.TextColor3 = .(, , )
)
()