Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local start = tick()
  2. print("Rose Hub process started.")
  3. local VERSION = "3.0.4"
  4. local delete = {"Rose Hub 3.0.0", "Introooo", "ColorPick"}
  5. local tweening = false
  6. local scriptsTabText = ""
  7. local guiTabText = ""
  8. local darkBack = false
  9. local lightBack = true
  10. local tweenService = game:GetService("TweenService")
  11. local tweenSpeed = 0.70
  12. local colorPickerOpen = false
  13. local backColor = Color3.fromRGB(255, 255, 255)
  14. local lightColor = Color3.fromRGB(255, 255, 255)
  15. local darkColor = Color3.fromRGB(150, 150, 150)
  16. local textColor = Color3.fromRGB(255, 255, 255)
  17. local httpService = game:GetService("HttpService")
  18. local savingSettings = false
  19. local mainSettings = nil
  20. local lighting = game:GetService("Lighting")
  21. local workspace = game:GetService("Workspace")
  22. local chat = game:GetService("Chat")
  23.  
  24. --Delete old GUI
  25. function FindTable(Table, Name)
  26.     for i,v in pairs(Table) do
  27.         if v == Name then
  28.             return true
  29.         end end
  30.     return false
  31.  end
  32.  
  33.     if v:IsA("ScreenGui") then
  34.     if FindTable(delete, v.Name) then
  35.         v:Destroy()
  36.     end
  37.  end
  38.  end
  39.  
  40. --Create Frames
  41. local screenGui = game:GetObjects("rbxassetid://3410845588")[1]
  42. screenGui.Parent = game:GetService("CoreGui")
  43. screenGui.Enabled = false
  44. screenGui.Main.Top:FindFirstChildOfClass("TextLabel").Text = "Rose Hub "..VERSION
  45.  
  46. local colourpicker = game:GetObjects("rbxassetid://3444232310")[1]
  47. colourpicker.Parent = game:GetService("CoreGui")
  48. colourpicker.Enabled = false    
  49.  
  50. local intro = game:GetObjects("rbxassetid://3394996507")[1]
  51. intro.Parent = game:GetService("CoreGui")
  52.  
  53. local function round(num)
  54.     return math.floor(num * 10^3 + 0.5) / 10^3
  55. end
  56.  
  57. local function createFrame(Active, BackgroundColor3, BackgroundTransparency, BorderSizePixel, ClipsDescendants, Name, Parent, Position, Size)
  58.     local Frame = Instance.new("Frame")
  59.     Frame.Active = Active
  60.     Frame.BackgroundColor3 = BackgroundColor3
  61.     Frame.BackgroundTransparency = BackgroundTransparency
  62.     Frame.BorderSizePixel = BorderSizePixel
  63.     Frame.ClipsDescendants = ClipsDescendants
  64.     Frame.Name = Name
  65.     Frame.Parent = Parent
  66.     Frame.Position = Position
  67.     Frame.Size = Size
  68.     return Frame
  69. end
  70.  
  71. local function createTextLabel(BackgroundColor3, BackgroundTransparency, BorderSizePixel, Font, Name, Parent, Position, Size, Text, TextColor3, TextSize, TextWrapped, TextXAlignment, TextYAlignment, ZIndex)
  72.     local TextLabel = Instance.new("TextLabel")
  73.     TextLabel.BackgroundColor3 = BackgroundColor3
  74.     TextLabel.BackgroundTransparency = BackgroundTransparency
  75.     TextLabel.BorderSizePixel = BorderSizePixel
  76.     TextLabel.Font = Font
  77.     TextLabel.Name = Name
  78.     TextLabel.Parent = Parent
  79.     TextLabel.Position = Position
  80.     TextLabel.Size = Size
  81.     TextLabel.Text = Text
  82.     TextLabel.TextColor3 = TextColor3
  83.     TextLabel.TextSize = TextSize
  84.     TextLabel.TextWrapped = TextWrapped
  85.     TextLabel.TextXAlignment = TextXAlignment
  86.     TextLabel.TextYAlignment = TextYAlignment
  87.     TextLabel.ZIndex = ZIndex
  88.     return TextLabel
  89. end
  90.  
  91. local function createTextBox(BackgroundColor3, BackgroundTransparency, BorderSizePixel, Font, Name, Parent, PlaceholderText, Position, Size, Text, TextColor3, TextSize, TextWrapped, TextXAlignment, TextYAlignment)
  92.     local TextBox = Instance.new("TextBox")
  93.     TextBox.BackgroundColor3 = BackgroundColor3
  94.     TextBox.BackgroundTransparency = BackgroundTransparency
  95.     TextBox.BorderSizePixel = BorderSizePixel
  96.     TextBox.Font = Font
  97.     TextBox.Name = Name
  98.     TextBox.Parent = Parent
  99.     TextBox.PlaceholderText = PlaceholderText
  100.     TextBox.Position = Position
  101.     TextBox.Size = Size
  102.     TextBox.Text = Text
  103.     TextBox.TextColor3 = TextColor3
  104.     TextBox.TextSize = TextSize
  105.     TextBox.TextWrapped = TextWrapped
  106.     TextBox.TextXAlignment = TextXAlignment
  107.     TextBox.TextYAlignment = TextYAlignment
  108.     return TextBox
  109. end
  110.  
  111. local function createTextButton(BackgroundColor3, BackgroundTransparency, BorderSizePixel, Font, Name, Parent, Position, Size, Text, TextColor3, TextSize, ZIndex, func)
  112.     local TextButton = Instance.new("TextButton")
  113.     TextButton.BackgroundColor3 = BackgroundColor3
  114.     TextButton.BackgroundTransparency = BackgroundTransparency
  115.     TextButton.BorderSizePixel = BorderSizePixel
  116.     TextButton.Font = Font
  117.     TextButton.Name = Name
  118.     TextButton.Parent = Parent
  119.     TextButton.Position = Position
  120.     TextButton.Size = Size
  121.     TextButton.Text = Text
  122.     TextButton.TextColor3 = TextColor3
  123.     TextButton.TextSize = TextSize
  124.     TextButton.ZIndex = ZIndex
  125.     TextButton.MouseButton1Up:Connect(func)
  126.     return TextButton
  127. end
  128.  
  129. local function createImageLabel(BackgroundTransparency, Image, Name, Parent, Position, Selectable, Size, ZIndex)
  130.     local ImageLabel = Instance.new("ImageLabel")
  131.     ImageLabel.BackgroundTransparency = BackgroundTransparency
  132.     ImageLabel.Image = Image
  133.     ImageLabel.Name = Name
  134.     ImageLabel.Parent = Parent
  135.     ImageLabel.Position = Position
  136.     ImageLabel.Selectable = Selectable
  137.     ImageLabel.Size = Size
  138.     ImageLabel.ZIndex = ZIndex
  139.     return ImageLabel
  140. end
  141.  
  142. local function createScrollingFrame(BackgroundColor3, BackgroundTransparency, BorderSizePixel, BottomImage, CanvasSize, MidImage, Name, Parent, Position, Rotation, ScrollBarThickness, Selectable, Size, TopImage, Visible)
  143.     local ScrollingFrame = Instance.new("ScrollingFrame")
  144.     ScrollingFrame.BackgroundColor3 = BackgroundColor3
  145.     ScrollingFrame.BackgroundTransparency = BackgroundTransparency
  146.     ScrollingFrame.BorderSizePixel = BorderSizePixel
  147.     ScrollingFrame.BottomImage = BottomImage
  148.     ScrollingFrame.CanvasSize = CanvasSize
  149.     ScrollingFrame.MidImage = MidImage
  150.     ScrollingFrame.Name = Name
  151.     ScrollingFrame.Parent = Parent
  152.     ScrollingFrame.Position = Position
  153.     ScrollingFrame.Rotation = Rotation
  154.     ScrollingFrame.ScrollBarThickness = ScrollBarThickness
  155.     ScrollingFrame.Selectable = Selectable
  156.     ScrollingFrame.Size = Size
  157.     ScrollingFrame.TopImage = TopImage
  158.     ScrollingFrame.Visible = Visible
  159.     return ScrollingFrame
  160. end
  161.  
  162. local defaultSettings = {
  163.     ["BackgroundColorR"] = 59,
  164.     ["BackgroundColorG"] = 59,
  165.     ["BackgroundColorB"] = 59,
  166.     ["PickerColorR"] = 59,
  167.     ["PickerColorG"] = 59,
  168.     ["PickerColorB"] = 59,
  169.     ["ChangePickerBackground"] = true,
  170.     ["Transparency"] = 0.7,
  171.     ["RainbowOn"] = false,
  172.     ["RainbowSpeed"] = 75,
  173.  }
  174.  
  175.  local function round(num)
  176.     return math.floor(num *10^3 + 0.5) / 10^3
  177.  end
  178.  
  179.  if writefile and readfile and pcall(function() readfile("RoseHubSettings.txt") end) then
  180.     local file = readfile("RoseHubSettings.txt")
  181.     local continue = true
  182.     local write = false
  183.     if pcall(function() httpService:JSONDecode(file) end) then
  184.         file = httpService:JSONDecode(readfile("RoseHubSettings.txt"))
  185.         mainSettings = file
  186.     else
  187.         mainSettings = defaultSettings
  188.         writefile("RoseHubSettings.txt", httpService:JSONEncode(defaultSettings))
  189.         warn("Settings file corrupted, creating new.")
  190.         continue = false
  191.     end
  192.     if continue then
  193.         for setting,value in pairs(defaultSettings) do
  194.             if file[setting] == nil then
  195.                 writefile("RoseHubSettings.txt", httpService:JSONEncode(defaultSettings))
  196.                 warn(setting.." is missing, setting to default.")
  197.                 file[setting] = defaultSettings[setting]
  198.                 write = true
  199.             elseif file[setting] ~= nil then
  200.                 if type(file[setting]) ~= type(defaultSettings[setting]) then
  201.                     warn(setting.." is invalid, overwriting.")
  202.                     write = true
  203.                     file[setting] = defaultSettings[setting]
  204.                 end
  205.             end
  206.         end
  207.         if write == true then
  208.             warn("Fixing settings file.")
  209.             mainSettings = file
  210.             writefile("RoseHubSettings.txt", httpService:JSONEncode(mainSettings))
  211.             write = false
  212.         end
  213.     end
  214.  else
  215.     mainSettings = defaultSettings
  216.     if writefile then
  217.         warn("Rose Hub settings missing, creating new.")
  218.         writefile("RoseHubSettings.txt", httpService:JSONEncode(defaultSettings))
  219.     end
  220.  end
  221.  
  222.  local savedColor = Color3.fromRGB(mainSettings.BackgroundColorR, mainSettings.BackgroundColorG, mainSettings.BackgroundColorB)
  223.  local mainTransparency = mainSettings.Transparency
  224.  local enableRainbow = mainSettings.RainbowOn
  225.  local rainbowCount = mainSettings.RainbowSpeed
  226.  local mainTrans = mainSettings.Transparency
  227.  local changeColorPickerBack = mainSettings.ChangePickerBackground
  228.  local colorPickerBack = Color3.fromRGB(mainSettings.PickerColorR, mainSettings.PickerColorG, mainSettings.PickerColorB)
  229.  
  230.  local function saveSetting(backColor, pickerColor, changeBack, tranparency, rainbowOn, rainbowSpeed)
  231.     local settingsTab = {
  232.         ["BackgroundColorR"] = round(backColor.r*255),
  233.         ["BackgroundColorG"] = round(backColor.g*255),
  234.         ["BackgroundColorB"] = round(backColor.b*255),
  235.         ["PickerColorR"] = round(pickerColor.r*255),
  236.         ["PickerColorG"] = round(pickerColor.g*255),
  237.         ["PickerColorB"] = round(pickerColor.b*255),
  238.         ["ChangePickerBackground"] = changeBack,
  239.         ["Transparency"] = round(tranparency),
  240.         ["RainbowOn"] = rainbowOn,
  241.         ["RainbowSpeed"] = rainbowSpeed,
  242.     }
  243.     writefile("RoseHubSettings.txt", httpService:JSONEncode(settingsTab))
  244.  end
  245.  
  246.  if darkBack then
  247.     backColor = Color3.fromRGB(150, 150, 150)
  248.  end
  249.  
  250. local scripttabList = {
  251.     {"VSimFucker", "dtHywXGM", 1},
  252.     {"Arsenal Aim", "3ZWRrB9t", 1},
  253.     {"Counter Blox GUI", "xc9gy1Hi", 1},
  254.     {"Arsenal Haxx (Syn X)", "2hnkK6Th", 1},
  255.     {"Jailbreak TPs", "re6cmXaJ", 1},
  256.     {"Arsenal Kill All", "EJEqCS8k", 1},
  257.     {"FE Kill", "gL8aeXke", 1},
  258. }
  259.  
  260. local modulestabList = {
  261.     {"Work In progress", 0, 2}
  262.     --{"Modules GUI", 03107712466, 2},
  263. }
  264.  
  265. local guistabList = {
  266.     {"c00lgui", "Rz2EFsLU", 1},
  267.     {"Topkek 4.0", "d0CJRrcg", 1},
  268.     {"Topkek 3.0", "SikGfE9u", 1},
  269.     {"Ro-Xploit 4.0", 175137115, 2},
  270.     {"Ro-Xploit 5.0", 288646117, 2},
  271.     {"Ro-Xploit 6.0", 364364477, 2},
  272.     {"Dex 2.0", 492005721, 2},
  273.     {"Dex 3.0", 418957341, 2},
  274.     {"Clown Van", "a5UZuuiT", 1},
  275.     {"Hell Elevator GUI", "8NYWpf2T", 1},
  276.     {"Chams / Aimlock", "Yi7fzELj", 1},
  277.     {"YourMom GUI", "289110135", 2},
  278.     {"Pepe GUI", "277881926", 2},
  279.     {"Brack Hub", "PT9Gf7d5", 1},
  280.     {"Vesprin FE GUI", "1231351616", 2},
  281.     {"Music GUI", "U352cdsv", 1},
  282.     {"Dark Dex 2.0", "YzdzxuRX", 1},
  283.     {"GabX", "FTf9uem2", 1},
  284.     {"Fathom Hub", "UmhaEvTT", 1},
  285.  }
  286.  
  287.  local mapstabList = {
  288.     {"Clockwork Arena", "EvnXCXhP", 1},
  289.     {"Town Map", 1345094164, 2},
  290.     {"Cave Island", "t29C42rm", 1},
  291.     {"Nature Map", "gmF4Kq5B", 1},
  292.     {"Nazi Map", "az8sLCLT", 1},
  293.     {"Ritual Room", "hYCTFiAC", 1},
  294.     {"Stripper", "jztW5Vuy", 1},
  295.     {"Witch Map", "R9epW292", 1},
  296.     {"Rainbow Tunnel", "8bznLitn", 1},
  297.     {"Scary Map", "fNw46f74", 1},
  298.     {"Nazi Camp", "KJNk4STm", 1},
  299.     {"Night Club", 1281063730, 2},
  300.     {"Da Club", "6UyLJheX", 1},
  301.  }
  302.  
  303.  local lists = {
  304.     {scripttabList, "Scripts"},
  305.     {modulestabList, "Modules"},
  306.     {guistabList, "GUIs"},
  307.     {mapstabList, "Maps"},
  308.  }
  309.  
  310.  local tabs = {
  311.     "Home",
  312.     "Scripts",
  313.     "Modules",
  314.     "Purchased Scripts",
  315.     "GUIs",
  316.     "Executor",
  317.     "Server Side",
  318.     "Maps",
  319.     "Audios",
  320.     "Economy",
  321.     "Settings",
  322.     "Credits",
  323. }
  324.  
  325. function CreateInstance(cls,props)
  326.     local inst = Instance.new(cls)
  327.     for i,v in pairs(props) do
  328.         inst[i] = v
  329.     end
  330.     return inst
  331. end
  332.  
  333. --Copy Discord Invite
  334. screenGui.Main.Top.Important.HomeTab.Discord.MouseButton1Up:Connect(function()
  335. local copy = true
  336. if pcall(function() Synapse:Copy("http://discord.io/rosehub") end) then
  337.    
  338. else
  339.     local copy2 = setclipboard or Clipboard.set
  340.     copy2("http://discord.io/rosehub")
  341.  
  342. end
  343.  
  344. screenGui.Main.Top.Important.HomeTab.Discord.Text = "Copied!"
  345. wait(2)
  346. screenGui.Main.Top.Important.HomeTab.Discord.Text = "Discord Server:\nhttps://discord.io/rosehub"
  347. end)
  348.  
  349. --[[All Script Tabs,
  350. Sort lists and insert them--]]
  351. for _,list in pairs(lists) do
  352.     local toSort = {}
  353.     local sortedList = {}
  354.     local pos = 0
  355.    
  356.     for _,v in pairs(list[1]) do
  357.         table.insert(toSort, v[1])
  358.     end
  359.    
  360.     table.sort(toSort)
  361.    
  362.     for i,name in pairs(toSort) do
  363.         for i,actualTable in pairs(list[1]) do
  364.             if name == actualTable[1] then
  365.                 table.insert(sortedList, {actualTable[1], actualTable[2], actualTable[3]})
  366.             end
  367.         end
  368.     end
  369.    
  370.     --Function to create the buttons
  371.     local function createButons(text)
  372.         pos = 5
  373.         for _,button in pairs(sortedList) do
  374.             if text == "" or string.match(string.lower(button[1]), string.lower(text)) then
  375.                 createTextButton(backColor, mainTrans, 0, Enum.Font.SourceSans, button[1], screenGui.Main.Top.Important[list[2].."Tab"].Holder, UDim2.new(0, 5, 0, pos), UDim2.new(0, 181, 0, 20), button[1], textColor, 14, 1, function()
  376.                     if button[3] == 1 then
  377.                         loadstring(game:HttpGet("https://pastebin.com/raw/"..button[2], true))()
  378.                     elseif button[3] == 2 then
  379.                         loadstring(game:GetObjects("rbxassetid://"..button[2])[1].Source)()
  380.                     end
  381.                 end)
  382.                 pos = pos + 23
  383.             end
  384.         end
  385.     end
  386.    
  387.     --Remove Buttons and create new on search
  388.     local function removeButtons()
  389.         for _,button in pairs(screenGui.Main.Top.Important[list[2].."Tab"].Holder:GetChildren()) do
  390.             button:Destroy()
  391.         end
  392.     end
  393.    
  394.     --Search Function
  395.     screenGui.Main.Top.Important[list[2].."Tab"].Search.PlaceholderColor3 = textColor
  396.     screenGui.Main.Top.Important[list[2].."Tab"].Search.PlaceholderText = "Search "..list[2]
  397.     local function searchBar(chosenList)   
  398.         local search = screenGui.Main.Top.Important[chosenList.."Tab"].Search
  399.         local currentSearch = ""
  400.         search.Changed:connect(function(property)
  401.             if property == "Text" then
  402.                 if search.Text ~= "" and search.Text ~= currentSearch then
  403.                     currentSearch = search.Text
  404.                     removeButtons()
  405.                     createButons(search.Text)
  406.                 elseif search.Text == "" and currentSearch.Text ~= "" then
  407.                     currentSearch = search.Text
  408.                     removeButtons()
  409.                     createButons("")
  410.                 end
  411.             end
  412.         end)
  413.     end
  414.    
  415.     searchBar(list[2])
  416.    
  417.     --Create Buttons with no search
  418.     createButons("")
  419.    
  420.     screenGui.Main.Top.Important[list[2].."Tab"].Holder.CanvasSize = UDim2.new(1, 0, 0, pos + 2)
  421. end
  422.  
  423. --Tab Changer
  424. local underline = screenGui.Main.Top.SelectedTab
  425. local tabs = screenGui.Main.Top.Tabs:GetChildren()
  426. local LastTab = tabs[1]
  427. local tweening = false
  428. local OrigSize = underline.Size
  429. local tabPos = 0
  430. local tweenPos = tabPos + 20
  431. local oldTab = screenGui.Main.Top.Tabs.Home
  432.  
  433. for _,tab in next, tabs do
  434.     if tab:IsA("TextButton") then
  435.         local tweenPos = tabPos + 22
  436.         tab.MouseButton1Up:Connect(function()
  437.             if tweening == false and tab ~= oldTab then
  438.                 tweening = true
  439.                 underline:TweenSizeAndPosition(UDim2.new(0, 2, 0, 0), UDim2.new(0.5, 0, underline.Position.Y.Scale, underline.Position.Y.Offset), "Out", "Quad", tweenSpeed)
  440.                 local newUnderline = createFrame(false, backColor, 0, 0, false, "Frame", screenGui.Main.Top.Tabs, UDim2.new(0.5, 0, 1, -3), UDim2.new(0, 0, 0, 2))
  441.                 newUnderline:TweenSize(UDim2.new(0, tab.TextBounds.X, 0, 2), --[[UDim2.new(0, 55 - tab.TextBounds.X/2, 0, tweenPos),]] "Out", "Quad", tweenSpeed)
  442.                 screenGui.Main.Top.Important[tostring(oldTab).."Tab"]:TweenPosition(UDim2.new(1, 0, 0, 0), "Out", "Quad", tweenSpeed)
  443.                 screenGui.Main.Top.Important[tostring(tab).."Tab"]:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Quad", tweenSpeed)
  444.                 screenGui.Main.Top.CurrentTab:TweenSize(UDim2.new(0, 0, 0, 31), "Out", "Quad", tweenSpeed/2)
  445.                 newUnderline.LayoutOrder = tab.LayoutOrder
  446.                 newUnderline.AnchorPoint = Vector2.new(0.5, 1)
  447.                 newUnderline.Parent = tab
  448.                 wait(tweenSpeed/2)
  449.                 screenGui.Main.Top.CurrentTab.Label.Text = tab.Name
  450.                 screenGui.Main.Top.CurrentTab:TweenSize(UDim2.new(0, 109, 0, 31), "Out", "Quad", tweenSpeed/2)
  451.                 wait(tweenSpeed/2)
  452.                 screenGui.Main.Top.Important[tostring(oldTab).."Tab"].Position = UDim2.new(-1, 0, 0, 0)
  453.                 underline:Destroy()
  454.                 underline = newUnderline
  455.                 oldTab = tab
  456.                 tweening = false
  457.             end
  458.         end)
  459.         tabPos = tabPos + 26
  460.     end
  461. end
  462.  
  463. --Server Side
  464. screenGui.Serverside.Active = true
  465. screenGui.Serverside.Draggable = true
  466.  
  467. --Execute
  468. screenGui.Main.Top.Important.ServerSideTab.ExecuteButton.MouseButton1Up:Connect(function()
  469.     local e = game:GetService("JointsService")
  470.     local rem = e.RemoteFunction
  471.     assert(rem, "Remote is missing.")
  472.     rem:InvokeServer(true, screenGui.Main.Top.Important.ServerSideTab.KeyInput.Text, screenGui.Main.Top.Important.ServerSideTab.ScriptHolder.ScriptInput.Text, {})
  473. end)
  474.  
  475. --Clear Serverside Input
  476. screenGui.Main.Top.Important.ServerSideTab.ClearButton.MouseButton1Up:Connect(function()
  477.     screenGui.Main.Top.Important.ServerSideTab.ScriptHolder.ScriptInput.Text = ""
  478. end)
  479.  
  480. -- Temp Toggle Script Editor
  481. screenGui.Main.Top.Important.ServerSideTab.settings.MouseButton1Up:Connect(function()
  482.     screenGui.Serverside.Visible = true
  483. end)
  484.  
  485. --Execute In Script Editor
  486. screenGui.Serverside.execute.MouseButton1Up:Connect(function()
  487.     local e = game:GetService("JointsService")
  488.     local rem = e.RemoteFunction
  489.     assert(rem, "Remote is missing.")
  490.     rem:InvokeServer(true, screenGui.Main.Top.Important.ServerSideTab.KeyInput.Text, screenGui.Serverside.scriptinput.Text, {})
  491. end)
  492.  
  493. --Clear In Script Editor
  494. screenGui.Serverside.clear.MouseButton1Up:Connect(function()
  495.     screenGui.Serverside.scriptinput.Text = ""
  496. end)
  497.  
  498. --Close Script Editor
  499. screenGui.Serverside.close.MouseButton1Up:Connect(function()
  500.     screenGui.Serverside.Visible = false
  501. end)
  502.  
  503.  
  504. --Executor
  505. --Execute Button
  506. screenGui.Main.Top.Important.ExecutorTab.execute.MouseButton1Up:Connect(function()
  507.     loadstring(screenGui.Main.Top.Important.ExecutorTab.Holder.input.Text)
  508. end)
  509.  
  510. --Clear Button
  511. screenGui.Main.Top.Important.ExecutorTab.clear.MouseButton1Up:Connect(function()
  512.     screenGui.Main.Top.Important.ExecutorTab.Holder.input.Text = ""
  513. end)
  514.  
  515. --Audios Tab
  516. local volume = 1
  517. local audioPage = 1
  518.  
  519. local function stopSounds()
  520.     for _,obj in pairs(lighting:GetChildren()) do
  521.         if obj:IsA("Sound") then
  522.             obj:Destroy()
  523.         end
  524.     end
  525.    
  526.     for i,v in pairs(chat:GetChildren()) do
  527.         if v:IsA("Sound") then
  528.             v:Destroy()
  529.         end
  530.     end
  531.  
  532.     for _,obj in pairs(workspace:GetChildren()) do
  533.         if obj:IsA("Sound") then
  534.             obj:Destroy()
  535.         end
  536.     end
  537. end
  538.  
  539. local function playSong(id)
  540.     stopSounds()
  541.     local sound = Instance.new("Sound")
  542.     sound.Parent = lighting
  543.     sound.SoundId = "rbxassetid://"..tostring(id)
  544.     sound.Volume = volume
  545.     sound.Name = "RoseHubSound"
  546.     sound.Looped = true
  547.     sound.Playing = true
  548. end
  549.  
  550. local audioHolder = screenGui.Main.Top.Important.AudiosTab.Holder
  551. local audioInputBox = screenGui.Main.Top.Important.AudiosTab.audioinput
  552. audioInputBox.PlaceholderColor3 = textColor
  553.  
  554. screenGui.Main.Top.Important.AudiosTab.Stop.MouseButton1Up:Connect(function()
  555.     stopSounds()
  556. end)
  557.  
  558. local volumeBox = screenGui.Main.Top.Important.AudiosTab.VolumeBox
  559.  
  560. screenGui.Main.Top.Important.AudiosTab.Set.MouseButton1Up:Connect(function()
  561.     if tonumber(volumeBox.Text) then
  562.         volume =  tonumber(volumeBox.Text)
  563.         pcall(function()
  564.             lighting.RoseHubSound.Volume = volume
  565.         end)
  566.     end
  567. end)
  568.  
  569. local currentSong = screenGui.Main.Top.Important.AudiosTab.CurrentSong
  570.  
  571. screenGui.Main.Top.Important.AudiosTab.PreviousPage.MouseButton1Up:Connect(function()
  572.     if audioPage > 1 then
  573.         audioPage = audioPage - 1
  574.     createAudios(audioPage)
  575.     end
  576. end)
  577.  
  578. screenGui.Main.Top.Important.AudiosTab.NextPage.MouseButton1Up:Connect(function()
  579.     audioPage = audioPage + 1
  580.     createAudios(audioPage)
  581. end)
  582.  
  583. function createAudios(audioPage)
  584.     local audioKeyword = audioInputBox.Text
  585.     --local json = "https://search.roblox.com/catalog/json?Category=Audio&Keyword="..audioKeyword.."&ResultsPerPage=25&PageNumber="..tostring(audioPage)
  586.     local json = "https://search.roblox.com/catalog/contents?CatalogContext=&Keyword="..audioKeyword.."&SortAggregation=5&LegendExpanded=true&Category=9&ResultsPerPage=25&PageNumber="..tostring(audioPage)
  587.     local gotJson = game:HttpGet(json, true)
  588.     local rawResult = httpService:JSONDecode(gotJson)
  589.     local pos = 5
  590.     for _,button in pairs(audioHolder:GetChildren()) do
  591.         button:Destroy()
  592.     end
  593.     for _,tab in pairs(rawResult) do
  594.         local scale = false
  595.         local button = createTextButton(backColor, mainTrans, 0, Enum.Font.SourceSans, tab.Name, screenGui.Top.Important.AudiosTab.Holder, UDim2.new(0, 5, 0, pos), UDim2.new(0, 181, 0, 20), tab.Name, textColor, 14, 1, function()
  596.             playSong(tab.AssetId)
  597.             currentSong.Text = tab.Name
  598.             currentSong.TextScaled = scale
  599.         end)
  600.         if button.TextBounds.X > button.Size.X.Offset then
  601.             button.TextScaled = true
  602.             scale = true
  603.         end
  604.         pos = pos + 23
  605.     end
  606.     audioHolder.CanvasSize = UDim2.new(0, 0, 0, pos + 2)
  607. end
  608.  
  609. screenGui.Main.Top.Important.AudiosTab.search.MouseButton1Up:Connect(function()
  610.     createAudios(1)
  611. end)
  612.  
  613. --Remove pcall
  614. pcall(function()
  615.     createAudios(1)
  616. end)
  617.  
  618. --[[local ColorPicker = {}
  619.  
  620. ColorPicker.new = function()
  621.     pickerCreated = true
  622.     local newMt = setmetatable({},{})
  623.    
  624.     local rootGui = colourpicker
  625.     rootGui.Parent = coreGui
  626.     rootGui.Enabled = true
  627.     pickerGui = rootGui.ColorPicker
  628.     local pickerTopBar = pickerGui.TopBar
  629.     backDrop = pickerGui.Backdrop
  630.     local pickerFrame = pickerGui.Backdrop.Content
  631.     local colorSpace = pickerFrame.ColorSpaceFrame.ColorSpace
  632.     local colorStrip = pickerFrame.ColorStrip
  633.     local previewFrame = pickerFrame.Preview
  634.     local basicColorsFrame = pickerFrame.BasicColors
  635.     local customColorsFrame = pickerFrame.CustomColors
  636.     local okButton = pickerFrame.Ok
  637.     local cancelButton = pickerFrame.Cancel
  638.     local closeButton = pickerTopBar.Close
  639.     local colorScope = colorSpace.Scope
  640.     local colorArrow = pickerFrame.ArrowFrame.Arrow
  641.     local hueInput = pickerFrame.Hue.Input
  642.     local satInput = pickerFrame.Sat.Input
  643.     local valInput = pickerFrame.Val.Input
  644.     local redInput = pickerFrame.Red.Input
  645.     local greenInput = pickerFrame.Green.Input
  646.     local blueInput = pickerFrame.Blue.Input
  647.     local user = game:GetService("UserInputService")
  648.     local mouse = game:GetService("Players").LocalPlayer:GetMouse()
  649.    
  650.     local hue,sat,val = Color3.toHSV(savedColor)
  651.     local red,green,blue = savedColor.r, savedColor.g, savedColor.b
  652.     local chosenColor = savedColor
  653.     local basicColors = {Color3.new(0,0,0),Color3.new(0.66666668653488,0,0),Color3.new(0,0.33333334326744,0),Color3.new(0.66666668653488,0.33333334326744,0),Color3.new(0,0.66666668653488,0),Color3.new(0.66666668653488,0.66666668653488,0),Color3.new(0,1,0),Color3.new(0.66666668653488,1,0),Color3.new(0,0,0.49803924560547),Color3.new(0.66666668653488,0,0.49803924560547),Color3.new(0,0.33333334326744,0.49803924560547),Color3.new(0.66666668653488,0.33333334326744,0.49803924560547),Color3.new(0,0.66666668653488,0.49803924560547),Color3.new(0.66666668653488,0.66666668653488,0.49803924560547),Color3.new(0,1,0.49803924560547),Color3.new(0.66666668653488,1,0.49803924560547),Color3.new(0,0,1),Color3.new(0.66666668653488,0,1),Color3.new(0,0.33333334326744,1),Color3.new(0.66666668653488,0.33333334326744,1),Color3.new(0,0.66666668653488,1),Color3.new(0.66666668653488,0.66666668653488,1),Color3.new(0,1,1),Color3.new(0.66666668653488,1,1),Color3.new(0.33333334326744,0,0),Color3.new(1,0,0),Color3.new(0.33333334326744,0.33333334326744,0),Color3.new(1,0.33333334326744,0),Color3.new(0.33333334326744,0.66666668653488,0),Color3.new(1,0.66666668653488,0),Color3.new(0.33333334326744,1,0),Color3.new(1,1,0),Color3.new(0.33333334326744,0,0.49803924560547),Color3.new(1,0,0.49803924560547),Color3.new(0.33333334326744,0.33333334326744,0.49803924560547),Color3.new(1,0.33333334326744,0.49803924560547),Color3.new(0.33333334326744,0.66666668653488,0.49803924560547),Color3.new(1,0.66666668653488,0.49803924560547),Color3.new(0.33333334326744,1,0.49803924560547),Color3.new(1,1,0.49803924560547),Color3.new(0.33333334326744,0,1),Color3.new(1,0,1),Color3.new(0.33333334326744,0.33333334326744,1),Color3.new(1,0.33333334326744,1),Color3.new(0.33333334326744,0.66666668653488,1),Color3.new(1,0.66666668653488,1),Color3.new(0.33333334326744,1,1),Color3.new(1,1,1)}
  654.     local customColors = {}
  655.     local function updateColor(noupdate)
  656.         local relativeX,relativeY,relativeStripY = 219 - hue*219, 199 - sat*199, 199 - val*199
  657.         local hsvColor = Color3.fromHSV(hue,sat,val)
  658.  
  659.         if noupdate == 2 or not noupdate then
  660.             hueInput.Text = tostring(math.ceil(359*hue))
  661.             satInput.Text = tostring(math.ceil(255*sat))
  662.             valInput.Text = tostring(math.floor(255*val))
  663.         end
  664.         if noupdate == 1 or not noupdate then
  665.             redInput.Text = tostring(math.floor(255*red))
  666.             greenInput.Text = tostring(math.floor(255*green))
  667.             blueInput.Text = tostring(math.floor(255*blue))
  668.         end
  669.  
  670.         chosenColor = Color3.new(red,green,blue)
  671.  
  672.         colorScope.Position = UDim2.new(0,relativeX-9,0,relativeY-9)
  673.         colorStrip.ImageColor3 = Color3.fromHSV(hue,sat,1)
  674.         colorArrow.Position = UDim2.new(0,-2,0,relativeStripY-4)
  675.         previewFrame.BackgroundColor3 = chosenColor
  676.  
  677.         updateBack(chosenColor, backDrop)
  678.        
  679.         newMt.Color = chosenColor
  680.         if newMt.Changed then
  681.             newMt:Changed(chosenColor)
  682.         end
  683.     end
  684.     local function colorSpaceInput()
  685.         local relativeX = mouse.X - colorSpace.AbsolutePosition.X
  686.         local relativeY = mouse.Y - colorSpace.AbsolutePosition.Y
  687.            
  688.         if relativeX < 0 then relativeX = 0 elseif relativeX > 219 then relativeX = 219 end
  689.         if relativeY < 0 then relativeY = 0 elseif relativeY > 199 then relativeY = 199 end
  690.            
  691.         hue = (219 - relativeX)/219
  692.         sat = (199 - relativeY)/199
  693.  
  694.         local hsvColor = Color3.fromHSV(hue,sat,val)
  695.         red,green,blue = hsvColor.r,hsvColor.g,hsvColor.b
  696.  
  697.         updateColor()
  698.     end
  699.     local function colorStripInput()
  700.         local relativeY = mouse.Y - colorStrip.AbsolutePosition.Y
  701.  
  702.         if relativeY < 0 then relativeY = 0 elseif relativeY > 199 then relativeY = 199 end
  703.  
  704.         val = (199 - relativeY)/199
  705.  
  706.         local hsvColor = Color3.fromHSV(hue,sat,val)
  707.         red,green,blue = hsvColor.r,hsvColor.g,hsvColor.b
  708.  
  709.         updateColor()
  710.     end
  711.     local function hookButtons(frame,func)
  712.         frame.ArrowFrame.Up.InputBegan:Connect(function(input)
  713.             if input.UserInputType == Enum.UserInputType.MouseMovement then
  714.                 frame.ArrowFrame.Up.BackgroundTransparency = 0.5
  715.             elseif input.UserInputType == Enum.UserInputType.MouseButton1 then
  716.                 local releaseEvent,runEvent
  717.        
  718.                 local startTime = tick()
  719.                 local pressing = true
  720.                 local startNum = tonumber(frame.Text)
  721.        
  722.                 if not startNum then return end
  723.        
  724.                 releaseEvent = user.InputEnded:Connect(function(input)
  725.                     if input.UserInputType ~= Enum.UserInputType.MouseButton1 then return end
  726.                     releaseEvent:Disconnect()
  727.                     pressing = false
  728.                 end)
  729.        
  730.                 startNum = startNum + 1
  731.                 func(startNum)
  732.                 while pressing do
  733.                     if tick()-startTime > 0.3 then
  734.                         startNum = startNum + 1
  735.                         func(startNum)
  736.                     end
  737.                     wait(0.1)
  738.                 end
  739.             end
  740.         end)
  741.  
  742.         frame.ArrowFrame.Up.InputEnded:Connect(function(input)
  743.             if input.UserInputType == Enum.UserInputType.MouseMovement then
  744.                 frame.ArrowFrame.Up.BackgroundTransparency = 1
  745.             end
  746.         end)
  747.  
  748.         frame.ArrowFrame.Down.InputBegan:Connect(function(input)
  749.             if input.UserInputType == Enum.UserInputType.MouseMovement then
  750.                 frame.ArrowFrame.Down.BackgroundTransparency = 0.5
  751.             elseif input.UserInputType == Enum.UserInputType.MouseButton1 then
  752.                 local releaseEvent,runEvent
  753.        
  754.                 local startTime = tick()
  755.                 local pressing = true
  756.                 local startNum = tonumber(frame.Text)
  757.        
  758.                 if not startNum then return end
  759.        
  760.                 releaseEvent = user.InputEnded:Connect(function(input)
  761.                     if input.UserInputType ~= Enum.UserInputType.MouseButton1 then return end
  762.                     releaseEvent:Disconnect()
  763.                     pressing = false
  764.                 end)
  765.        
  766.                 startNum = startNum - 1
  767.                 func(startNum)
  768.                 while pressing do
  769.                     if tick()-startTime > 0.3 then
  770.                         startNum = startNum - 1
  771.                         func(startNum)
  772.                     end
  773.                     wait(0.1)
  774.                 end
  775.             end
  776.         end)
  777.  
  778.         frame.ArrowFrame.Down.InputEnded:Connect(function(input)
  779.             if input.UserInputType == Enum.UserInputType.MouseMovement then
  780.                 frame.ArrowFrame.Down.BackgroundTransparency = 1
  781.             end
  782.         end)
  783.     end
  784.     colorSpace.InputBegan:Connect(function(input)
  785.         if input.UserInputType == Enum.UserInputType.MouseButton1 then
  786.             local releaseEvent,mouseEvent
  787.    
  788.             releaseEvent = user.InputEnded:Connect(function(input)
  789.                 if input.UserInputType ~= Enum.UserInputType.MouseButton1 then return end
  790.                 releaseEvent:Disconnect()
  791.                 mouseEvent:Disconnect()
  792.             end)
  793.    
  794.             mouseEvent = user.InputChanged:Connect(function(input)
  795.                 if input.UserInputType == Enum.UserInputType.MouseMovement then
  796.                     colorSpaceInput()
  797.                 end
  798.             end)
  799.    
  800.             colorSpaceInput()
  801.         end
  802.     end)
  803.     colorStrip.InputBegan:Connect(function(input)
  804.         if input.UserInputType == Enum.UserInputType.MouseButton1 then
  805.             local releaseEvent,mouseEvent
  806.    
  807.             releaseEvent = user.InputEnded:Connect(function(input)
  808.                 if input.UserInputType ~= Enum.UserInputType.MouseButton1 then return end
  809.                 releaseEvent:Disconnect()
  810.                 mouseEvent:Disconnect()
  811.             end)
  812.    
  813.             mouseEvent = user.InputChanged:Connect(function(input)
  814.                 if input.UserInputType == Enum.UserInputType.MouseMovement then
  815.                     colorStripInput()
  816.                 end
  817.             end)
  818.    
  819.             colorStripInput()
  820.         end
  821.     end)
  822.     local function updateHue(str)
  823.         local num = tonumber(str)
  824.         if num then
  825.             hue = math.clamp(math.floor(num),0,359)/359
  826.             local hsvColor = Color3.fromHSV(hue,sat,val)
  827.             red,green,blue = hsvColor.r,hsvColor.g,hsvColor.b
  828.             hueInput.Text = tostring(hue*359)
  829.             updateColor(1)
  830.         end
  831.     end
  832.     hueInput.FocusLost:Connect(function() updateHue(hueInput.Text) end) hookButtons(hueInput,updateHue)
  833.     local function updateSat(str)
  834.         local num = tonumber(str)
  835.         if num then
  836.             sat = math.clamp(math.floor(num),0,255)/255
  837.             local hsvColor = Color3.fromHSV(hue,sat,val)
  838.             red,green,blue = hsvColor.r,hsvColor.g,hsvColor.b
  839.             satInput.Text = tostring(sat*255)
  840.             updateColor(1)
  841.         end
  842.     end
  843.     satInput.FocusLost:Connect(function() updateSat(satInput.Text) end) hookButtons(satInput,updateSat)
  844.     local function updateVal(str)
  845.         local num = tonumber(str)
  846.         if num then
  847.             val = math.clamp(math.floor(num),0,255)/255
  848.             local hsvColor = Color3.fromHSV(hue,sat,val)
  849.             red,green,blue = hsvColor.r,hsvColor.g,hsvColor.b
  850.             valInput.Text = tostring(val*255)
  851.             updateColor(1)
  852.         end
  853.     end
  854.     valInput.FocusLost:Connect(function() updateVal(valInput.Text) end) hookButtons(valInput,updateVal)
  855.    
  856.     local function updateRed(str)
  857.         local num = tonumber(str)
  858.         if num then
  859.             red = math.clamp(math.floor(num),0,255)/255
  860.             local newColor = Color3.new(red,green,blue)
  861.             hue,sat,val = Color3.toHSV(newColor)
  862.             redInput.Text = tostring(red*255)
  863.             updateColor(2)
  864.         end
  865.     end
  866.     redInput.FocusLost:Connect(function() updateRed(redInput.Text) end) hookButtons(redInput,updateRed)
  867.    
  868.     local function updateGreen(str)
  869.         local num = tonumber(str)
  870.         if num then
  871.             green = math.clamp(math.floor(num),0,255)/255
  872.             local newColor = Color3.new(red,green,blue)
  873.             hue,sat,val = Color3.toHSV(newColor)
  874.             greenInput.Text = tostring(green*255)
  875.             updateColor(2)
  876.         end
  877.     end
  878.     greenInput.FocusLost:Connect(function() updateGreen(greenInput.Text) end) hookButtons(greenInput,updateGreen)
  879.    
  880.     local function updateBlue(str)
  881.         local num = tonumber(str)
  882.         if num then
  883.             blue = math.clamp(math.floor(num),0,255)/255
  884.             local newColor = Color3.new(red,green,blue)
  885.             hue,sat,val = Color3.toHSV(newColor)
  886.             blueInput.Text = tostring(blue*255)
  887.             updateColor(2)
  888.         end
  889.     end
  890.     blueInput.FocusLost:Connect(function() updateBlue(blueInput.Text) end) hookButtons(blueInput,updateBlue)
  891.    
  892.     local colorChoice = Instance.new("TextButton")
  893.     colorChoice.Name = "Choice"
  894.     colorChoice.Size = UDim2.new(0,25,0,18)
  895.     colorChoice.BorderColor3 = Color3.new(96/255,96/255,96/255)
  896.     colorChoice.Text = ""
  897.     colorChoice.AutoButtonColor = false
  898.    
  899.     local row = 0
  900.     local column = 0
  901.     for i,v in pairs(basicColors) do
  902.         local newColor = colorChoice:Clone()
  903.         newColor.BackgroundColor3 = v
  904.         newColor.Position = UDim2.new(0,1 + 30*column,0,21 + 23*row)
  905.        
  906.         newColor.MouseButton1Click:Connect(function()
  907.             red,green,blue = v.r,v.g,v.b
  908.             local newColor = Color3.new(red,green,blue)
  909.             hue,sat,val = Color3.toHSV(newColor)
  910.             updateColor()
  911.         end)   
  912.        
  913.         newColor.Parent = basicColorsFrame
  914.         column = column + 1
  915.         if column == 6 then row = row + 1 column = 0 end
  916.     end
  917.    
  918.     row = 0
  919.     column = 0
  920.     for i = 1,12 do
  921.         local color = customColors[i] or Color3.new(0,0,0)
  922.         local newColor = colorChoice:Clone()
  923.         newColor.BackgroundColor3 = color
  924.         newColor.Position = UDim2.new(0,1 + 30*column,0,20 + 23*row)
  925.        
  926.         newColor.MouseButton1Click:Connect(function()
  927.             local curColor = customColors[i] or Color3.new(0,0,0)
  928.             red,green,blue = curColor.r,curColor.g,curColor.b
  929.             hue,sat,val = Color3.toHSV(curColor)
  930.             updateColor()
  931.         end)
  932.        
  933.         newColor.MouseButton2Click:Connect(function()
  934.             customColors[i] = chosenColor
  935.             newColor.BackgroundColor3 = chosenColor
  936.         end)
  937.        
  938.         newColor.Parent = customColorsFrame
  939.         column = column + 1
  940.         if column == 6 then row = row + 1 column = 0 end
  941.     end
  942.    
  943.     pickerTopBar.InputBegan:Connect(function(input)
  944.         if input.UserInputType == Enum.UserInputType.MouseButton1 then
  945.             local releaseEvent,mouseEvent
  946.             local dragOffX,dragOffY = mouse.X-pickerTopBar.AbsolutePosition.X,mouse.Y-pickerTopBar.AbsolutePosition.Y
  947.            
  948.             releaseEvent = user.InputEnded:Connect(function(input)
  949.                 if input.UserInputType ~= Enum.UserInputType.MouseButton1 then return end
  950.                 releaseEvent:Disconnect()
  951.                 mouseEvent:Disconnect()
  952.             end)
  953.            
  954.             mouseEvent = user.InputChanged:Connect(function(input)
  955.                 if input.UserInputType == Enum.UserInputType.MouseMovement then
  956.                     pickerGui.Position = UDim2.new(0,mouse.X-dragOffX,0,mouse.Y-dragOffY)
  957.                 end
  958.             end)
  959.         end
  960.     end)
  961.    
  962.     okButton.MouseButton1Click:Connect(function() if newMt.Confirm then newMt:Confirm(chosenColor) end pickerGui.Visible = false savedColor = chosenColor colorPickerOpen = false end)
  963.     okButton.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement then okButton.BackgroundTransparency = 0.4 end end)
  964.     okButton.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement then okButton.BackgroundTransparency = 0 end end)
  965.    
  966.     cancelButton.MouseButton1Click:Connect(function() if newMt.Cancel then newMt:Cancel() end pickerGui.Visible = false updateBack(savedColor, backDrop) colorPickerOpen = false end)
  967.     cancelButton.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement then cancelButton.BackgroundTransparency = 0.4 end end)
  968.     cancelButton.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement then cancelButton.BackgroundTransparency = 0 end end)
  969.    
  970.     closeButton.MouseButton1Click:Connect(function() pickerGui.Visible = false updateBack(savedColor, backDrop) colorPickerOpen = false end)
  971.    
  972.     updateColor()
  973.    
  974.     newMt.SetColor = function(self,color)
  975.         red,green,blue = color.r,color.g,color.b
  976.         hue,sat,val = Color3.toHSV(color)
  977.         updateColor()
  978.     end
  979.    
  980.     newMt.Gui = rootGui
  981.    
  982.     return newMt
  983. end
  984. --end
  985.  
  986. local ColorPickInstance = ColorPicker.new()
  987.  
  988. local rainbowColors = {
  989.     Color3.fromRGB(0, 0, 255),
  990.     Color3.fromRGB(255, 0, 0),
  991.     Color3.fromRGB(255, 255, 0),
  992.     Color3.fromRGB(0, 255, 0),
  993.     Color3.fromRGB(0, 255, 255),
  994. }
  995.  
  996. local rainbow = false
  997. local customRainbow = false
  998. local rainbowReset = false
  999. local rainbowStart = 1
  1000. local currentRainbow = nil
  1001.  
  1002. spawn(function()
  1003.     while wait() do
  1004.         if rainbow == true then
  1005.             for i,v in pairs(rainbowColors) do
  1006.                 local start = rainbowColors[i]
  1007.                 local rEnd = i + 1
  1008.                 if not rainbowColors[rEnd] then
  1009.                     rEnd = 1
  1010.                 end
  1011.                 if customRainbow == true then
  1012.                     local back = screenGui.Top.Main.BackgroundColor3
  1013.                     start = back
  1014.                 end
  1015.                 for num = rainbowCount, 1, -1 do
  1016.                     currentRainbow = start:Lerp(rainbowColors[rEnd], (rainbowCount - num)/rainbowCount)
  1017.                     if rainbow == true then
  1018.                         updateBack(currentRainbow)
  1019.                     else
  1020.                         break
  1021.                     end
  1022.                     wait()
  1023.                 end
  1024.                 customRainbow = false
  1025.             end
  1026.             if rainbowReset == true then
  1027.                 rainbowReset = false
  1028.                 rainbow = false
  1029.                 currentRainbow = screenGui.Top.Main.BackgroundColor3
  1030.                 for num = rainbowCount, 1, -1 do
  1031.                     currentRainbow = currentRainbow:Lerp(savedColor, (rainbowCount - num)/rainbowCount)
  1032.                     updateBack(currentRainbow)
  1033.                     if rainbow == true then
  1034.                         rainbowReset = false
  1035.                         break
  1036.                     end
  1037.                     wait()
  1038.                 end
  1039.                 wait()
  1040.             end
  1041.         end
  1042.     end
  1043. end)--]]
  1044.  
  1045. --Settings Tab
  1046. --Open Colour Picker
  1047. screenGui.Main.Top.Important.SettingsTab.colorpickopen.MouseButton1Up:Connect(function()
  1048.     colourpicker.Enabled = true
  1049. end)
  1050.  
  1051. --Reset GUI
  1052. screenGui.Main.Top.Important.SettingsTab.ResetGui.MouseButton1Up:Connect(function()
  1053.  
  1054. end)
  1055.  
  1056. --Save Settings
  1057. screenGui.Main.Top.Important.SettingsTab.SaveSettings.MouseButton1Up:Connect(function()
  1058.  
  1059. end)
  1060.  
  1061. --Colour Picker Background On
  1062. screenGui.Main.Top.Important.SettingsTab.PickerBackgroundOn.MouseButton1Up:Connect(function()
  1063.  
  1064. end)
  1065.  
  1066. --Colour Picker Background Off
  1067. screenGui.Main.Top.Important.SettingsTab.PickerBackgroundOff.MouseButton1Up:Connect(function()
  1068.  
  1069. end)
  1070.  
  1071. --Close
  1072. screenGui.Main.Top.Close.MouseButton1Up:connect(function()
  1073.     screenGui.Main:TweenSize(UDim2.new(0, 361, 0, 31), "Out", "Quad", 0.5)
  1074.     wait(0.5)
  1075.     screenGui.Main:TweenSize(UDim2.new(0, 0, 0, 31), "Out", "Quad", 0.5)
  1076.     wait(0.5)
  1077.     wait()
  1078.     screenGui.Open:TweenPosition(UDim2.new(0, 0, 0.75, 0), "Out", "Quad", 0.25)
  1079.     wait(0.25)
  1080. end)
  1081.  
  1082. --Open
  1083. screenGui.Open.MouseButton1Up:connect(function()
  1084.     screenGui.Open:TweenPosition(UDim2.new(0, -75, 0.75, 0), "Out", "Quad", 0.25)
  1085.     wait(0.25)
  1086.     screenGui.Main:TweenSize(UDim2.new(0, 361, 0, 31), "Out", "Quad", 0.5)
  1087.     wait(0.5)
  1088.     wait()
  1089.     screenGui.Main:TweenSize(UDim2.new(0, 361, 0, 347), "Out", "Quad", 0.5)
  1090.     wait(0.5)
  1091. end)
  1092.  
  1093. --Start Intro
  1094. intro.Intro.Size = UDim2.new(0, 0, 0, 25)
  1095.  
  1096. intro.Intro.Top.Visible = false
  1097. intro.Intro.Loading.Visible = false
  1098. intro.Intro.Motto.Visible = false
  1099. intro.Intro.Background.Visible = false
  1100.  
  1101. wait(0)
  1102.  
  1103. intro.Enabled = true
  1104.  
  1105. intro.Intro:TweenSize(UDim2.new(0, 376, 0, 25), "Out", "Quad", 0.5)
  1106.  
  1107. wait(0.6)
  1108. intro.Intro.Top.Visible = true
  1109. intro.Intro:TweenSize(UDim2.new(0, 376, 0, 169), "Out", "Quad", 0.5)
  1110. wait(0.1)
  1111. intro.Intro.Motto.Visible = true
  1112. wait(0.1)
  1113. intro.Intro.Background.Visible = true
  1114. wait(0.2)
  1115. intro.Intro.Loading.Visible = true
  1116. wait(0.5)
  1117.  
  1118. intro.Intro.Background.Bar:TweenSize(UDim2.new(1, 0, 0, 33), "Out", "Quad", 3)
  1119.  
  1120. --End Intro
  1121. wait(1)
  1122.  
  1123. screenGui.Main.Size = UDim2.new(0, 0, 0, 31)
  1124. screenGui.Open.Position = UDim2.new(0, -75, 0.75, 0)
  1125.  
  1126. wait(3)
  1127.  
  1128. wait(0.5)
  1129. intro.Intro:TweenSize(UDim2.new(0, 376, 0, 25), "Out", "Quad", 0.5)
  1130. wait()
  1131. intro.Intro.Loading.Visible = false
  1132. wait(0.1)
  1133. intro.Intro.Background.Visible = false
  1134. wait(0.2)
  1135. intro.Intro.Motto.Visible = false
  1136. wait(0.5)
  1137. intro.Intro:TweenSize(UDim2.new(0, 0, 0, 25), "Out", "Quad", 0.4)
  1138. intro.Intro.Top.Visible = false
  1139. wait(1)
  1140. intro:Destroy()
  1141.  
  1142. wait(0.5)
  1143.  
  1144. screenGui.Enabled = true
  1145.  
  1146. screenGui.Open:TweenPosition(UDim2.new(0, 0, 0.75, 0), "Out", "Quad", 0.5)
  1147. wait(0.5)
  1148.  
  1149. print("Rose Hub process finished at " .. round(tick()-start) .. " milliseconds.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement