I’m currently making a JToH (Juke’s Towers of Hell) Menu for my JToH Fangame. Here is the script:
local Menu = script.Parent.MenuFrame
local SettingsButton = Menu.SettingsButtonFrame.Button
local HelpButton = Menu.HelpButtonFrame.Button
local MenuButton = script.Parent.MenuButtonFrame.TextButton
local BackButton = Menu.ExitButton
local CurrentFrame = “None”
local AVIntensity = script.Parent:WaitForChild(“AVIntensity”)
repeat wait(0.1) until game.Players.LocalPlayer.PlayerScripts:FindFirstChild(“PlayerScripts”):FindFirstChild(“AudioVisualizer”)
BackButton.MouseButton1Click:Connect(function()
if CurrentFrame == “Main” then
CurrentFrame = “None”
Menu.Visible = false
Menu.HelpButtonFrame.Visible = true
Menu.SettingsButtonFrame.Visible = true
elseif CurrentFrame == CurrentFrame == “HelpMenu” or CurrentFrame == “SettingsMenu” then
CurrentFrame = “Main”
Menu.Visible = true
Menu.HelpButtonFrame.Visible = true
Menu.SettingsButtonFrame.Visible = true
Menu.SettingsMenu.Visible = false
Menu.HelpMenu.Visible = false
end
end)
script.Parent.MenuButtonFrame.TextButton.MouseButton1Click:Connect(function()
if CurrentFrame == “Main” then
CurrentFrame = “None”
Menu.Visible = false
elseif CurrentFrame == “None” then
CurrentFrame = “Main”
Menu.Visible = true
end
end)
HelpButton.MouseButton1Click:Connect(function()
CurrentFrame = “HelpMenu”
Menu.HelpButtonFrame.Visible = false
Menu.SettingsButtonFrame.Visible = false
Menu.SettingsMenu.Visible = false
Menu.HelpMenu.Visible = true
end)
SettingsButton.MouseButton1Click:Connect(function()
CurrentFrame = “SettingsMenu”
Menu.HelpButtonFrame.Visible = false
Menu.SettingsButtonFrame.Visible = false
Menu.SettingsMenu.Visible = true
Menu.HelpMenu.Visible = false
end)
Menu.SettingsMenu.AudioVisualizer.AudioVisualizer.MouseButton1Click:Connect(function()
if Menu.SettingsMenu.AudioVisualizer.AudioVisualizer.Text == “Low” then
Menu.SettingsMenu.AudioVisualizer.AudioVisualizer.Text = “Medium”
Menu.SettingsMenu.AudioVisualizer.AudioVisualizer.BackgroundColor3 = Color3.fromRGB(241, 255, 85)
AVIntensity.Value = 200
elseif Menu.SettingsMenu.AudioVisualizer.AudioVisualizer.Text == “Medium” then
Menu.SettingsMenu.AudioVisualizer.AudioVisualizer.Text = “High”
Menu.SettingsMenu.AudioVisualizer.AudioVisualizer.BackgroundColor3 = Color3.fromRGB(255, 59, 33)
AVIntensity.Value = 120
elseif Menu.SettingsMenu.AudioVisualizer.AudioVisualizer.Text == “High” then
Menu.SettingsMenu.AudioVisualizer.AudioVisualizer.Text = “Omg Why”
Menu.SettingsMenu.AudioVisualizer.AudioVisualizer.BackgroundColor3 = Color3.fromRGB(255, 0, 153)
AVIntensity.Value = 40
elseif Menu.SettingsMenu.AudioVisualizer.AudioVisualizer.Text == “Omg Why” then
Menu.SettingsMenu.AudioVisualizer.AudioVisualizer.Text = “Off”
Menu.SettingsMenu.AudioVisualizer.AudioVisualizer.BackgroundColor3 = Color3.fromRGB(35, 39, 50)
AVIntensity.Value = 0
elseif Menu.SettingsMenu.AudioVisualizer.AudioVisualizer.Text == “Off” then
Menu.SettingsMenu.AudioVisualizer.AudioVisualizer.Text = “Low”
Menu.SettingsMenu.AudioVisualizer.AudioVisualizer.BackgroundColor3 = Color3.fromRGB(168, 255, 121)
AVIntensity.Value = 300
end
end)
_G.QuickResetDelay=3
function UpdateQRSpeedButton()
local v=_G.QuickResetDelay
if v~=0 then
Menu.SettingsMenu.QuickResetSpeed.QRSpeed.Text=(tostring(v)…’ Second’…(v==1 and ‘’ or ‘s’))
else
Menu.SettingsMenu.QuickResetSpeed.QRSpeed.Text=‘Instant’
end
end
UpdateQRSpeedButton()
Menu.SettingsMenu.QuickResetSpeed.QRSpeed.MouseButton1Click:Connect(function()
if _G.QuickResetDelay<10 then
_G.QuickResetDelay=_G.QuickResetDelay+1
end
UpdateQRSpeedButton()
end)
Menu.SettingsMenu.QuickResetSpeed.QRSpeed.MouseButton2Click:Connect(function()
if _G.QuickResetDelay>0 then
_G.QuickResetDelay=_G.QuickResetDelay-1
end
UpdateQRSpeedButton()
end)