diff --git a/Modules/New.luau b/Modules/New.luau new file mode 100644 index 0000000..a19a4d6 --- /dev/null +++ b/Modules/New.luau @@ -0,0 +1,31 @@ +-- You know what this is guyz +-- HELIODEX'S BASIC NEW FUNCTION + +return function(className: InstanceName | Instance) + local obj + if type(className) == "string" then + obj = Instance.new(className) + else + obj = className + end + + local parent = nil + + return function(props: { [string]: any }) + for k, v in pairs(props) do + if type(k) == "string" then + if k == "Parent" then + parent = v + else + obj[k] = v + end + elseif type(k) == "number" and type(v) == "userdata" then + v.Parent = obj + end + end + + obj.Parent = parent + + return obj + end +end diff --git a/Modules/Safechat.yml b/Modules/Safechat.yml new file mode 100644 index 0000000..5728e33 --- /dev/null +++ b/Modules/Safechat.yml @@ -0,0 +1,696 @@ +Use the Chat menu to talk to me.: + 1: /sc 0 + 2: true +I can only see menu chats.: + 1: /sc 1 + 2: true +Hello: + 1: /sc 2 + Hi: + 1: /sc 2_0 + 2: true + Hi there!: true + Hi everyone: true + Howdy: + 1: /sc 2_1 + 2: true + Howdy partner!: true + Greetings: + 1: /sc 2_2 + 2: true + Greetings everyone: true + Greetings Mercurians!: true + Seasons greetings!: true + Welcome: + 1: /sc 2_3 + 2: true + Welcome to my place: true + Welcome to my barbeque: true + Welcome to our base: true + Hey there!: + 1: /sc 2_4 + 2: true + What's up?: + 1: /sc 2_5 + 2: true + How are you doing?: true + How's it going?: true + What's new?: true + Good day: + 1: /sc 2_6 + 2: true + Good morning: true + Good evening: true + Good afternoon: true + Good night: true + Silly: + 1: /sc 2_7 + 2: true + Waaaaaaaz up?!: true + Hullo!: true + Behold greatness mortals!: true + Pardon me is this Sparta?: true + THIS IS SPARTAAAA!: true + Happy Holidays!: + 1: /sc 2_8 + 2: true + Happy New Year!: true + Happy Valentine's Day!: true + Beware the Ides of March!: true + Happy St. Patrick's Day!: true + Happy Easter!: true + Happy Earth Day!: true + Happy 4th of July!: true + Happy Thanksgiving!: true + Happy Halloween!: true + Happy Hanukkah!: true + Merry Christmas!: true + Happy May Day!: true + Happy Towel Day!: true + Happy Mercury Day!: true + Happy LOL Day!: true +Goodbye: + 1: /sc 3 + Good Night: + 1: /sc 3_0 + 2: true + Sweet dreams: true + Go to sleep!: true + Lights out!: true + Bedtime: true + Going to bed now: true + Later: + 1: /sc 3_1 + 2: true + See ya later: true + Later gator!: true + See you tomorrow: true + Bye: + 1: /sc 3_2 + 2: true + Hasta la bye bye!: true + I'll be right back: + 1: /sc 3_3 + 2: true + I have to go: + 1: /sc 3_4 + 2: true + Farewell: + 1: /sc 3_5 + 2: true + Take care: true + Have a nice day: true + Goodluck!: true + Ta-ta for now!: true + Peace: + 1: /sc 3_6 + 2: true + Peace out!: true + Peace dudes!: true + Rest in pieces!: true + Silly: + 1: /sc 3_7 + 2: true + To the batcave!: true + Over and out!: true + Happy trails!: true + I've got to book it!: true + Tootles!: true + Smell you later!: true + GG!: true + My house is on fire! gtg.: true +Friend: + 1: /sc 4 + Wanna be friends?: + 1: /sc 4_0 + 2: true + Follow me: + 1: /sc 4_1 + 2: true + Come to my place!: true + Come to my base!: true + Follow me team!: true + Follow me: true + Your place is cool: + 1: /sc 4_2 + 2: true + Your place is fun: true + Your place is awesome: true + Your place looks good: true + This place is awesome!: true + Thank you: + 1: /sc 4_3 + 2: true + Thanks for playing: true + Thanks for visiting: true + Thanks for everything: true + No thank you: true + Thanx: true + No problem: + 1: /sc 4_4 + 2: true + Don't worry: true + That's ok: true + np: true + You are ...: + 1: /sc 4_5 + 2: true + You are great!: true + You are good!: true + You are cool!: true + You are funny!: true + You are silly!: true + You are awesome!: true + You are doing something I don't like please stop: true + I like ...: + 1: /sc 4_6 + 2: true + I like your name: true + I like your shirt: true + I like your place: true + I like your style: true + I like you: true + I like items: true + I like money: true + Sorry: + 1: /sc 4_7 + 2: true + My bad!: true + I'm sorry: true + Whoops!: true + Please forgive me.: true + I forgive you.: true + I didn't mean to do that.: true + Sorry I'll stop now.: true +Questions: + 1: /sc 5 + Who?: + 1: /sc 5_0 + 2: true + Who wants to be my friend?: true + Who wants to be on my team?: true + Who made this brilliant game?: true + What?: + 1: /sc 5_1 + 2: true + What is your favorite animal?: true + What is your favorite game?: true + What is your favorite movie?: true + What is your favorite TV show?: true + What is your favorite music?: true + What are your hobbies?: true + LOLWUT?: true + When?: + 1: /sc 5_2 + 2: true + When are you online?: true + When is the new version coming out?: true + When can we play again?: true + When will your place be done?: true + Where?: + 1: /sc 5_3 + 2: true + Where do you want to go?: true + Where are you going?: true + Where am I?!: true + Where did you go?: true + How?: + 1: /sc 5_4 + 2: true + How are you today?: true + How did you make this cool place?: true + LOLHOW?: true + Can I...: + 1: /sc 5_5 + 2: true + Can I have a tour?: true + Can I be on your team?: true + Can I be your friend?: true + Can I try something?: true + Can I have that please?: true + Can I have that back please?: true + Can I have borrow your hat?: true + Can I have borrow your gear?: true +Answers: + 1: /sc 6 + You need help?: + 1: /sc 6_0 + 2: true + Check out the news section: true + Check out the help section: true + Read the wiki!: true + All the answers are in the wiki!: true + I will help you with this.: true + Some people ...: + 1: /sc 6_1 + 2: true + Me: true + Not me: true + You: true + All of us: true + Everyone but you: true + Builderman!: true + Telamon!: true + My team: true + My group: true + Mom: true + Dad: true + Sister: true + Brother: true + Cousin: true + Grandparent: true + Friend: true + Time ...: + 1: /sc 6_2 + 2: true + In the morning: true + In the afternoon: true + At night: true + Tomorrow: true + This week: true + This month: true + Sometime: true + Sometimes: true + Whenever you want: true + Never: true + After this: true + In 10 minutes: true + In a couple hours: true + In a couple days: true + Animals: + 1: /sc 6_3 + 2: true + Cats: + Lion: true + Tiger: true + Leopard: true + Cheetah: true + Dogs: + Wolves: true + Beagle: true + Collie: true + Dalmatian: true + Poodle: true + Spaniel: true + Shepherd: true + Terrier: true + Retriever: true + Horses: + Ponies: true + Stallions: true + Pwnyz: true + Reptiles: + Dinosaurs: true + Lizards: true + Snakes: true + Turtles!: true + Hamster: true + Monkey: true + Bears: true + Fish: + Goldfish: true + Sharks: true + Sea Bass: true + Halibut: true + Tropical Fish: true + Birds: + Eagles: true + Penguins: true + Parakeets: true + Owls: true + Hawks: true + Pidgeons: true + Elephants: true + Mythical Beasts: + Dragons: true + Unicorns: true + Sea Serpents: true + Sphinx: true + Cyclops: true + Minotaurs: true + Goblins: true + Honest Politicians: true + Ghosts: true + Scylla and Charybdis: true + Games: + 1: /sc 6_4 + 2: true + Action: true + Puzzle: true + Strategy: true + Racing: true + RPG: true + Obstacle Course: true + Tycoon: true + Mercury: + BrickBattle: true + Community Building: true + Mercury Minigames: true + Contest Place: true + Board games: + Chess: true + Checkers: true + Settlers of Catan: true + Tigris and Euphrates: true + El Grande: true + Stratego: true + Carcassonne: true + Sports: + 1: /sc 6_5 + 2: true + Hockey: true + Soccer: true + Football: true + Baseball: true + Basketball: true + Volleyball: true + Tennis: true + Sports team practice: true + Watersports: + Surfing: true + Swimming: true + Water Polo: true + Winter sports: + Skiing: true + Snowboarding: true + Sledding: true + Skating: true + Adventure: + Rock climbing: true + Hiking: true + Fishing: true + Horseback riding: true + Wacky: + Foosball: true + Calvinball: true + Croquet: true + Cricket: true + Dodgeball: true + Squash: true + Trampoline: true + Movies/TV: + 1: /sc 6_6 + 2: true + Science Fiction: true + Animated: + Anime: true + Comedy: true + Romantic: true + Action: true + Fantasy: true + Music: + 1: /sc 6_7 + 2: true + Country: true + Jazz: true + Rap: true + Hip-hop: true + Techno: true + Classical: true + Pop: true + Rock: true + Hobbies: + 1: /sc 6_8 + 2: true + Computers: + Building computers: true + Videogames: true + Coding: true + Hacking: true + The Internet: + lol. teh internets!: true + Watching vids: true + Dance: true + Gymnastics: true + Listening to music: true + Arts and crafts: true + Martial Arts: + Karate: true + Judo: true + Taikwon Do: true + Wushu: true + Street fighting: true + Music lessons: + Playing in my band: true + Playing piano: true + Playing guitar: true + Playing violin: true + Playing drums: true + Playing a weird instrument: true + Location: + 1: /sc 6_9 + 2: true + USA: + West: + Alaska: true + Arizona: true + California: true + Colorado: true + Hawaii: true + Idaho: true + Montana: true + Nevada: true + New Mexico: true + Oregon: true + Utah: true + Washington: true + Wyoming: true + South: + Alabama: true + Arkansas: true + Florida: true + Georgia: true + Kentucky: true + Louisiana: true + Mississippi: true + North Carolina: true + Oklahoma: true + South Carolina: true + Tennessee: true + Texas: true + Virginia: true + West Virginia: true + Northeast: + Connecticut: true + Delaware: true + Maine: true + Maryland: true + Massachusetts: true + New Hampshire: true + New Jersey: true + New York: true + Pennsylvania: true + Rhode Island: true + Vermont: true + Midwest: + Illinois: true + Indiana: true + Iowa: true + Kansas: true + Michigan: true + Minnesota: true + Missouri: true + Nebraska: true + North Dakota: true + Ohio: true + South Dakota: true + Wisconsin: true + Canada: + Alberta: true + British Columbia: true + Manitoba: true + New Brunswick: true + Newfoundland: true + Northwest Territories: true + Nova Scotia: true + Nunavut: true + Ontario: true + Prince Edward Island: true + Quebec: true + Saskatchewan: true + Yukon: true + Mexico: true + Central America: true + Europe: + France: true + Germany: true + Spain: true + Italy: true + Poland: true + Switzerland: true + Greece: true + Romania: true + Netherlands: true + Great Britain: + England: true + Scotland: true + Wales: true + Northern Ireland: true + Asia: + China: true + India: true + Japan: true + Korea: true + Russia: true + Vietnam: true + South America: + Argentina: true + Brazil: true + Africa: + Eygpt: true + Swaziland: true + Australia: true + Middle East: true + Antarctica: true + New Zealand: true + Age: + 1: /sc 6_10 + 2: true + Rugrat: true + Kid: true + Tween: true + Teen: true + Twenties: true + Old: true + Ancient: true + Mesozoic: true + I don't want to say my age. Don't ask.: true + Mood: + 1: /sc 6_11 + 2: true + Good: true + Great!: true + Not bad: true + Sad: true + Hyper: true + Chill: true + Happy: true + Kind of mad: true + Boy: + 1: /sc 6_12 + 2: true + Girl: + 1: /sc 6_13 + 2: true + I don't want to say boy or girl. Don't ask.: + 1: /sc 6_14 + 2: true +Game: + 1: /sc 7 + Let's build: + 1: /sc 7_0 + 2: true + Let's battle: + 1: /sc 7_1 + 2: true + Nice one!: + 1: /sc 7_2 + 2: true + So far so good: + 1: /sc 7_3 + 2: true + Lucky shot!: + 1: /sc 7_4 + 2: true + Oh man!: + 1: /sc 7_5 + 2: true + I challenge you to a fight!: + 1: /sc 7_6 + 2: true + Help me with this: + 1: /sc 7_7 + 2: true + Let's go to your game: + 1: /sc 7_8 + 2: true + Can you show me how do to that?: + 1: /sc 7_9 + 2: true + Backflip!: + 1: /sc 7_10 + 2: true + Frontflip!: + 1: /sc 7_11 + 2: true + Dance!: + 1: /sc 7_12 + 2: true + I'm on your side!: + 1: /sc 7_13 + 2: true + Game Commands: + 1: /sc 7_14 + 2: true + regen: true + reset: true + go: true + fix: true + respawn: true +Silly: + Muahahahaha!: true + all your base are belong to me!: true + GET OFF MAH LAWN: true + TEH EPIK DUCK IS COMING!!!: true + ROFL: true + 1337: + 2: true + i r teh pwnz0r!: true + w00t!: true + z0mg h4x!: true + ub3rR0xXorzage!: true +Yes: + Absolutely!: true + Rock on!: true + Totally!: true + Juice!: true + Yay!: true + Yesh: true +No: + Ummm. No.: true + ...: true + Stop!: true + Go away!: true + Don't do that: true + Stop breaking the rules: true + I don't want to: true +Ok: + Well... ok: true + Sure: true +Uncertain: + Maybe: true + I don't know: true + idk: true + I can't decide: true + Hmm...: true +:-): + :-(: true + :D: true + :-O: true + lol: true + =D: true + D=: true + XD: true + ;D: true + ;): true + O_O: true + =): true + "@_@": true + ">_<": true + T_T: true + ^_^: true + <(0_0<) <(0_0)> (>0_0)> KIRBY DANCE: true + )';: true + :3: true +Ratings: + Rate it!: true + I give it a 1 out of 10: true + I give it a 2 out of 10: true + I give it a 3 out of 10: true + I give it a 4 out of 10: true + I give it a 5 out of 10: true + I give it a 6 out of 10: true + I give it a 7 out of 10: true + I give it a 8 out of 10: true + I give it a 9 out of 10: true + I give it a 10 out of 10!: true diff --git a/luau/36868950.luau b/luau/36868950.luau index fb35542..a9102c1 100644 --- a/luau/36868950.luau +++ b/luau/36868950.luau @@ -1,6 +1,8 @@ -- CoreGui.RobloxGui.CoreScripts/ToolTip print "[Mercury]: Loaded corescript 36868950" +local New = require "../Modules/New" + local controlFrame = script.Parent:FindFirstChild "ControlFrame" if not controlFrame then @@ -10,25 +12,25 @@ end local bottomLeftControl = controlFrame:FindFirstChild "BottomLeftControl" local bottomRightControl = controlFrame:FindFirstChild "BottomRightControl" -local frameTip = Instance.new "TextLabel" -frameTip.Name = "ToolTip" -frameTip.Text = "" -frameTip.Font = Enum.Font.ArialBold -frameTip.FontSize = Enum.FontSize.Size12 -frameTip.TextColor3 = Color3.new(1, 1, 1) -frameTip.BorderSizePixel = 0 -frameTip.ZIndex = 10 -frameTip.Size = UDim2.new(2, 0, 1, 0) -frameTip.Position = UDim2.new(1, 0, 0, 0) -frameTip.BackgroundColor3 = Color3.new(0, 0, 0) -frameTip.BackgroundTransparency = 1 -frameTip.TextTransparency = 1 -frameTip.TextWrap = true - -local inside = Instance.new "BoolValue" -inside.Name = "inside" -inside.Value = false -inside.Parent = frameTip +local frameTip = New "TextLabel" { + Name = "ToolTip", + Text = "", + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size12, + TextColor3 = Color3.new(1, 1, 1), + BorderSizePixel = 0, + ZIndex = 10, + Size = UDim2.new(2, 0, 1, 0), + Position = UDim2.new(1, 0, 0, 0), + BackgroundColor3 = Color3.new(0, 0, 0), + BackgroundTransparency = 1, + TextTransparency = 1, + TextWrap = true, + New "BoolValue" { + Name = "inside", + Value = false, + }, +} local function setUpListeners(frameToListen) local fadeSpeed = 0.1 @@ -87,12 +89,14 @@ local bottomLeftChildren = bottomLeftControl:GetChildren() for i = 1, #bottomLeftChildren do if bottomLeftChildren[i].Name == "Exit" then - local exitTip = frameTip:clone() - exitTip.RobloxLocked = true - exitTip.Text = "Leave Place" - exitTip.Position = UDim2.new(0, 0, -1, 0) - exitTip.Size = UDim2.new(1, 0, 1, 0) - exitTip.Parent = bottomLeftChildren[i] + local exitTip = New(frameTip:clone()) { + RobloxLocked = true, + Text = "Leave Place", + Position = UDim2.new(0, 0, -1, 0), + Size = UDim2.new(1, 0, 1, 0), + Parent = bottomLeftChildren[i], + } + setUpListeners(exitTip) elseif bottomLeftChildren[i].Name == "SettingsButton" then createSettingsButtonTip(bottomLeftChildren[i]) @@ -105,16 +109,20 @@ local bottomRightChildren = bottomRightControl:GetChildren() for i = 1, #bottomRightChildren do if bottomRightChildren[i].Name:find "Camera" ~= nil then - local cameraTip = frameTip:clone() - cameraTip.RobloxLocked = true - cameraTip.Text = "Camera View" + local cameraTip = New(frameTip:clone()) { + RobloxLocked = true, + Text = "Camera View", + Size = UDim2.new(2, 0, 1.25, 0), + } + if bottomRightChildren[i].Name:find "Zoom" then cameraTip.Position = UDim2.new(-1, 0, -1.5) else cameraTip.Position = UDim2.new(0, 0, -1.5, 0) end - cameraTip.Size = UDim2.new(2, 0, 1.25, 0) + cameraTip.Parent = bottomRightChildren[i] + setUpListeners(cameraTip) end end diff --git a/luau/37801172.luau b/luau/37801172.luau index fee015c..e0c6520 100644 --- a/luau/37801172.luau +++ b/luau/37801172.luau @@ -1,16 +1,16 @@ -- Script Context.StarterScript print "[Mercury]: Loaded corescript 37801172" -local scriptContext = game:GetService "ScriptContext" +local ScriptContext = game:GetService "ScriptContext" local CoreGui = game:GetService "CoreGui" -- Creates all neccessary scripts for the gui on initial load, everything except build tools -- Please note that these are loaded in a specific order to diminish errors/perceived load time by user -- library registration -scriptContext:AddCoreScript( +ScriptContext:AddCoreScript( 60595695, - scriptContext, + ScriptContext, "/Libraries/LibraryRegistration/LibraryRegistration" ) @@ -24,29 +24,29 @@ waitForChild(CoreGui, "RobloxGui") local screenGui = CoreGui:FindFirstChild "RobloxGui" -- ToolTipper (creates tool tips for gui) -scriptContext:AddCoreScript(36868950, screenGui, "CoreScripts/ToolTip") +ScriptContext:AddCoreScript(36868950, screenGui, "CoreScripts/ToolTip") -- SettingsScript -scriptContext:AddCoreScript(46295863, screenGui, "CoreScripts/Settings") +ScriptContext:AddCoreScript(46295863, screenGui, "CoreScripts/Settings") -- MainBotChatScript -scriptContext:AddCoreScript( +ScriptContext:AddCoreScript( 39250920, screenGui, "CoreScripts/MainBotChatScript" ) -- Popup Script -scriptContext:AddCoreScript(48488451, screenGui, "CoreScripts/PopupScript") +ScriptContext:AddCoreScript(48488451, screenGui, "CoreScripts/PopupScript") -- Friend Notification Script (probably can use this script to expand out to other notifications) -scriptContext:AddCoreScript( +ScriptContext:AddCoreScript( 48488398, screenGui, "CoreScripts/NotificationScript" ) -- Chat script -scriptContext:AddCoreScript(97188756, screenGui, "CoreScripts/ChatScript") +ScriptContext:AddCoreScript(97188756, screenGui, "CoreScripts/ChatScript") -- Purchase Prompt Script -scriptContext:AddCoreScript( +ScriptContext:AddCoreScript( 107893730, screenGui, "CoreScripts/PurchasePromptScript" @@ -54,7 +54,7 @@ scriptContext:AddCoreScript( if screenGui.AbsoluteSize.Y > 600 then -- New Player List - scriptContext:AddCoreScript( + ScriptContext:AddCoreScript( 48488235, screenGui, "CoreScripts/PlayerListScript" @@ -63,7 +63,7 @@ else delay(5, function() if screenGui.AbsoluteSize.Y >= 600 then -- New Player List - scriptContext:AddCoreScript( + ScriptContext:AddCoreScript( 48488235, screenGui, "CoreScripts/PlayerListScript" @@ -73,7 +73,7 @@ else end -- Backpack Builder, creates most of the backpack gui -scriptContext:AddCoreScript( +ScriptContext:AddCoreScript( 53878047, screenGui, "CoreScripts/BackpackScripts/BackpackBuilder" @@ -84,20 +84,20 @@ waitForChild(screenGui, "Backpack") local Backpack = screenGui.Backpack -- Manager handles all big backpack state changes, other scripts subscribe to this and do things accordingly -scriptContext:AddCoreScript( +ScriptContext:AddCoreScript( 89449093, Backpack, "CoreScripts/BackpackScripts/BackpackManager" ) -- Backpack Gear (handles all backpack gear tab stuff) -scriptContext:AddCoreScript( +ScriptContext:AddCoreScript( 89449008, Backpack, "CoreScripts/BackpackScripts/BackpackGear" ) -- Loadout Script, used for gear hotkeys -scriptContext:AddCoreScript( +ScriptContext:AddCoreScript( 53878057, screenGui.CurrentLoadout, "CoreScripts/BackpackScripts/LoadoutScript" @@ -105,17 +105,19 @@ scriptContext:AddCoreScript( local IsPersonalServer = not not game.Workspace:FindFirstChild "PSVariable" if IsPersonalServer then - game:GetService("ScriptContext") - :AddCoreScript(64164692, game.Players.LocalPlayer, "BuildToolManager") + ScriptContext:AddCoreScript( + 64164692, + game.Players.LocalPlayer, + "BuildToolManager" + ) end game.Workspace.ChildAdded:connect(function(nchild) if nchild.Name == "PSVariable" and nchild:IsA "BoolValue" then IsPersonalServer = true - game:GetService("ScriptContext") - :AddCoreScript( - 64164692, - game.Players.LocalPlayer, - "BuildToolManager" - ) + ScriptContext:AddCoreScript( + 64164692, + game.Players.LocalPlayer, + "BuildToolManager" + ) end end) diff --git a/luau/39250920.luau b/luau/39250920.luau index 96765e9..9a63cca 100644 --- a/luau/39250920.luau +++ b/luau/39250920.luau @@ -1,6 +1,8 @@ -- CoreGui.RobloxGui.CoreScripts/MainBotChatScript print "[Mercury]: Loaded corescript 39250920" +local New = require "../Modules/New" + local InsertService = game:GetService "InsertService" local function waitForProperty(instance, name) @@ -49,35 +51,35 @@ local function currentTone() end local function createChatNotificationGui() - chatNotificationGui = Instance.new "BillboardGui" - chatNotificationGui.Name = "ChatNotificationGui" - chatNotificationGui.ExtentsOffset = Vector3.new(0, 1, 0) - chatNotificationGui.Size = UDim2.new(4, 0, 5.42857122, 0) - chatNotificationGui.SizeOffset = Vector2.new(0, 0) - chatNotificationGui.StudsOffset = Vector3.new(0.4, 4.3, 0) - chatNotificationGui.Enabled = true - chatNotificationGui.RobloxLocked = true - chatNotificationGui.Active = true - - local image = Instance.new "ImageLabel" - image.Name = "Image" - image.Active = false - image.BackgroundTransparency = 1 - image.Position = UDim2.new(0, 0, 0, 0) - image.Size = UDim2.new(1, 0, 1, 0) - image.Image = "" - image.RobloxLocked = true - image.Parent = chatNotificationGui - - local button = Instance.new "ImageButton" - button.Name = "Button" - button.AutoButtonColor = false - button.Position = UDim2.new(0.0879999995, 0, 0.0529999994, 0) - button.Size = UDim2.new(0.829999983, 0, 0.460000008, 0) - button.Image = "" - button.BackgroundTransparency = 1 - button.RobloxLocked = true - button.Parent = image + chatNotificationGui = New "BillboardGui" { + Name = "ChatNotificationGui", + ExtentsOffset = Vector3.new(0, 1, 0), + Size = UDim2.new(4, 0, 5.42857122, 0), + SizeOffset = Vector2.new(0, 0), + StudsOffset = Vector3.new(0.4, 4.3, 0), + Enabled = true, + RobloxLocked = true, + Active = true, + New "ImageLabel" { + Name = "Image", + Active = false, + BackgroundTransparency = 1, + Position = UDim2.new(0, 0, 0, 0), + Size = UDim2.new(1, 0, 1, 0), + Image = "", + RobloxLocked = true, + Parent = chatNotificationGui, + New "ImageButton" { + Name = "Button", + AutoButtonColor = false, + Position = UDim2.new(0.0879999995, 0, 0.0529999994, 0), + Size = UDim2.new(0.829999983, 0, 0.460000008, 0), + Image = "", + BackgroundTransparency = 1, + RobloxLocked = true, + }, + }, + } end local function getChatColor(tone) @@ -151,20 +153,20 @@ local function setChatNotificationTone(notificationGui, purpose, tone) end local function createMessageDialog() - messageDialog = Instance.new "Frame" - messageDialog.Name = "DialogScriptMessage" - messageDialog.Style = Enum.FrameStyle.RobloxRound - messageDialog.Visible = false - - local text = Instance.new "TextLabel" - text.Name = "Text" - text.Position = UDim2.new(0, 0, 0, -1) - text.Size = UDim2.new(1, 0, 1, 0) - text.FontSize = Enum.FontSize.Size14 - text.BackgroundTransparency = 1 - text.TextColor3 = Color3.new(1, 1, 1) - text.RobloxLocked = true - text.Parent = messageDialog + messageDialog = New "Frame" { + Name = "DialogScriptMessage", + Style = Enum.FrameStyle.RobloxRound, + Visible = false, + New "TextLabel" { + Name = "Text", + Position = UDim2.new(0, 0, 0, -1), + Size = UDim2.new(1, 0, 1, 0), + FontSize = Enum.FontSize.Size14, + BackgroundTransparency = 1, + TextColor3 = Color3.new(1, 1, 1), + RobloxLocked = true, + }, + } end local function showMessage(msg, size) @@ -178,7 +180,7 @@ end local function variableDelay(str) local length = math.min(string.len(str), 100) - wait(0.75 + ((length / 75) * 1.5)) + wait(0.75 + (length / 50)) end local function highlightColor(frame, tone) @@ -306,10 +308,12 @@ local function renewKillswitch(dialog) currentAbortDialogScript = nil end - currentAbortDialogScript = timeoutScript:Clone() - currentAbortDialogScript.archivable = false - currentAbortDialogScript.Disabled = false - currentAbortDialogScript.Parent = dialog + currentAbortDialogScript = New(timeoutScript:Clone()) { + + archivable = false, + Disabled = false, + Parent = dialog, + } end local function selectChoice(choice) @@ -517,11 +521,12 @@ end local function addDialog(dialog) if dialog.Parent then if dialog.Parent:IsA "BasePart" then - local chatGui = chatNotificationGui:clone() - chatGui.Enabled = not dialog.InUse - chatGui.Adornee = dialog.Parent - chatGui.RobloxLocked = true - chatGui.Parent = game.CoreGui + local chatGui = New(chatNotificationGui:clone()) { + Enabled = not dialog.InUse, + Adornee = dialog.Parent, + RobloxLocked = true, + Parent = game.CoreGui, + } chatGui.Image.Button.MouseButton1Click:connect(function() startDialog(dialog) end) @@ -581,31 +586,32 @@ local function onLoad() player = game.Players.LocalPlayer waitForProperty(player, "Character") - --print("Fetching Scripts") + -- print "Fetching Scripts" fetchScripts() - --print("Creating Guis") + -- print "Creating Guis" createChatNotificationGui() - --print("Creating MessageDialog") + -- print "Creating MessageDialog" createMessageDialog() messageDialog.RobloxLocked = true messageDialog.Parent = gui - --print("Waiting for BottomLeftControl") + -- print "Waiting for BottomLeftControl" waitForChild(gui, "BottomLeftControl") - --print("Initializing Frame") - local frame = Instance.new "Frame" - frame.Name = "DialogFrame" - frame.Position = UDim2.new(0, 0, 0, 0) - frame.Size = UDim2.new(0, 0, 0, 0) - frame.BackgroundTransparency = 1 - frame.RobloxLocked = true - frame.Parent = gui.BottomLeftControl + -- print "Initializing Frame" + local frame = New "Frame" { + Name = "DialogFrame", + Position = UDim2.new(0, 0, 0, 0), + Size = UDim2.new(0, 0, 0, 0), + BackgroundTransparency = 1, + RobloxLocked = true, + Parent = gui.BottomLeftControl, + } initialize(frame) - --print("Adding Dialogs") + -- print "Adding Dialogs" game.CollectionService.ItemAdded:connect(function(obj) if obj:IsA "Dialog" then addDialog(obj) diff --git a/luau/45284430.luau b/luau/45284430.luau index 8cc2234..0c2f752 100644 --- a/luau/45284430.luau +++ b/luau/45284430.luau @@ -1,6 +1,8 @@ -- RbxGui print "[Mercury]: Loaded corescript 45284430" +local New = require "../Modules/New" + local RbxGui = {} local function ScopedConnect( @@ -138,17 +140,47 @@ local function cancelSlide(areaSoak) end RbxGui.CreateStyledMessageDialog = function(title, message, style, buttons) - local frame = Instance.new "Frame" - frame.Size = UDim2.new(0.5, 0, 0, 165) - frame.Position = UDim2.new(0.25, 0, 0.5, -72.5) - frame.Name = "MessageDialog" - frame.Active = true - frame.Style = Enum.FrameStyle.RobloxRound + local frame = New "Frame" { + Size = UDim2.new(0.5, 0, 0, 165), + Position = UDim2.new(0.25, 0, 0.5, -72.5), + Name = "MessageDialog", + Active = true, + Style = Enum.FrameStyle.RobloxRound, + New "TextLabel" { + Name = "Title", + Text = title, + TextStrokeTransparency = 0, + BackgroundTransparency = 1, + TextColor3 = Color3.new(221 / 255, 221 / 255, 221 / 255), + Position = UDim2.new(0, 80, 0, 0), + Size = UDim2.new(1, -80, 0, 40), + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size36, + TextXAlignment = Enum.TextXAlignment.Center, + TextYAlignment = Enum.TextYAlignment.Center, + }, + New "TextLabel" { + Name = "Message", + Text = message, + TextStrokeTransparency = 0, + TextColor3 = Color3.new(221 / 255, 221 / 255, 221 / 255), + Position = UDim2.new(0.025, 80, 0, 45), + Size = UDim2.new(0.95, -80, 0, 55), + BackgroundTransparency = 1, + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size18, + TextWrap = true, + TextXAlignment = Enum.TextXAlignment.Left, + TextYAlignment = Enum.TextYAlignment.Top, + }, + } + + local styleImage = New "ImageLabel" { + Name = "StyleImage", + BackgroundTransparency = 1, + Position = UDim2.new(0, 5, 0, 15), + } - local styleImage = Instance.new "ImageLabel" - styleImage.Name = "StyleImage" - styleImage.BackgroundTransparency = 1 - styleImage.Position = UDim2.new(0, 5, 0, 15) if style == "error" or style == "Error" then styleImage.Size = UDim2.new(0, 71, 0, 71) styleImage.Image = "http://banland.xyz/asset?id=42565285" @@ -163,74 +195,44 @@ RbxGui.CreateStyledMessageDialog = function(title, message, style, buttons) end styleImage.Parent = frame - local titleLabel = Instance.new "TextLabel" - titleLabel.Name = "Title" - titleLabel.Text = title - titleLabel.TextStrokeTransparency = 0 - titleLabel.BackgroundTransparency = 1 - titleLabel.TextColor3 = Color3.new(221 / 255, 221 / 255, 221 / 255) - titleLabel.Position = UDim2.new(0, 80, 0, 0) - titleLabel.Size = UDim2.new(1, -80, 0, 40) - titleLabel.Font = Enum.Font.ArialBold - titleLabel.FontSize = Enum.FontSize.Size36 - titleLabel.TextXAlignment = Enum.TextXAlignment.Center - titleLabel.TextYAlignment = Enum.TextYAlignment.Center - titleLabel.Parent = frame - - local messageLabel = Instance.new "TextLabel" - messageLabel.Name = "Message" - messageLabel.Text = message - messageLabel.TextStrokeTransparency = 0 - messageLabel.TextColor3 = Color3.new(221 / 255, 221 / 255, 221 / 255) - messageLabel.Position = UDim2.new(0.025, 80, 0, 45) - messageLabel.Size = UDim2.new(0.95, -80, 0, 55) - messageLabel.BackgroundTransparency = 1 - messageLabel.Font = Enum.Font.Arial - messageLabel.FontSize = Enum.FontSize.Size18 - messageLabel.TextWrap = true - messageLabel.TextXAlignment = Enum.TextXAlignment.Left - messageLabel.TextYAlignment = Enum.TextYAlignment.Top - messageLabel.Parent = frame - CreateButtons(frame, buttons, UDim.new(0, 105), UDim.new(0, 40)) return frame end RbxGui.CreateMessageDialog = function(title, message, buttons) - local frame = Instance.new "Frame" - frame.Size = UDim2.new(0.5, 0, 0.5, 0) - frame.Position = UDim2.new(0.25, 0, 0.25, 0) - frame.Name = "MessageDialog" - frame.Active = true - frame.Style = Enum.FrameStyle.RobloxRound - - local titleLabel = Instance.new "TextLabel" - titleLabel.Name = "Title" - titleLabel.Text = title - titleLabel.BackgroundTransparency = 1 - titleLabel.TextColor3 = Color3.new(221 / 255, 221 / 255, 221 / 255) - titleLabel.Position = UDim2.new(0, 0, 0, 0) - titleLabel.Size = UDim2.new(1, 0, 0.15, 0) - titleLabel.Font = Enum.Font.ArialBold - titleLabel.FontSize = Enum.FontSize.Size36 - titleLabel.TextXAlignment = Enum.TextXAlignment.Center - titleLabel.TextYAlignment = Enum.TextYAlignment.Center - titleLabel.Parent = frame - - local messageLabel = Instance.new "TextLabel" - messageLabel.Name = "Message" - messageLabel.Text = message - messageLabel.TextColor3 = Color3.new(221 / 255, 221 / 255, 221 / 255) - messageLabel.Position = UDim2.new(0.025, 0, 0.175, 0) - messageLabel.Size = UDim2.new(0.95, 0, 0.55, 0) - messageLabel.BackgroundTransparency = 1 - messageLabel.Font = Enum.Font.Arial - messageLabel.FontSize = Enum.FontSize.Size18 - messageLabel.TextWrap = true - messageLabel.TextXAlignment = Enum.TextXAlignment.Left - messageLabel.TextYAlignment = Enum.TextYAlignment.Top - messageLabel.Parent = frame + local frame = New "Frame" { + Size = UDim2.new(0.5, 0, 0.5, 0), + Position = UDim2.new(0.25, 0, 0.25, 0), + Name = "MessageDialog", + Active = true, + Style = Enum.FrameStyle.RobloxRound, + New "TextLabel" { + Name = "Title", + Text = title, + BackgroundTransparency = 1, + TextColor3 = Color3.new(221 / 255, 221 / 255, 221 / 255), + Position = UDim2.new(0, 0, 0, 0), + Size = UDim2.new(1, 0, 0.15, 0), + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size36, + TextXAlignment = Enum.TextXAlignment.Center, + TextYAlignment = Enum.TextYAlignment.Center, + }, + New "TextLabel" { + Name = "Message", + Text = message, + TextColor3 = Color3.new(221 / 255, 221 / 255, 221 / 255), + Position = UDim2.new(0.025, 0, 0.175, 0), + Size = UDim2.new(0.95, 0, 0.55, 0), + BackgroundTransparency = 1, + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size18, + TextWrap = true, + TextXAlignment = Enum.TextXAlignment.Left, + TextYAlignment = Enum.TextYAlignment.Top, + }, + } CreateButtons(frame, buttons, UDim.new(0.8, 0), UDim.new(0.15, 0)) @@ -242,36 +244,37 @@ RbxGui.CreateDropDownMenu = function(items, onSelect, forRoblox) local width = UDim.new(0, 100) local height = UDim.new(0, 32) - local frame = Instance.new "Frame" - frame.Name = "DropDownMenu" - frame.BackgroundTransparency = 1 - frame.Size = UDim2.new(width, height) + local frame = New "Frame" { + Name = "DropDownMenu", + BackgroundTransparency = 1, + Size = UDim2.new(width, height), + } - local dropDownMenu = Instance.new "TextButton" - dropDownMenu.Name = "DropDownMenuButton" - dropDownMenu.TextWrap = true - dropDownMenu.TextColor3 = Color3.new(1, 1, 1) - dropDownMenu.Text = "Choose One" - dropDownMenu.Font = Enum.Font.ArialBold - dropDownMenu.FontSize = Enum.FontSize.Size18 - dropDownMenu.TextXAlignment = Enum.TextXAlignment.Left - dropDownMenu.TextYAlignment = Enum.TextYAlignment.Center - dropDownMenu.BackgroundTransparency = 1 - dropDownMenu.AutoButtonColor = true - dropDownMenu.Style = Enum.ButtonStyle.RobloxButton - dropDownMenu.Size = UDim2.new(1, 0, 1, 0) - dropDownMenu.Parent = frame - dropDownMenu.ZIndex = 2 - - local dropDownIcon = Instance.new "ImageLabel" - dropDownIcon.Name = "Icon" - dropDownIcon.Active = false - dropDownIcon.Image = "http://banland.xyz/asset/?id=45732894" - dropDownIcon.BackgroundTransparency = 1 - dropDownIcon.Size = UDim2.new(0, 11, 0, 6) - dropDownIcon.Position = UDim2.new(1, -11, 0.5, -2) - dropDownIcon.Parent = dropDownMenu - dropDownIcon.ZIndex = 2 + local dropDownMenu = New "TextButton" { + Name = "DropDownMenuButton", + TextWrap = true, + TextColor3 = Color3.new(1, 1, 1), + Text = "Choose One", + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size18, + TextXAlignment = Enum.TextXAlignment.Left, + TextYAlignment = Enum.TextYAlignment.Center, + BackgroundTransparency = 1, + AutoButtonColor = true, + Style = Enum.ButtonStyle.RobloxButton, + Size = UDim2.new(1, 0, 1, 0), + Parent = frame, + ZIndex = 2, + New "ImageLabel" { + Name = "Icon", + Active = false, + Image = "http://banland.xyz/asset/?id=45732894", + BackgroundTransparency = 1, + Size = UDim2.new(0, 11, 0, 6), + Position = UDim2.new(1, -11, 0.5, -2), + ZIndex = 2, + }, + } local itemCount = #items local dropDownItemCount = #items @@ -281,30 +284,35 @@ RbxGui.CreateDropDownMenu = function(items, onSelect, forRoblox) dropDownItemCount = 6 end - local droppedDownMenu = Instance.new "TextButton" - droppedDownMenu.Name = "List" - droppedDownMenu.Text = "" - droppedDownMenu.BackgroundTransparency = 1 - --droppedDownMenu.AutoButtonColor = true - droppedDownMenu.Style = Enum.ButtonStyle.RobloxButton - droppedDownMenu.Visible = false - droppedDownMenu.Active = true --Blocks clicks - droppedDownMenu.Position = UDim2.new(0, 0, 0, 0) - droppedDownMenu.Size = UDim2.new(1, 0, (1 + dropDownItemCount) * 0.8, 0) - droppedDownMenu.Parent = frame - droppedDownMenu.ZIndex = 2 + local droppedDownMenu = New "TextButton" { + Name = "List", + Text = "", + BackgroundTransparency = 1, + -- AutoButtonColor = true + Style = Enum.ButtonStyle.RobloxButton, + Visible = false, + Active = true, --Blocks clicks + Position = UDim2.new(0, 0, 0, 0), + Size = UDim2.new(1, 0, (1 + dropDownItemCount) * 0.8, 0), + Parent = frame, + ZIndex = 2, + } + + local choiceButton = New "TextButton" { + Name = "ChoiceButton", + BackgroundTransparency = 1, + BorderSizePixel = 0, + Text = "ReplaceMe", + TextColor3 = Color3.new(1, 1, 1), + TextXAlignment = Enum.TextXAlignment.Left, + TextYAlignment = Enum.TextYAlignment.Center, + BackgroundColor3 = Color3.new(1, 1, 1), + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size18, + TextWrap = true, + ZIndex = 2, + } - local choiceButton = Instance.new "TextButton" - choiceButton.Name = "ChoiceButton" - choiceButton.BackgroundTransparency = 1 - choiceButton.BorderSizePixel = 0 - choiceButton.Text = "ReplaceMe" - choiceButton.TextColor3 = Color3.new(1, 1, 1) - choiceButton.TextXAlignment = Enum.TextXAlignment.Left - choiceButton.TextYAlignment = Enum.TextYAlignment.Center - choiceButton.BackgroundColor3 = Color3.new(1, 1, 1) - choiceButton.Font = Enum.Font.Arial - choiceButton.FontSize = Enum.FontSize.Size18 if useScrollButtons then choiceButton.Size = UDim2.new(1, -13, 0.8 / ((dropDownItemCount + 1) * 0.8), 0) @@ -312,17 +320,16 @@ RbxGui.CreateDropDownMenu = function(items, onSelect, forRoblox) choiceButton.Size = UDim2.new(1, 0, 0.8 / ((dropDownItemCount + 1) * 0.8), 0) end - choiceButton.TextWrap = true - choiceButton.ZIndex = 2 - local areaSoak = Instance.new "TextButton" - areaSoak.Name = "AreaSoak" - areaSoak.Text = "" - areaSoak.BackgroundTransparency = 1 - areaSoak.Active = true - areaSoak.Size = UDim2.new(1, 0, 1, 0) - areaSoak.Visible = false - areaSoak.ZIndex = 3 + local areaSoak = New "TextButton" { + Name = "AreaSoak", + Text = "", + BackgroundTransparency = 1, + Active = true, + Size = UDim2.new(1, 0, 1, 0), + Visible = false, + ZIndex = 3, + } local dropDownSelected = false @@ -461,13 +468,18 @@ RbxGui.CreateDropDownMenu = function(items, onSelect, forRoblox) if useScrollButtons then --Make some scroll buttons - scrollUpButton = Instance.new "ImageButton" - scrollUpButton.Name = "ScrollUpButton" - scrollUpButton.BackgroundTransparency = 1 - scrollUpButton.Image = "rbxasset://textures/ui/scrollbuttonUp.png" - scrollUpButton.Size = UDim2.new(0, 17, 0, 17) - scrollUpButton.Position = - UDim2.new(1, -11, (1 * 0.8) / ((dropDownItemCount + 1) * 0.8), 0) + scrollUpButton = New "ImageButton" { + Name = "ScrollUpButton", + BackgroundTransparency = 1, + Image = "rbxasset://textures/ui/scrollbuttonUp.png", + Size = UDim2.new(0, 17, 0, 17), + Position = UDim2.new( + 1, + -11, + (1 * 0.8) / ((dropDownItemCount + 1) * 0.8), + 0 + ), + } scrollUpButton.MouseButton1Click:connect(function() scrollMouseCount += 1 end) @@ -490,13 +502,14 @@ RbxGui.CreateDropDownMenu = function(items, onSelect, forRoblox) scrollUpButton.Parent = droppedDownMenu - scrollDownButton = Instance.new "ImageButton" - scrollDownButton.Name = "ScrollDownButton" - scrollDownButton.BackgroundTransparency = 1 - scrollDownButton.Image = "rbxasset://textures/ui/scrollbuttonDown.png" - scrollDownButton.Size = UDim2.new(0, 17, 0, 17) - scrollDownButton.Position = UDim2.new(1, -11, 1, -11) - scrollDownButton.Parent = droppedDownMenu + scrollDownButton = New "ImageButton" { + Name = "ScrollDownButton", + BackgroundTransparency = 1, + Image = "rbxasset://textures/ui/scrollbuttonDown.png", + Size = UDim2.new(0, 17, 0, 17), + Position = UDim2.new(1, -11, 1, -11), + Parent = droppedDownMenu, + } scrollDownButton.MouseButton1Click:connect(function() scrollMouseCount += 1 end) @@ -517,23 +530,24 @@ RbxGui.CreateDropDownMenu = function(items, onSelect, forRoblox) end end) - local scrollbar = Instance.new "ImageLabel" - scrollbar.Name = "ScrollBar" - scrollbar.Image = "rbxasset://textures/ui/scrollbar.png" - scrollbar.BackgroundTransparency = 1 - scrollbar.Size = UDim2.new( - 0, - 18, - (dropDownItemCount * 0.8) / ((dropDownItemCount + 1) * 0.8), - -17 - 11 - 4 - ) - scrollbar.Position = UDim2.new( - 1, - -11, - (1 * 0.8) / ((dropDownItemCount + 1) * 0.8), - 17 + 2 - ) - scrollbar.Parent = droppedDownMenu + New "ImageLabel" { + Name = "ScrollBar", + Image = "rbxasset://textures/ui/scrollbar.png", + BackgroundTransparency = 1, + Size = UDim2.new( + 0, + 18, + (dropDownItemCount * 0.8) / ((dropDownItemCount + 1) * 0.8), + -17 - 11 - 4 + ), + Position = UDim2.new( + 1, + -11, + (1 * 0.8) / ((dropDownItemCount + 1) * 0.8), + 17 + 2 + ), + Parent = droppedDownMenu, + } end for _, item in ipairs(items) do @@ -1507,47 +1521,53 @@ RbxGui.CreateTrueScrollingFrame = function() end RbxGui.CreateScrollingFrame = function(orderList, scrollStyle) - local frame = Instance.new "Frame" - frame.Name = "ScrollingFrame" - frame.BackgroundTransparency = 1 - frame.Size = UDim2.new(1, 0, 1, 0) + local frame = New "Frame" { + Name = "ScrollingFrame", + BackgroundTransparency = 1, + Size = UDim2.new(1, 0, 1, 0), + } - local scrollUpButton = Instance.new "ImageButton" - scrollUpButton.Name = "ScrollUpButton" - scrollUpButton.BackgroundTransparency = 1 - scrollUpButton.Image = "rbxasset://textures/ui/scrollbuttonUp.png" - scrollUpButton.Size = UDim2.new(0, 17, 0, 17) + local scrollUpButton = New "ImageButton" { + Name = "ScrollUpButton", + BackgroundTransparency = 1, + Image = "rbxasset://textures/ui/scrollbuttonUp.png", + Size = UDim2.new(0, 17, 0, 17), + } - local scrollDownButton = Instance.new "ImageButton" - scrollDownButton.Name = "ScrollDownButton" - scrollDownButton.BackgroundTransparency = 1 - scrollDownButton.Image = "rbxasset://textures/ui/scrollbuttonDown.png" - scrollDownButton.Size = UDim2.new(0, 17, 0, 17) + local scrollDownButton = New "ImageButton" { + Name = "ScrollDownButton", + BackgroundTransparency = 1, + Image = "rbxasset://textures/ui/scrollbuttonDown.png", + Size = UDim2.new(0, 17, 0, 17), + } - local scrollbar = Instance.new "ImageButton" - scrollbar.Name = "ScrollBar" - scrollbar.Image = "rbxasset://textures/ui/scrollbar.png" - scrollbar.BackgroundTransparency = 1 - scrollbar.Size = UDim2.new(0, 18, 0, 150) + local scrollbar = New "ImageButton" { + Name = "ScrollBar", + Image = "rbxasset://textures/ui/scrollbar.png", + BackgroundTransparency = 1, + Size = UDim2.new(0, 18, 0, 150), + } local scrollStamp = 0 - local scrollDrag = Instance.new "ImageButton" - scrollDrag.Image = "http://banland.xyz/asset/?id=61367186" - scrollDrag.Size = UDim2.new(1, 0, 0, 16) - scrollDrag.BackgroundTransparency = 1 - scrollDrag.Name = "ScrollDrag" - scrollDrag.Active = true - scrollDrag.Parent = scrollbar + local scrollDrag = New "ImageButton" { + Image = "http://banland.xyz/asset/?id=61367186", + Size = UDim2.new(1, 0, 0, 16), + BackgroundTransparency = 1, + Name = "ScrollDrag", + Active = true, + Parent = scrollbar, + } - local mouseDrag = Instance.new "ImageButton" - mouseDrag.Active = false - mouseDrag.Size = UDim2.new(1.5, 0, 1.5, 0) - mouseDrag.AutoButtonColor = false - mouseDrag.BackgroundTransparency = 1 - mouseDrag.Name = "mouseDrag" - mouseDrag.Position = UDim2.new(-0.25, 0, -0.25, 0) - mouseDrag.ZIndex = 10 + local mouseDrag = New "ImageButton" { + Active = false, + Size = UDim2.new(1.5, 0, 1.5, 0), + AutoButtonColor = false, + BackgroundTransparency = 1, + Name = "mouseDrag", + Position = UDim2.new(-0.25, 0, -0.25, 0), + ZIndex = 10, + } local style = "simple" if scrollStyle and tostring(scrollStyle) then @@ -1957,7 +1977,7 @@ RbxGui.CreateScrollingFrame = function(orderList, scrollStyle) end end - local scrollDown = function(mouseYPos) + local function scrollDown(mouseYPos) if scrollDownButton.Active then scrollStamp = tick() local current = scrollStamp @@ -2304,35 +2324,38 @@ local function TransitionTutorialPages( end RbxGui.CreateTutorial = function(name, tutorialKey, createButtons) - local frame = Instance.new "Frame" - frame.Name = "Tutorial-" .. name - frame.BackgroundTransparency = 1 - frame.Size = UDim2.new(0.6, 0, 0.6, 0) - frame.Position = UDim2.new(0.2, 0, 0.2, 0) + local frame = New "Frame" { + Name = "Tutorial-" .. name, + BackgroundTransparency = 1, + Size = UDim2.new(0.6, 0, 0.6, 0), + Position = UDim2.new(0.2, 0, 0.2, 0), + New "BoolValue" { + Name = "Buttons", + Value = createButtons, + }, + } - local transitionFrame = Instance.new "Frame" - transitionFrame.Name = "TransitionFrame" - transitionFrame.Style = Enum.FrameStyle.RobloxRound - transitionFrame.Size = UDim2.new(0.6, 0, 0.6, 0) - transitionFrame.Position = UDim2.new(0.2, 0, 0.2, 0) - transitionFrame.Visible = false - transitionFrame.Parent = frame + local transitionFrame = New "Frame" { + Name = "TransitionFrame", + Style = Enum.FrameStyle.RobloxRound, + Size = UDim2.new(0.6, 0, 0.6, 0), + Position = UDim2.new(0.2, 0, 0.2, 0), + Visible = false, + Parent = frame, + } - local currentPageValue = Instance.new "ObjectValue" - currentPageValue.Name = "CurrentTutorialPage" - currentPageValue.Value = nil - currentPageValue.Parent = frame + local currentPageValue = New "ObjectValue" { + Name = "CurrentTutorialPage", + Value = nil, + Parent = frame, + } - local boolValue = Instance.new "BoolValue" - boolValue.Name = "Buttons" - boolValue.Value = createButtons - boolValue.Parent = frame - - local pages = Instance.new "Frame" - pages.Name = "Pages" - pages.BackgroundTransparency = 1 - pages.Size = UDim2.new(1, 0, 1, 0) - pages.Parent = frame + local pages = New "Frame" { + Name = "Pages", + BackgroundTransparency = 1, + Size = UDim2.new(1, 0, 1, 0), + Parent = frame, + } local function getVisiblePageAndHideOthers() local visiblePage @@ -2409,31 +2432,59 @@ local function CreateBasicTutorialPage( skipTutorial, giveDoneButton ) - local frame = Instance.new "Frame" - frame.Name = "TutorialPage" - frame.Style = Enum.FrameStyle.RobloxRound - frame.Size = UDim2.new(0.6, 0, 0.6, 0) - frame.Position = UDim2.new(0.2, 0, 0.2, 0) - frame.Visible = false + local frame = New "Frame" { + Name = "TutorialPage", + Style = Enum.FrameStyle.RobloxRound, + Size = UDim2.new(0.6, 0, 0.6, 0), + Position = UDim2.new(0.2, 0, 0.2, 0), + Visible = false, + New "TextLabel" { + Name = "Header", + Text = name, + BackgroundTransparency = 1, + FontSize = Enum.FontSize.Size24, + Font = Enum.Font.ArialBold, + TextColor3 = Color3.new(1, 1, 1), + TextXAlignment = Enum.TextXAlignment.Center, + TextWrap = true, + Size = UDim2.new(1, -55, 0, 22), + Position = UDim2.new(0, 0, 0, 0), + }, + New "TextButton" { + Name = "NextButton", + Text = "Next", + TextColor3 = Color3.new(1, 1, 1), + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size18, + Style = Enum.ButtonStyle.RobloxButtonDefault, + Size = UDim2.new(0, 80, 0, 32), + Position = UDim2.new(0.5, 5, 1, -32), + Active = false, + Visible = false, + }, + New "TextButton" { + Name = "PrevButton", + Text = "Previous", + TextColor3 = Color3.new(1, 1, 1), + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size18, + Style = Enum.ButtonStyle.RobloxButton, + Size = UDim2.new(0, 80, 0, 32), + Position = UDim2.new(0.5, -85, 1, -32), + Active = false, + Visible = false, + }, + } - local frameHeader = Instance.new "TextLabel" - frameHeader.Name = "Header" - frameHeader.Text = name - frameHeader.BackgroundTransparency = 1 - frameHeader.FontSize = Enum.FontSize.Size24 - frameHeader.Font = Enum.Font.ArialBold - frameHeader.TextColor3 = Color3.new(1, 1, 1) - frameHeader.TextXAlignment = Enum.TextXAlignment.Center - frameHeader.TextWrap = true - frameHeader.Size = UDim2.new(1, -55, 0, 22) - frameHeader.Position = UDim2.new(0, 0, 0, 0) - frameHeader.Parent = frame + local skipButton = New "ImageButton" { + Name = "SkipButton", + AutoButtonColor = false, + BackgroundTransparency = 1, + Image = "rbxasset://textures/ui/closeButton.png", + Size = UDim2.new(0, 25, 0, 25), + Position = UDim2.new(1, -25, 0, 0), + } - local skipButton = Instance.new "ImageButton" - skipButton.Name = "SkipButton" - skipButton.AutoButtonColor = false - skipButton.BackgroundTransparency = 1 - skipButton.Image = "rbxasset://textures/ui/closeButton.png" skipButton.MouseButton1Click:connect(function() skipTutorial() end) @@ -2443,20 +2494,19 @@ local function CreateBasicTutorialPage( skipButton.MouseLeave:connect(function() skipButton.Image = "rbxasset://textures/ui/closeButton.png" end) - skipButton.Size = UDim2.new(0, 25, 0, 25) - skipButton.Position = UDim2.new(1, -25, 0, 0) skipButton.Parent = frame if giveDoneButton then - local doneButton = Instance.new "TextButton" - doneButton.Name = "DoneButton" - doneButton.Style = Enum.ButtonStyle.RobloxButtonDefault - doneButton.Text = "Done" - doneButton.TextColor3 = Color3.new(1, 1, 1) - doneButton.Font = Enum.Font.ArialBold - doneButton.FontSize = Enum.FontSize.Size18 - doneButton.Size = UDim2.new(0, 100, 0, 50) - doneButton.Position = UDim2.new(0.5, -50, 1, -50) + local doneButton = New "TextButton" { + Name = "DoneButton", + Style = Enum.ButtonStyle.RobloxButtonDefault, + Text = "Done", + TextColor3 = Color3.new(1, 1, 1), + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size18, + Size = UDim2.new(0, 100, 0, 50), + Position = UDim2.new(0.5, -50, 1, -50), + } if skipTutorial then doneButton.MouseButton1Click:connect(function() @@ -2467,37 +2517,12 @@ local function CreateBasicTutorialPage( doneButton.Parent = frame end - local innerFrame = Instance.new "Frame" - innerFrame.Name = "ContentFrame" - innerFrame.BackgroundTransparency = 1 - innerFrame.Position = UDim2.new(0, 0, 0, 25) - innerFrame.Parent = frame - - local nextButton = Instance.new "TextButton" - nextButton.Name = "NextButton" - nextButton.Text = "Next" - nextButton.TextColor3 = Color3.new(1, 1, 1) - nextButton.Font = Enum.Font.Arial - nextButton.FontSize = Enum.FontSize.Size18 - nextButton.Style = Enum.ButtonStyle.RobloxButtonDefault - nextButton.Size = UDim2.new(0, 80, 0, 32) - nextButton.Position = UDim2.new(0.5, 5, 1, -32) - nextButton.Active = false - nextButton.Visible = false - nextButton.Parent = frame - - local prevButton = Instance.new "TextButton" - prevButton.Name = "PrevButton" - prevButton.Text = "Previous" - prevButton.TextColor3 = Color3.new(1, 1, 1) - prevButton.Font = Enum.Font.Arial - prevButton.FontSize = Enum.FontSize.Size18 - prevButton.Style = Enum.ButtonStyle.RobloxButton - prevButton.Size = UDim2.new(0, 80, 0, 32) - prevButton.Position = UDim2.new(0.5, -85, 1, -32) - prevButton.Active = false - prevButton.Visible = false - prevButton.Parent = frame + local innerFrame = New "Frame" { + Name = "ContentFrame", + BackgroundTransparency = 1, + Position = UDim2.new(0, 0, 0, 25), + Parent = frame, + } if giveDoneButton then innerFrame.Size = UDim2.new(1, 0, 1, -75) @@ -2548,16 +2573,17 @@ RbxGui.CreateTextTutorialPage = function(name, text, skipTutorialFunc) local frame local contentFrame - local textLabel = Instance.new "TextLabel" - textLabel.BackgroundTransparency = 1 - textLabel.TextColor3 = Color3.new(1, 1, 1) - textLabel.Text = text - textLabel.TextWrap = true - textLabel.TextXAlignment = Enum.TextXAlignment.Left - textLabel.TextYAlignment = Enum.TextYAlignment.Center - textLabel.Font = Enum.Font.Arial - textLabel.FontSize = Enum.FontSize.Size14 - textLabel.Size = UDim2.new(1, 0, 1, 0) + local textLabel = New "TextLabel" { + BackgroundTransparency = 1, + TextColor3 = Color3.new(1, 1, 1), + Text = text, + TextWrap = true, + TextXAlignment = Enum.TextXAlignment.Left, + TextYAlignment = Enum.TextYAlignment.Center, + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size14, + Size = UDim2.new(1, 0, 1, 0), + } local function handleResize(minSize, maxSize) local size = binaryShrink(minSize, maxSize, function(newSize) @@ -2586,11 +2612,17 @@ RbxGui.CreateImageTutorialPage = function( local frame local contentFrame - local imageLabel = Instance.new "ImageLabel" - imageLabel.BackgroundTransparency = 1 - imageLabel.Image = imageAsset - imageLabel.Size = UDim2.new(0, x, 0, y) - imageLabel.Position = UDim2.new(0.5, -x / 2, 0.5, -y / 2) + -- local imageLabel = Instance.new "ImageLabel" + -- imageLabel.BackgroundTransparency = 1 + -- imageLabel.Image = imageAsset + -- imageLabel.Size = UDim2.new(0, x, 0, y) + -- imageLabel.Position = UDim2.new(0.5, -x / 2, 0.5, -y / 2) + local imageLabel = New "ImageLabel" { + BackgroundTransparency = 1, + Image = imageAsset, + Size = UDim2.new(0, x, 0, y), + Position = UDim2.new(0.5, -x / 2, 0.5, -y / 2), + } local function handleResize(minSize, maxSize) local size = binaryShrink(minSize, maxSize, function(newSize) @@ -2789,38 +2821,42 @@ RbxGui.CreateSetPanel = function( local waterForceDirections = { "NegX", "X", "NegY", "Y", "NegZ", "Z" } local waterForces = { "None", "Small", "Medium", "Strong", "Max" } - local waterFrame = Instance.new "Frame" - waterFrame.Name = "WaterFrame" - waterFrame.Style = Enum.FrameStyle.RobloxSquare - waterFrame.Size = UDim2.new(0, 150, 0, 110) - waterFrame.Visible = false + local waterFrame = New "Frame" { + Name = "WaterFrame", + Style = Enum.FrameStyle.RobloxSquare, + Size = UDim2.new(0, 150, 0, 110), + Visible = false, + } - local waterForceLabel = Instance.new "TextLabel" - waterForceLabel.Name = "WaterForceLabel" - waterForceLabel.BackgroundTransparency = 1 - waterForceLabel.Size = UDim2.new(1, 0, 0, 12) - waterForceLabel.Font = Enum.Font.ArialBold - waterForceLabel.FontSize = Enum.FontSize.Size12 - waterForceLabel.TextColor3 = Color3.new(1, 1, 1) - waterForceLabel.TextXAlignment = Enum.TextXAlignment.Left - waterForceLabel.Text = "Water Force" - waterForceLabel.Parent = waterFrame + local waterForceLabel = New "TextLabel" { + Name = "WaterForceLabel", + BackgroundTransparency = 1, + Size = UDim2.new(1, 0, 0, 12), + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size12, + TextColor3 = Color3.new(1, 1, 1), + TextXAlignment = Enum.TextXAlignment.Left, + Text = "Water Force", + Parent = waterFrame, + } - local waterForceDirLabel = waterForceLabel:Clone() - waterForceDirLabel.Name = "WaterForceDirectionLabel" - waterForceDirLabel.Text = "Water Force Direction" - waterForceDirLabel.Position = UDim2.new(0, 0, 0, 50) - waterForceDirLabel.Parent = waterFrame + local waterForceDirLabel = New(waterForceLabel:Clone()) { + Name = "WaterForceDirectionLabel", + Text = "Water Force Direction", + Position = UDim2.new(0, 0, 0, 50), + Parent = waterFrame, + } - waterTypeChangedEvent = Instance.new "BindableEvent" - waterTypeChangedEvent.Name = "WaterTypeChangedEvent" - waterTypeChangedEvent.Parent = waterFrame + waterTypeChangedEvent = New "BindableEvent" { + Name = "WaterTypeChangedEvent", + Parent = waterFrame, + } - local waterForceDirectionSelectedFunc = function(newForceDirection) + local function waterForceDirectionSelected(newForceDirection) waterForceDirection = newForceDirection waterTypeChangedEvent:Fire { waterForce, waterForceDirection } end - local waterForceSelectedFunc = function(newForce) + local function waterForceSelected(newForce) waterForce = newForce waterTypeChangedEvent:Fire { waterForce, waterForceDirection } end @@ -2828,7 +2864,7 @@ RbxGui.CreateSetPanel = function( local waterForceDirectionDropDown, forceWaterDirectionSelection = RbxGui.CreateDropDownMenu( waterForceDirections, - waterForceDirectionSelectedFunc + waterForceDirectionSelected ) waterForceDirectionDropDown.Size = UDim2.new(1, 0, 0, 25) waterForceDirectionDropDown.Position = UDim2.new(0, 0, 1, 3) @@ -2836,7 +2872,7 @@ RbxGui.CreateSetPanel = function( waterForceDirectionDropDown.Parent = waterForceDirLabel local waterForceDropDown, forceWaterForceSelection = - RbxGui.CreateDropDownMenu(waterForces, waterForceSelectedFunc) + RbxGui.CreateDropDownMenu(waterForces, waterForceSelected) forceWaterForceSelection "None" waterForceDropDown.Size = UDim2.new(1, 0, 0, 25) waterForceDropDown.Position = UDim2.new(0, 0, 1, 3) @@ -2847,13 +2883,108 @@ RbxGui.CreateSetPanel = function( -- Helper Function that contructs gui elements local function createSetGui() - setGui = Instance.new "ScreenGui" - setGui.Name = "SetGui" + setGui = New "ScreenGui" { + Name = "SetGui", + } + + local setsLists, controlFrame = RbxGui.CreateTrueScrollingFrame() + + drillDownSetZIndex(controlFrame, 7) + + local setPanel = New "Frame" { + Name = "SetPanel", + Active = true, + BackgroundTransparency = 1, + Style = Enum.FrameStyle.RobloxRound, + ZIndex = 6, + New "Frame" { + Name = "ItemPreview", + BackgroundTransparency = 1, + Position = UDim2.new(0.8, 5, 0.085, 0), + Size = UDim2.new(0.21, 0, 0.9, 0), + ZIndex = 6, + New "Frame" { + Name = "TextPanel", + BackgroundTransparency = 1, + Position = UDim2.new(0, 0, 0.45, 0), + Size = UDim2.new(1, 0, 0.55, 0), + ZIndex = 6, + New "TextLabel" { + Name = "RolloverText", + BackgroundTransparency = 1, + Size = UDim2.new(1, 0, 0, 48), + ZIndex = 6, + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size24, + Text = "", + TextColor3 = Color3.new(1, 1, 1), + TextWrap = true, + TextXAlignment = Enum.TextXAlignment.Left, + TextYAlignment = Enum.TextYAlignment.Top, + }, + }, + New "ImageLabel" { + Name = "LargePreview", + BackgroundTransparency = 1, + Image = "", + Size = UDim2.new(1, 0, 0, 170), + ZIndex = 6, + }, + }, + New "Frame" { + Name = "Sets", + BackgroundTransparency = 1, + Position = UDim2.new(0, 0, 0, 5), + Size = UDim2.new(0.23, 0, 1, -5), + ZIndex = 6, + New "Frame" { + Name = "Line", + BackgroundColor3 = Color3.new(1, 1, 1), + BackgroundTransparency = 0.7, + BorderSizePixel = 0, + Position = UDim2.new(1, -3, 0.06, 0), + Size = UDim2.new(0, 3, 0.9, 0), + ZIndex = 6, + }, + New(setsLists) { + Size = UDim2.new(1, -6, 0.94, 0), + Position = UDim2.new(0, 0, 0.06, 0), + BackgroundTransparency = 1, + Name = "SetsLists", + ZIndex = 6, + }, + New "TextLabel" { + Name = "SetsHeader", + BackgroundTransparency = 1, + Size = UDim2.new(0, 47, 0, 24), + ZIndex = 6, + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size24, + Text = "Sets", + TextColor3 = Color3.new(1, 1, 1), + TextXAlignment = Enum.TextXAlignment.Left, + TextYAlignment = Enum.TextYAlignment.Top, + }, + }, + New "TextButton" { + Name = "CancelButton", + Position = UDim2.new(1, -32, 0, -2), + Size = UDim2.new(0, 34, 0, 34), + Style = Enum.ButtonStyle.RobloxButtonDefault, + ZIndex = 6, + Text = "", + Modal = true, + New "ImageLabel" { + Name = "CancelImage", + BackgroundTransparency = 1, + Image = "http://banland.xyz/asset?id=54135717", + Position = UDim2.new(0, -2, 0, -2), + Size = UDim2.new(0, 16, 0, 16), + ZIndex = 6, + }, + }, + } - local setPanel = Instance.new "Frame" - setPanel.Name = "SetPanel" - setPanel.Active = true - setPanel.BackgroundTransparency = 1 if position then setPanel.Position = position else @@ -2864,156 +2995,42 @@ RbxGui.CreateSetPanel = function( else setPanel.Size = UDim2.new(0.6, -58, 0.64, 0) end - setPanel.Style = Enum.FrameStyle.RobloxRound - setPanel.ZIndex = 6 setPanel.Parent = setGui - -- Children of SetPanel - local itemPreview = Instance.new "Frame" - itemPreview.Name = "ItemPreview" - itemPreview.BackgroundTransparency = 1 - itemPreview.Position = UDim2.new(0.8, 5, 0.085, 0) - itemPreview.Size = UDim2.new(0.21, 0, 0.9, 0) - itemPreview.ZIndex = 6 - itemPreview.Parent = setPanel - - -- Children of ItemPreview - local textPanel = Instance.new "Frame" - textPanel.Name = "TextPanel" - textPanel.BackgroundTransparency = 1 - textPanel.Position = UDim2.new(0, 0, 0.45, 0) - textPanel.Size = UDim2.new(1, 0, 0.55, 0) - textPanel.ZIndex = 6 - textPanel.Parent = itemPreview - - -- Children of TextPanel - local rolloverText = Instance.new "TextLabel" - rolloverText.Name = "RolloverText" - rolloverText.BackgroundTransparency = 1 - rolloverText.Size = UDim2.new(1, 0, 0, 48) - rolloverText.ZIndex = 6 - rolloverText.Font = Enum.Font.ArialBold - rolloverText.FontSize = Enum.FontSize.Size24 - rolloverText.Text = "" - rolloverText.TextColor3 = Color3.new(1, 1, 1) - rolloverText.TextWrap = true - rolloverText.TextXAlignment = Enum.TextXAlignment.Left - rolloverText.TextYAlignment = Enum.TextYAlignment.Top - rolloverText.Parent = textPanel - - local largePreview = Instance.new "ImageLabel" - largePreview.Name = "LargePreview" - largePreview.BackgroundTransparency = 1 - largePreview.Image = "" - largePreview.Size = UDim2.new(1, 0, 0, 170) - largePreview.ZIndex = 6 - largePreview.Parent = itemPreview - - local sets = Instance.new "Frame" - sets.Name = "Sets" - sets.BackgroundTransparency = 1 - sets.Position = UDim2.new(0, 0, 0, 5) - sets.Size = UDim2.new(0.23, 0, 1, -5) - sets.ZIndex = 6 - sets.Parent = setPanel - - -- Children of Sets - local line = Instance.new "Frame" - line.Name = "Line" - line.BackgroundColor3 = Color3.new(1, 1, 1) - line.BackgroundTransparency = 0.7 - line.BorderSizePixel = 0 - line.Position = UDim2.new(1, -3, 0.06, 0) - line.Size = UDim2.new(0, 3, 0.9, 0) - line.ZIndex = 6 - line.Parent = sets - - local setsLists, controlFrame = RbxGui.CreateTrueScrollingFrame() - setsLists.Size = UDim2.new(1, -6, 0.94, 0) - setsLists.Position = UDim2.new(0, 0, 0.06, 0) - setsLists.BackgroundTransparency = 1 - setsLists.Name = "SetsLists" - setsLists.ZIndex = 6 - setsLists.Parent = sets - drillDownSetZIndex(controlFrame, 7) - - local setsHeader = Instance.new "TextLabel" - setsHeader.Name = "SetsHeader" - setsHeader.BackgroundTransparency = 1 - setsHeader.Size = UDim2.new(0, 47, 0, 24) - setsHeader.ZIndex = 6 - setsHeader.Font = Enum.Font.ArialBold - setsHeader.FontSize = Enum.FontSize.Size24 - setsHeader.Text = "Sets" - setsHeader.TextColor3 = Color3.new(1, 1, 1) - setsHeader.TextXAlignment = Enum.TextXAlignment.Left - setsHeader.TextYAlignment = Enum.TextYAlignment.Top - setsHeader.Parent = sets - - local cancelButton = Instance.new "TextButton" - cancelButton.Name = "CancelButton" - cancelButton.Position = UDim2.new(1, -32, 0, -2) - cancelButton.Size = UDim2.new(0, 34, 0, 34) - cancelButton.Style = Enum.ButtonStyle.RobloxButtonDefault - cancelButton.ZIndex = 6 - cancelButton.Text = "" - cancelButton.Modal = true - cancelButton.Parent = setPanel - - -- Children of Cancel Button - local cancelImage = Instance.new "ImageLabel" - cancelImage.Name = "CancelImage" - cancelImage.BackgroundTransparency = 1 - cancelImage.Image = "http://banland.xyz/asset?id=54135717" - cancelImage.Position = UDim2.new(0, -2, 0, -2) - cancelImage.Size = UDim2.new(0, 16, 0, 16) - cancelImage.ZIndex = 6 - cancelImage.Parent = cancelButton - return setGui end local function createSetButton(text) - local setButton = Instance.new "TextButton" - - if text then - setButton.Text = text - else - setButton.Text = "" - end - - setButton.AutoButtonColor = false - setButton.BackgroundTransparency = 1 - setButton.BackgroundColor3 = Color3.new(1, 1, 1) - setButton.BorderSizePixel = 0 - setButton.Size = UDim2.new(1, -5, 0, 18) - setButton.ZIndex = 6 - setButton.Visible = false - setButton.Font = Enum.Font.Arial - setButton.FontSize = Enum.FontSize.Size18 - setButton.TextColor3 = Color3.new(1, 1, 1) - setButton.TextXAlignment = Enum.TextXAlignment.Left - - return setButton + return New "TextButton" { + AutoButtonColor = false, + BackgroundTransparency = 1, + BackgroundColor3 = Color3.new(1, 1, 1), + BorderSizePixel = 0, + Size = UDim2.new(1, -5, 0, 18), + ZIndex = 6, + Visible = false, + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size18, + TextColor3 = Color3.new(1, 1, 1), + TextXAlignment = Enum.TextXAlignment.Left, + Text = text or "", + } end local function buildSetButton(name, setId, _, _, _) - local button = createSetButton(name) - button.Text = name - button.Name = "SetButton" - button.Visible = true - - local setValue = Instance.new "IntValue" - setValue.Name = "SetId" - setValue.Value = setId - setValue.Parent = button - - local setName = Instance.new "StringValue" - setName.Name = "SetName" - setName.Value = name - setName.Parent = button - - return button + return New(createSetButton(name)) { + Text = name, + Name = "SetButton", + Visible = true, + New "IntValue" { + Name = "SetId", + Value = setId, + }, + New "StringValue" { + Name = "SetName", + Value = name, + }, + } end local function processCategory(sets) @@ -3055,50 +3072,52 @@ RbxGui.CreateSetPanel = function( end local function makeInsertAssetButton() - local insertAssetButtonExample = Instance.new "Frame" - insertAssetButtonExample.Name = "InsertAssetButtonExample" - insertAssetButtonExample.Position = UDim2.new(0, 128, 0, 64) - insertAssetButtonExample.Size = UDim2.new(0, 64, 0, 64) - insertAssetButtonExample.BackgroundTransparency = 1 - insertAssetButtonExample.ZIndex = 6 - insertAssetButtonExample.Visible = false + local insertAssetButtonExample = New "Frame" { + Name = "InsertAssetButtonExample", + Position = UDim2.new(0, 128, 0, 64), + Size = UDim2.new(0, 64, 0, 64), + BackgroundTransparency = 1, + ZIndex = 6, + Visible = false, + New "IntValue" { + Name = "AssetId", + Value = 0, + }, + New "StringValue" { + Name = "AssetName", + Value = "", + }, + } - local assetId = Instance.new "IntValue" - assetId.Name = "AssetId" - assetId.Value = 0 - assetId.Parent = insertAssetButtonExample + local button = New "TextButton" { + Name = "Button", + Text = "", + Style = Enum.ButtonStyle.RobloxButton, + Position = UDim2.new(0.025, 0, 0.025, 0), + Size = UDim2.new(0.95, 0, 0.95, 0), + ZIndex = 6, + Parent = insertAssetButtonExample, + } - local assetName = Instance.new "StringValue" - assetName.Name = "AssetName" - assetName.Value = "" - assetName.Parent = insertAssetButtonExample + local buttonImage = New "ImageLabel" { + Name = "ButtonImage", + Image = "", + Position = UDim2.new(0, -7, 0, -7), + Size = UDim2.new(1, 14, 1, 14), + BackgroundTransparency = 1, + ZIndex = 7, + Parent = button, + } - local button = Instance.new "TextButton" - button.Name = "Button" - button.Text = "" - button.Style = Enum.ButtonStyle.RobloxButton - button.Position = UDim2.new(0.025, 0, 0.025, 0) - button.Size = UDim2.new(0.95, 0, 0.95, 0) - button.ZIndex = 6 - button.Parent = insertAssetButtonExample - - local buttonImage = Instance.new "ImageLabel" - buttonImage.Name = "ButtonImage" - buttonImage.Image = "" - buttonImage.Position = UDim2.new(0, -7, 0, -7) - buttonImage.Size = UDim2.new(1, 14, 1, 14) - buttonImage.BackgroundTransparency = 1 - buttonImage.ZIndex = 7 - buttonImage.Parent = button - - local configIcon = buttonImage:clone() - configIcon.Name = "ConfigIcon" - configIcon.Visible = false - configIcon.Position = UDim2.new(1, -23, 1, -24) - configIcon.Size = UDim2.new(0, 16, 0, 16) - configIcon.Image = "" - configIcon.ZIndex = 6 - configIcon.Parent = insertAssetButtonExample + New(buttonImage:Clone()) { + Name = "ConfigIcon", + Visible = false, + Position = UDim2.new(1, -23, 1, -24), + Size = UDim2.new(0, 16, 0, 16), + Image = "", + ZIndex = 6, + Parent = insertAssetButtonExample, + } return insertAssetButtonExample end @@ -3130,18 +3149,19 @@ RbxGui.CreateSetPanel = function( end local function createTerrainTypeButton(name, parent) - local dropDownTextButton = Instance.new "TextButton" - dropDownTextButton.Name = `{name}Button` - dropDownTextButton.Font = Enum.Font.ArialBold - dropDownTextButton.FontSize = Enum.FontSize.Size14 - dropDownTextButton.BorderSizePixel = 0 - dropDownTextButton.TextColor3 = Color3.new(1, 1, 1) - dropDownTextButton.Text = name - dropDownTextButton.TextXAlignment = Enum.TextXAlignment.Left - dropDownTextButton.BackgroundTransparency = 1 - dropDownTextButton.ZIndex = parent.ZIndex + 1 - dropDownTextButton.Size = UDim2.new(0, parent.Size.X.Offset - 2, 0, 16) - dropDownTextButton.Position = UDim2.new(0, 1, 0, 0) + local dropDownTextButton = New "TextButton" { + Name = `{name}Button`, + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size14, + BorderSizePixel = 0, + TextColor3 = Color3.new(1, 1, 1), + Text = name, + TextXAlignment = Enum.TextXAlignment.Left, + BackgroundTransparency = 1, + ZIndex = parent.ZIndex + 1, + Size = UDim2.new(0, parent.Size.X.Offset - 2, 0, 16), + Position = UDim2.new(0, 1, 0, 0), + } dropDownTextButton.MouseEnter:connect(function() dropDownTextButton.BackgroundTransparency = 0 @@ -3169,14 +3189,15 @@ RbxGui.CreateSetPanel = function( end local function createTerrainDropDownMenu(zIndex) - local dropDown = Instance.new "Frame" - dropDown.Name = "TerrainDropDown" - dropDown.BackgroundColor3 = Color3.new(0, 0, 0) - dropDown.BorderColor3 = Color3.new(1, 0, 0) - dropDown.Size = UDim2.new(0, 200, 0, 0) - dropDown.Visible = false - dropDown.ZIndex = zIndex - dropDown.Parent = setGui + local dropDown = New "Frame" { + Name = "TerrainDropDown", + BackgroundColor3 = Color3.new(0, 0, 0), + BorderColor3 = Color3.new(1, 0, 0), + Size = UDim2.new(0, 200, 0, 0), + Visible = false, + ZIndex = zIndex, + Parent = setGui, + } for i = 1, #terrainShapes do local shapeButton = @@ -3198,14 +3219,23 @@ RbxGui.CreateSetPanel = function( end local function createDropDownMenuButton(parent) - local dropDownButton = Instance.new "ImageButton" - dropDownButton.Name = "DropDownButton" - dropDownButton.Image = "http://banland.xyz/asset/?id=67581509" - dropDownButton.BackgroundTransparency = 1 - dropDownButton.Size = UDim2.new(0, 16, 0, 16) - dropDownButton.Position = UDim2.new(1, -24, 0, 6) - dropDownButton.ZIndex = parent.ZIndex + 2 - dropDownButton.Parent = parent + -- local dropDownButton = Instance.new "ImageButton" + -- dropDownButton.Name = "DropDownButton" + -- dropDownButton.Image = "http://banland.xyz/asset/?id=67581509" + -- dropDownButton.BackgroundTransparency = 1 + -- dropDownButton.Size = UDim2.new(0, 16, 0, 16) + -- dropDownButton.Position = UDim2.new(1, -24, 0, 6) + -- dropDownButton.ZIndex = parent.ZIndex + 2 + -- dropDownButton.Parent = parent + local dropDownButton = New "ImageButton" { + Name = "DropDownButton", + Image = "http://banland.xyz/asset/?id=67581509", + BackgroundTransparency = 1, + Size = UDim2.new(0, 16, 0, 16), + Position = UDim2.new(1, -24, 0, 6), + ZIndex = parent.ZIndex + 2, + Parent = parent, + } if not setGui:FindFirstChild "TerrainDropDown" then createTerrainDropDownMenu(8) @@ -3529,12 +3559,14 @@ RbxGui.CreateSetPanel = function( ) local scrollFrame, controlFrame = RbxGui.CreateTrueScrollingFrame() - scrollFrame.Size = UDim2.new(0.54, 0, 0.85, 0) - scrollFrame.Position = UDim2.new(0.24, 0, 0.085, 0) - scrollFrame.Name = "ItemsFrame" - scrollFrame.ZIndex = 6 - scrollFrame.Parent = setGui.SetPanel - scrollFrame.BackgroundTransparency = 1 + New(scrollFrame) { + Size = UDim2.new(0.54, 0, 0.85, 0), + Position = UDim2.new(0.24, 0, 0.085, 0), + Name = "ItemsFrame", + ZIndex = 6, + Parent = setGui.SetPanel, + BackgroundTransparency = 1, + } drillDownSetZIndex(controlFrame, 7) @@ -3805,28 +3837,29 @@ RbxGui.CreateTerrainMaterialSelector = function(size, position) end local function createMaterialButton(name) - local buttonWrap = Instance.new "TextButton" - buttonWrap.Text = "" - buttonWrap.Size = UDim2.new(0, 32, 0, 32) - buttonWrap.BackgroundColor3 = Color3.new(1, 1, 1) - buttonWrap.BorderSizePixel = 0 - buttonWrap.BackgroundTransparency = 1 - buttonWrap.AutoButtonColor = false - buttonWrap.Name = tostring(name) + local buttonWrap = New "TextButton" { + Text = "", + Size = UDim2.new(0, 32, 0, 32), + BackgroundColor3 = Color3.new(1, 1, 1), + BorderSizePixel = 0, + BackgroundTransparency = 1, + AutoButtonColor = false, + Name = tostring(name), + New "NumberValue" { + Name = "EnumType", + Value = 0, + }, + } - local imageButton = Instance.new "ImageButton" - imageButton.AutoButtonColor = false - imageButton.BackgroundTransparency = 1 - imageButton.Size = UDim2.new(0, 30, 0, 30) - imageButton.Position = UDim2.new(0, 1, 0, 1) - imageButton.Name = tostring(name) - imageButton.Parent = buttonWrap - imageButton.Image = materialToImageMap[name].Regular - - local enumType = Instance.new "NumberValue" - enumType.Name = "EnumType" - enumType.Parent = buttonWrap - enumType.Value = 0 + local imageButton = New "ImageButton" { + AutoButtonColor = false, + BackgroundTransparency = 1, + Size = UDim2.new(0, 30, 0, 30), + Position = UDim2.new(0, 1, 0, 1), + Name = tostring(name), + Parent = buttonWrap, + Image = materialToImageMap[name].Regular, + } imageButton.MouseEnter:connect(function() buttonWrap.BackgroundTransparency = 0 @@ -3902,9 +3935,21 @@ RbxGui.CreateLoadingFrame = function(name, size, position) game:GetService("ContentProvider") :Preload "http://banland.xyz/asset/?id=35238053" - local loadingFrame = Instance.new "Frame" - loadingFrame.Name = "LoadingFrame" - loadingFrame.Style = Enum.FrameStyle.RobloxRound + local loadingFrame = New "Frame" { + Name = "LoadingFrame", + Style = Enum.FrameStyle.RobloxRound, + New "TextLabel" { + Name = "loadingName", + BackgroundTransparency = 1, + Size = UDim2.new(1, 0, 0, 18), + Position = UDim2.new(0, 0, 0, 2), + Font = Enum.Font.Arial, + Text = name, + TextColor3 = Color3.new(1, 1, 1), + TextStrokeTransparency = 1, + FontSize = Enum.FontSize.Size18, + }, + } if size then loadingFrame.Size = size @@ -3917,65 +3962,59 @@ RbxGui.CreateLoadingFrame = function(name, size, position) loadingFrame.Position = UDim2.new(0.5, -150, 0.5, -80) end - local loadingBar = Instance.new "Frame" - loadingBar.Name = "LoadingBar" - loadingBar.BackgroundColor3 = Color3.new(0, 0, 0) - loadingBar.BorderColor3 = Color3.new(79 / 255, 79 / 255, 79 / 255) - loadingBar.Position = UDim2.new(0, 0, 0, 41) - loadingBar.Size = UDim2.new(1, 0, 0, 30) - loadingBar.Parent = loadingFrame + local loadingBar = New "Frame" { + Name = "LoadingBar", + BackgroundColor3 = Color3.new(0, 0, 0), + BorderColor3 = Color3.new(79 / 255, 79 / 255, 79 / 255), + Position = UDim2.new(0, 0, 0, 41), + Size = UDim2.new(1, 0, 0, 30), + Parent = loadingFrame, + } - local loadingGreenBar = Instance.new "ImageLabel" - loadingGreenBar.Name = "LoadingGreenBar" - loadingGreenBar.Image = "http://banland.xyz/asset/?id=35238053" - loadingGreenBar.Position = UDim2.new(0, 0, 0, 0) - loadingGreenBar.Size = UDim2.new(0, 0, 1, 0) - loadingGreenBar.Visible = false - loadingGreenBar.Parent = loadingBar + local loadingGreenBar = New "ImageLabel" { + Name = "LoadingGreenBar", + Image = "http://banland.xyz/asset/?id=35238053", + Position = UDim2.new(0, 0, 0, 0), + Size = UDim2.new(0, 0, 1, 0), + Visible = false, + Parent = loadingBar, + } - local loadingPercent = Instance.new "TextLabel" - loadingPercent.Name = "LoadingPercent" - loadingPercent.BackgroundTransparency = 1 - loadingPercent.Position = UDim2.new(0, 0, 1, 0) - loadingPercent.Size = UDim2.new(1, 0, 0, 14) - loadingPercent.Font = Enum.Font.Arial - loadingPercent.Text = "0%" - loadingPercent.FontSize = Enum.FontSize.Size14 - loadingPercent.TextColor3 = Color3.new(1, 1, 1) - loadingPercent.Parent = loadingBar + local loadingPercent = New "TextLabel" { + Name = "LoadingPercent", + BackgroundTransparency = 1, + Position = UDim2.new(0, 0, 1, 0), + Size = UDim2.new(1, 0, 0, 14), + Font = Enum.Font.Arial, + Text = "0%", + FontSize = Enum.FontSize.Size14, + TextColor3 = Color3.new(1, 1, 1), + Parent = loadingBar, + } - local cancelButton = Instance.new "TextButton" - cancelButton.Name = "CancelButton" - cancelButton.Position = UDim2.new(0.5, -60, 1, -40) - cancelButton.Size = UDim2.new(0, 120, 0, 40) - cancelButton.Font = Enum.Font.Arial - cancelButton.FontSize = Enum.FontSize.Size18 - cancelButton.TextColor3 = Color3.new(1, 1, 1) - cancelButton.Text = "Cancel" - cancelButton.Style = Enum.ButtonStyle.RobloxButton - cancelButton.Parent = loadingFrame + local cancelButton = New "TextButton" { + Name = "CancelButton", + Position = UDim2.new(0.5, -60, 1, -40), + Size = UDim2.new(0, 120, 0, 40), + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size18, + TextColor3 = Color3.new(1, 1, 1), + Text = "Cancel", + Style = Enum.ButtonStyle.RobloxButton, + Parent = loadingFrame, + } - local loadingName = Instance.new "TextLabel" - loadingName.Name = "loadingName" - loadingName.BackgroundTransparency = 1 - loadingName.Size = UDim2.new(1, 0, 0, 18) - loadingName.Position = UDim2.new(0, 0, 0, 2) - loadingName.Font = Enum.Font.Arial - loadingName.Text = name - loadingName.TextColor3 = Color3.new(1, 1, 1) - loadingName.TextStrokeTransparency = 1 - loadingName.FontSize = Enum.FontSize.Size18 - loadingName.Parent = loadingFrame + local cancelButtonClicked = New "BindableEvent" { + Name = "CancelButtonClicked", + Parent = cancelButton, + } - local cancelButtonClicked = Instance.new "BindableEvent" - cancelButtonClicked.Name = "CancelButtonClicked" - cancelButtonClicked.Parent = cancelButton cancelButton.MouseButton1Click:connect(function() cancelButtonClicked:Fire() end) - local updateLoadingGuiPercent = function( - percent: number, + local function updateLoadingGuiPercent( + percent: number, -- thats not a percent bruh tweenAction, tweenLength ) @@ -4049,18 +4088,19 @@ RbxGui.CreatePluginFrame = function(name, size, position, scrollable, parent) name, parent ) - local button = Instance.new "TextButton" - button.AutoButtonColor = false - button.Name = name - button.BackgroundTransparency = 1 - button.Position = position - button.Size = size - button.Font = Enum.Font.ArialBold - button.FontSize = fontsize - button.Text = text - button.TextColor3 = Color3.new(1, 1, 1) - button.BorderSizePixel = 0 - button.BackgroundColor3 = Color3.new(20 / 255, 20 / 255, 20 / 255) + local button = New "TextButton" { + AutoButtonColor = false, + Name = name, + BackgroundTransparency = 1, + Position = position, + Size = size, + Font = Enum.Font.ArialBold, + FontSize = fontsize, + Text = text, + TextColor3 = Color3.new(1, 1, 1), + BorderSizePixel = 0, + BackgroundColor3 = Color3.new(20 / 255, 20 / 255, 20 / 255), + } button.MouseEnter:connect(function() if button.Selected then @@ -4080,10 +4120,25 @@ RbxGui.CreatePluginFrame = function(name, size, position, scrollable, parent) return button end - local dragBar = Instance.new "Frame" - dragBar.Name = `{name}DragBar` - dragBar.BackgroundColor3 = Color3.new(39 / 255, 39 / 255, 39 / 255) - dragBar.BorderColor3 = Color3.new(0, 0, 0) + local dragBar = New "ImageButton" { + Name = `{name}DragBar`, + BackgroundColor3 = Color3.new(39 / 255, 39 / 255, 39 / 255), + BorderColor3 = Color3.new(0, 0, 0), + Active = true, + Draggable = true, + -- plugin name label + New "TextLabel" { + Name = "BarNameLabel", + Text = ` {name}`, + TextColor3 = Color3.new(1, 1, 1), + TextStrokeTransparency = 0, + Size = UDim2.new(1, 0, 1, 0), + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size18, + TextXAlignment = Enum.TextXAlignment.Left, + BackgroundTransparency = 1, + }, + } if size then dragBar.Size = UDim2.new(size.X.Scale, size.X.Offset, 0, 20) + UDim2.new(0, 20, 0, 0) @@ -4093,8 +4148,6 @@ RbxGui.CreatePluginFrame = function(name, size, position, scrollable, parent) if position then dragBar.Position = position end - dragBar.Active = true - dragBar.Draggable = true --dragBar.Visible = false dragBar.MouseEnter:connect(function() dragBar.BackgroundColor3 = Color3.new(49 / 255, 49 / 255, 49 / 255) @@ -4104,19 +4157,6 @@ RbxGui.CreatePluginFrame = function(name, size, position, scrollable, parent) end) dragBar.Parent = parent - -- plugin name label - local pluginNameLabel = Instance.new "TextLabel" - pluginNameLabel.Name = "BarNameLabel" - pluginNameLabel.Text = ` {name}` - pluginNameLabel.TextColor3 = Color3.new(1, 1, 1) - pluginNameLabel.TextStrokeTransparency = 0 - pluginNameLabel.Size = UDim2.new(1, 0, 1, 0) - pluginNameLabel.Font = Enum.Font.ArialBold - pluginNameLabel.FontSize = Enum.FontSize.Size18 - pluginNameLabel.TextXAlignment = Enum.TextXAlignment.Left - pluginNameLabel.BackgroundTransparency = 1 - pluginNameLabel.Parent = dragBar - -- close button local closeButton = createMenuButton( UDim2.new(0, 15, 0, 17), @@ -4126,9 +4166,10 @@ RbxGui.CreatePluginFrame = function(name, size, position, scrollable, parent) "CloseButton", dragBar ) - local closeEvent = Instance.new "BindableEvent" - closeEvent.Name = "CloseEvent" - closeEvent.Parent = closeButton + local closeEvent = New "BindableEvent" { + Name = "CloseEvent", + Parent = closeButton, + } closeButton.MouseButton1Click:connect(function() closeEvent:Fire() closeButton.BackgroundTransparency = 1 @@ -4143,15 +4184,17 @@ RbxGui.CreatePluginFrame = function(name, size, position, scrollable, parent) "HelpButton", dragBar ) - local helpFrame = Instance.new "Frame" - helpFrame.Name = "HelpFrame" - helpFrame.BackgroundColor3 = Color3.new(0, 0, 0) - helpFrame.Size = UDim2.new(0, 300, 0, 552) - helpFrame.Position = UDim2.new(1, 5, 0, 0) - helpFrame.Active = true - helpFrame.BorderSizePixel = 0 - helpFrame.Visible = false - helpFrame.Parent = dragBar + + local helpFrame = New "Frame" { + Name = "HelpFrame", + BackgroundColor3 = Color3.new(0, 0, 0), + Size = UDim2.new(0, 300, 0, 552), + Position = UDim2.new(1, 5, 0, 0), + Active = true, + BorderSizePixel = 0, + Visible = false, + Parent = dragBar, + } helpButton.MouseButton1Click:connect(function() helpFrame.Visible = not helpFrame.Visible @@ -4188,49 +4231,53 @@ RbxGui.CreatePluginFrame = function(name, size, position, scrollable, parent) ) minimizeButton.TextYAlignment = Enum.TextYAlignment.Top - local minimizeFrame = Instance.new "Frame" - minimizeFrame.Name = "MinimizeFrame" - minimizeFrame.BackgroundColor3 = Color3.new(73 / 255, 73 / 255, 73 / 255) - minimizeFrame.BorderColor3 = Color3.new(0, 0, 0) - minimizeFrame.Position = UDim2.new(0, 0, 1, 0) + local minimizeFrame = New "Frame" { + Name = "MinimizeFrame", + BackgroundColor3 = Color3.new(73 / 255, 73 / 255, 73 / 255), + BorderColor3 = Color3.new(0, 0, 0), + Position = UDim2.new(0, 0, 1, 0), + Visible = false, + Parent = dragBar, + } if size then minimizeFrame.Size = UDim2.new(size.X.Scale, size.X.Offset, 0, 50) + UDim2.new(0, 20, 0, 0) else minimizeFrame.Size = UDim2.new(0, 183, 0, 50) end - minimizeFrame.Visible = false minimizeFrame.Parent = dragBar - local minimizeBigButton = Instance.new "TextButton" - minimizeBigButton.Position = UDim2.new(0.5, -50, 0.5, -20) - minimizeBigButton.Name = "MinimizeButton" - minimizeBigButton.Size = UDim2.new(0, 100, 0, 40) - minimizeBigButton.Style = Enum.ButtonStyle.RobloxButton - minimizeBigButton.Font = Enum.Font.ArialBold - minimizeBigButton.FontSize = Enum.FontSize.Size18 - minimizeBigButton.TextColor3 = Color3.new(1, 1, 1) - minimizeBigButton.Text = "Show" - minimizeBigButton.Parent = minimizeFrame + local minimizeBigButton = New "TextButton" { + Position = UDim2.new(0.5, -50, 0.5, -20), + Size = UDim2.new(0, 100, 0, 40), + Style = Enum.ButtonStyle.RobloxButton, + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size18, + TextColor3 = Color3.new(1, 1, 1), + Text = "Show", + Parent = minimizeFrame, + } - local separatingLine = Instance.new "Frame" - separatingLine.Name = "SeparatingLine" - separatingLine.BackgroundColor3 = - Color3.new(115 / 255, 115 / 255, 115 / 255) - separatingLine.BorderSizePixel = 0 - separatingLine.Position = UDim2.new(1, -18, 0.5, -7) - separatingLine.Size = UDim2.new(0, 1, 0, 14) - separatingLine.Parent = dragBar + local separatingLine = New "Frame" { + Name = "SeparatingLine", + BackgroundColor3 = Color3.new(115 / 255, 115 / 255, 115 / 255), + BorderSizePixel = 0, + Position = UDim2.new(1, -18, 0.5, -7), + Size = UDim2.new(0, 1, 0, 14), + Parent = dragBar, + } + -- otherSeparatingLine + New(separatingLine:clone()) { + Position = UDim2.new(1, -35, 0.5, -7), + Parent = dragBar, + } - local otherSeparatingLine = separatingLine:clone() - otherSeparatingLine.Position = UDim2.new(1, -35, 0.5, -7) - otherSeparatingLine.Parent = dragBar - - local widgetContainer = Instance.new "Frame" - widgetContainer.Name = "WidgetContainer" - widgetContainer.BackgroundTransparency = 1 - widgetContainer.Position = UDim2.new(0, 0, 1, 0) - widgetContainer.BorderColor3 = Color3.new(0, 0, 0) + local widgetContainer = New "Frame" { + Name = "WidgetContainer", + BackgroundTransparency = 1, + Position = UDim2.new(0, 0, 1, 0), + BorderColor3 = Color3.new(0, 0, 0), + } if not scrollable then widgetContainer.BackgroundTransparency = 0 widgetContainer.BackgroundColor3 = @@ -4264,16 +4311,26 @@ RbxGui.CreatePluginFrame = function(name, size, position, scrollable, parent) if scrollable then --frame for widgets frame, control = RbxGui.CreateTrueScrollingFrame() - frame.Size = UDim2.new(1, 0, 1, 0) - frame.BackgroundColor3 = Color3.new(72 / 255, 72 / 255, 72 / 255) - frame.BorderColor3 = Color3.new(0, 0, 0) - frame.Active = true - frame.Parent = widgetContainer - control.Parent = dragBar - control.BackgroundColor3 = Color3.new(72 / 255, 72 / 255, 72 / 255) - control.BorderSizePixel = 0 - control.BackgroundTransparency = 0 - control.Position = UDim2.new(1, -21, 1, 1) + New(frame) { + Size = UDim2.new(1, 0, 1, 0), + BackgroundColor3 = Color3.new(72 / 255, 72 / 255, 72 / 255), + BorderColor3 = Color3.new(0, 0, 0), + Active = true, + Parent = widgetContainer, + } + New(control) { + BackgroundColor3 = Color3.new(72 / 255, 72 / 255, 72 / 255), + BorderSizePixel = 0, + BackgroundTransparency = 0, + Position = UDim2.new(1, -21, 1, 1), + New "Frame" { + Name = "FakeLine", + BackgroundColor3 = Color3.new(0, 0, 0), + BorderSizePixel = 0, + Size = UDim2.new(0, 1, 1, 1), + Position = UDim2.new(1, 0, 0, 0), + }, + } if size then control.Size = UDim2.new(0, 21, size.Y.Scale, size.Y.Offset) else @@ -4282,52 +4339,52 @@ RbxGui.CreatePluginFrame = function(name, size, position, scrollable, parent) control:FindFirstChild("ScrollDownButton").Position = UDim2.new(0, 0, 1, -20) - local fakeLine = Instance.new "Frame" - fakeLine.Name = "FakeLine" - fakeLine.BorderSizePixel = 0 - fakeLine.BackgroundColor3 = Color3.new(0, 0, 0) - fakeLine.Size = UDim2.new(0, 1, 1, 1) - fakeLine.Position = UDim2.new(1, 0, 0, 0) - fakeLine.Parent = control + control.Parent = dragBar - verticalDragger = Instance.new "TextButton" - verticalDragger.ZIndex = 2 - verticalDragger.AutoButtonColor = false - verticalDragger.Name = "VerticalDragger" - verticalDragger.BackgroundColor3 = - Color3.new(50 / 255, 50 / 255, 50 / 255) - verticalDragger.BorderColor3 = Color3.new(0, 0, 0) - verticalDragger.Size = UDim2.new(1, 20, 0, 20) - verticalDragger.Position = UDim2.new(0, 0, 1, 0) - verticalDragger.Active = true - verticalDragger.Text = "" - verticalDragger.Parent = widgetContainer + verticalDragger = New "TextButton" { + ZIndex = 2, + AutoButtonColor = false, + Name = "VerticalDragger", + BackgroundColor3 = Color3.new(50 / 255, 50 / 255, 50 / 255), + BorderColor3 = Color3.new(0, 0, 0), + Size = UDim2.new(1, 20, 0, 20), + Position = UDim2.new(0, 0, 1, 0), + Active = true, + Text = "", + Parent = widgetContainer, + } - local scrubFrame = Instance.new "Frame" - scrubFrame.Name = "ScrubFrame" - scrubFrame.BackgroundColor3 = Color3.new(1, 1, 1) - scrubFrame.BorderSizePixel = 0 - scrubFrame.Position = UDim2.new(0.5, -5, 0.5, 0) - scrubFrame.Size = UDim2.new(0, 10, 0, 1) - scrubFrame.ZIndex = 5 - scrubFrame.Parent = verticalDragger - local scrubTwo = scrubFrame:clone() - scrubTwo.Position = UDim2.new(0.5, -5, 0.5, -2) - scrubTwo.Parent = verticalDragger - local scrubThree = scrubFrame:clone() - scrubThree.Position = UDim2.new(0.5, -5, 0.5, 2) - scrubThree.Parent = verticalDragger + local scrubFrame = New "Frame" { + Name = "ScrubFrame", + BackgroundColor3 = Color3.new(1, 1, 1), + BorderSizePixel = 0, + Position = UDim2.new(0.5, -5, 0.5, 0), + Size = UDim2.new(0, 10, 0, 1), + ZIndex = 5, + Parent = verticalDragger, + } + -- scrubTwo + New(scrubFrame:clone()) { + Position = UDim2.new(0.5, -5, 0.5, -2), + Parent = verticalDragger, + } + -- scrubThree + New(scrubFrame:clone()) { + Position = UDim2.new(0.5, -5, 0.5, 2), + Parent = verticalDragger, + } - local areaSoak = Instance.new "TextButton" - areaSoak.Name = "AreaSoak" - areaSoak.Size = UDim2.new(1, 0, 1, 0) - areaSoak.BackgroundTransparency = 1 - areaSoak.BorderSizePixel = 0 - areaSoak.Text = "" - areaSoak.ZIndex = 10 - areaSoak.Visible = false - areaSoak.Active = true - areaSoak.Parent = getScreenGuiAncestor(parent) + local areaSoak = New "TextButton" { + Name = "AreaSoak", + Size = UDim2.new(1, 0, 1, 0), + BackgroundTransparency = 1, + BorderSizePixel = 0, + Text = "", + ZIndex = 10, + Visible = false, + Active = true, + Parent = getScreenGuiAncestor(parent), + } local draggingVertical = false local startYPos diff --git a/luau/45374389.luau b/luau/45374389.luau deleted file mode 100644 index 159de50..0000000 --- a/luau/45374389.luau +++ /dev/null @@ -1,23 +0,0 @@ --- RbxGear (unused) -print "[Mercury]: Loaded corescript 45374389" - -local t = {} - -t.Foo = function() - print "foo" -end - -t.Bar = function() - print "bar" -end - -t.Help = function(funcNameOrFunc) - --input argument can be a string or a function. Should return a description (of arguments and expected side effects) - if funcNameOrFunc == "Foo" or funcNameOrFunc == t.Foo then - return "Function Foo. Arguments: None. Side effect: prints foo" - elseif funcNameOrFunc == "Bar" or funcNameOrFunc == t.Bar then - return "Function Bar. Arguments: None. Side effect: prints bar" - end -end - -return t diff --git a/luau/60595695.luau b/luau/60595695.luau index 8457295..d66b2e0 100644 --- a/luau/60595695.luau +++ b/luau/60595695.luau @@ -15,22 +15,17 @@ for i = 1, 4 do wait(0.2) end -local function RegisterLibraries(t: { [string]: number }) - for name, id in pairs(t) do - ScriptContext:RegisterLibrary(`Libraries/Rbx{name}`, tostring(id)) - end -end - if ScriptContext then - RegisterLibraries { + for name, id in pairs { Fusion = 10000001, Red = 10000002, Gui = 45284430, - Gear = 45374389, Utility = 60595411, Stamper = 73157242, - } + } do + ScriptContext:RegisterLibrary(`Libraries/Rbx{name}`, tostring(id)) + end ScriptContext:LibraryRegistrationComplete() else - print "failed to find script context, libraries did not load" + print "[Mercury]: Failed to find ScriptContext, libraries did not load" end diff --git a/luau/97188756.luau b/luau/97188756.luau index 420c4fc..e551b66 100644 --- a/luau/97188756.luau +++ b/luau/97188756.luau @@ -8,6 +8,8 @@ print "[Mercury]: Loaded corescript 97188756" //NOTE: If you find any bugs or inaccuracies PM Sorcus on Roblox or @Canavus on Twitter ]] +local SafeChat = require "../Modules/Safechat.yml" + local forceChatGUI = false -- Utility functions + Globals @@ -181,731 +183,7 @@ local Chat = { Admins_List = { "taskmanager", "Heliodex", "tako" }, - SafeChat_List = { - ["Use the Chat menu to talk to me."] = { "/sc 0", true }, - ["I can only see menu chats."] = { "/sc 1", true }, - ["Hello"] = { - ["Hi"] = { - "/sc 2_0", - true, - ["Hi there!"] = true, - ["Hi everyone"] = true, - }, - ["Howdy"] = { "/sc 2_1", true, ["Howdy partner!"] = true }, - ["Greetings"] = { - "/sc 2_2", - true, - ["Greetings everyone"] = true, - ["Greetings Robloxians!"] = true, - ["Seasons greetings!"] = true, - }, - ["Welcome"] = { - "/sc 2_3", - true, - ["Welcome to my place"] = true, - ["Welcome to my barbeque"] = true, - ["Welcome to our base"] = true, - }, - ["Hey there!"] = { "/sc 2_4", true }, - ["What's up?"] = { - "/sc 2_5", - true, - ["How are you doing?"] = true, - ["How's it going?"] = true, - ["What's new?"] = true, - }, - ["Good day"] = { - "/sc 2_6", - true, - ["Good morning"] = true, - ["Good evening"] = true, - ["Good afternoon"] = true, - ["Good night"] = true, - }, - ["Silly"] = { - "/sc 2_7", - true, - ["Waaaaaaaz up?!"] = true, - ["Hullo!"] = true, - ["Behold greatness, mortals!"] = true, - ["Pardon me, is this Sparta?"] = true, - ["THIS IS SPARTAAAA!"] = true, - }, - ["Happy Holidays!"] = { - "/sc 2_8", - true, - ["Happy New Year!"] = true, - ["Happy Valentine's Day!"] = true, - ["Beware the Ides of March!"] = true, - ["Happy St. Patrick's Day!"] = true, - ["Happy Easter!"] = true, - ["Happy Earth Day!"] = true, - ["Happy 4th of July!"] = true, - ["Happy Thanksgiving!"] = true, - ["Happy Halloween!"] = true, - ["Happy Hanukkah!"] = true, - ["Merry Christmas!"] = true, - ["Happy May Day!"] = true, - ["Happy Towel Day!"] = true, - ["Happy Mercury Day!"] = true, - ["Happy LOL Day!"] = true, - }, - - [1] = "/sc 2", - }, - ["Goodbye"] = { - ["Good Night"] = { - "/sc 3_0", - true, - ["Sweet dreams"] = true, - ["Go to sleep!"] = true, - ["Lights out!"] = true, - ["Bedtime"] = true, - ["Going to bed now"] = true, - }, - - ["Later"] = { - "/sc 3_1", - true, - ["See ya later"] = true, - ["Later gator!"] = true, - ["See you tomorrow"] = true, - }, - - ["Bye"] = { "/sc 3_2", true, ["Hasta la bye bye!"] = true }, - ["I'll be right back"] = { "/sc 3_3", true }, - ["I have to go"] = { "/sc 3_4", true }, - ["Farewell"] = { - "/sc 3_5", - true, - ["Take care"] = true, - ["Have a nice day"] = true, - ["Goodluck!"] = true, - ["Ta-ta for now!"] = true, - }, - ["Peace"] = { - "/sc 3_6", - true, - ["Peace out!"] = true, - ["Peace dudes!"] = true, - ["Rest in pieces!"] = true, - }, - ["Silly"] = { - "/sc 3_7", - true, - ["To the batcave!"] = true, - ["Over and out!"] = true, - ["Happy trails!"] = true, - ["I've got to book it!"] = true, - ["Tootles!"] = true, - ["Smell you later!"] = true, - ["GG!"] = true, - ["My house is on fire! gtg."] = true, - }, - [1] = "/sc 3", - }, - ["Friend"] = { - ["Wanna be friends?"] = { "/sc 4_0", true }, - ["Follow me"] = { - "/sc 4_1", - true, - ["Come to my place!"] = true, - ["Come to my base!"] = true, - ["Follow me, team!"] = true, - ["Follow me"] = true, - }, - ["Your place is cool"] = { - "/sc 4_2", - true, - ["Your place is fun"] = true, - ["Your place is awesome"] = true, - ["Your place looks good"] = true, - ["This place is awesome!"] = true, - }, - ["Thank you"] = { - "/sc 4_3", - true, - ["Thanks for playing"] = true, - ["Thanks for visiting"] = true, - ["Thanks for everything"] = true, - ["No, thank you"] = true, - ["Thanx"] = true, - }, - ["No problem"] = { - "/sc 4_4", - true, - ["Don't worry"] = true, - ["That's ok"] = true, - ["np"] = true, - }, - ["You are ..."] = { - "/sc 4_5", - true, - ["You are great!"] = true, - ["You are good!"] = true, - ["You are cool!"] = true, - ["You are funny!"] = true, - ["You are silly!"] = true, - ["You are awesome!"] = true, - ["You are doing something I don't like, please stop"] = true, - }, - ["I like ..."] = { - "/sc 4_6", - true, - ["I like your name"] = true, - ["I like your shirt"] = true, - ["I like your place"] = true, - ["I like your style"] = true, - ["I like you"] = true, - ["I like items"] = true, - ["I like money"] = true, - }, - ["Sorry"] = { - "/sc 4_7", - true, - ["My bad!"] = true, - ["I'm sorry"] = true, - ["Whoops!"] = true, - ["Please forgive me."] = true, - ["I forgive you."] = true, - ["I didn't mean to do that."] = true, - ["Sorry, I'll stop now."] = true, - }, - [1] = "/sc 4", - }, - ["Questions"] = { - ["Who?"] = { - "/sc 5_0", - true, - ["Who wants to be my friend?"] = true, - ["Who wants to be on my team?"] = true, - ["Who made this brilliant game?"] = true, - }, - ["What?"] = { - "/sc 5_1", - true, - ["What is your favorite animal?"] = true, - ["What is your favorite game?"] = true, - ["What is your favorite movie?"] = true, - ["What is your favorite TV show?"] = true, - ["What is your favorite music?"] = true, - ["What are your hobbies?"] = true, - ["LOLWUT?"] = true, - }, - ["When?"] = { - "/sc 5_2", - true, - ["When are you online?"] = true, - ["When is the new version coming out?"] = true, - ["When can we play again?"] = true, - ["When will your place be done?"] = true, - }, - ["Where?"] = { - "/sc 5_3", - true, - ["Where do you want to go?"] = true, - ["Where are you going?"] = true, - ["Where am I?!"] = true, - ["Where did you go?"] = true, - }, - ["How?"] = { - "/sc 5_4", - true, - ["How are you today?"] = true, - ["How did you make this cool place?"] = true, - ["LOLHOW?"] = true, - }, - ["Can I..."] = { - "/sc 5_5", - true, - ["Can I have a tour?"] = true, - ["Can I be on your team?"] = true, - ["Can I be your friend?"] = true, - ["Can I try something?"] = true, - ["Can I have that please?"] = true, - ["Can I have that back please?"] = true, - ["Can I have borrow your hat?"] = true, - ["Can I have borrow your gear?"] = true, - }, - [1] = "/sc 5", - }, - ["Answers"] = { - ["You need help?"] = { - "/sc 6_0", - true, - ["Check out the news section"] = true, - ["Check out the help section"] = true, - ["Read the wiki!"] = true, - ["All the answers are in the wiki!"] = true, - ["I will help you with this."] = true, - }, - ["Some people ..."] = { - "/sc 6_1", - true, - ["Me"] = true, - ["Not me"] = true, - ["You"] = true, - ["All of us"] = true, - ["Everyone but you"] = true, - ["Builderman!"] = true, - ["Telamon!"] = true, - ["My team"] = true, - ["My group"] = true, - ["Mom"] = true, - ["Dad"] = true, - ["Sister"] = true, - ["Brother"] = true, - ["Cousin"] = true, - ["Grandparent"] = true, - ["Friend"] = true, - }, - ["Time ..."] = { - "/sc 6_2", - true, - ["In the morning"] = true, - ["In the afternoon"] = true, - ["At night"] = true, - ["Tomorrow"] = true, - ["This week"] = true, - ["This month"] = true, - ["Sometime"] = true, - ["Sometimes"] = true, - ["Whenever you want"] = true, - ["Never"] = true, - ["After this"] = true, - ["In 10 minutes"] = true, - ["In a couple hours"] = true, - ["In a couple days"] = true, - }, - ["Animals"] = { - "/sc 6_3", - true, - ["Cats"] = { - ["Lion"] = true, - ["Tiger"] = true, - ["Leopard"] = true, - ["Cheetah"] = true, - }, - ["Dogs"] = { - ["Wolves"] = true, - ["Beagle"] = true, - ["Collie"] = true, - ["Dalmatian"] = true, - ["Poodle"] = true, - ["Spaniel"] = true, - ["Shepherd"] = true, - ["Terrier"] = true, - ["Retriever"] = true, - }, - ["Horses"] = { - ["Ponies"] = true, - ["Stallions"] = true, - ["Pwnyz"] = true, - }, - ["Reptiles"] = { - ["Dinosaurs"] = true, - ["Lizards"] = true, - ["Snakes"] = true, - ["Turtles!"] = true, - }, - ["Hamster"] = true, - ["Monkey"] = true, - ["Bears"] = true, - ["Fish"] = { - ["Goldfish"] = true, - ["Sharks"] = true, - ["Sea Bass"] = true, - ["Halibut"] = true, - ["Tropical Fish"] = true, - }, - ["Birds"] = { - ["Eagles"] = true, - ["Penguins"] = true, - ["Parakeets"] = true, - ["Owls"] = true, - ["Hawks"] = true, - ["Pidgeons"] = true, - }, - ["Elephants"] = true, - ["Mythical Beasts"] = { - ["Dragons"] = true, - ["Unicorns"] = true, - ["Sea Serpents"] = true, - ["Sphinx"] = true, - ["Cyclops"] = true, - ["Minotaurs"] = true, - ["Goblins"] = true, - ["Honest Politicians"] = true, - ["Ghosts"] = true, - ["Scylla and Charybdis"] = true, - }, - }, - ["Games"] = { - "/sc 6_4", - true, - ["Action"] = true, - ["Puzzle"] = true, - ["Strategy"] = true, - ["Racing"] = true, - ["RPG"] = true, - ["Obstacle Course"] = true, - ["Tycoon"] = true, - ["Roblox"] = { - ["BrickBattle"] = true, - ["Community Building"] = true, - ["Roblox Minigames"] = true, - ["Contest Place"] = true, - }, - ["Board games"] = { - ["Chess"] = true, - ["Checkers"] = true, - ["Settlers of Catan"] = true, - ["Tigris and Euphrates"] = true, - ["El Grande"] = true, - ["Stratego"] = true, - ["Carcassonne"] = true, - }, - }, - ["Sports"] = { - "/sc 6_5", - true, - ["Hockey"] = true, - ["Soccer"] = true, - ["Football"] = true, - ["Baseball"] = true, - ["Basketball"] = true, - ["Volleyball"] = true, - ["Tennis"] = true, - ["Sports team practice"] = true, - ["Watersports"] = { - ["Surfing"] = true, - ["Swimming"] = true, - ["Water Polo"] = true, - }, - ["Winter sports"] = { - ["Skiing"] = true, - ["Snowboarding"] = true, - ["Sledding"] = true, - ["Skating"] = true, - }, - ["Adventure"] = { - ["Rock climbing"] = true, - ["Hiking"] = true, - ["Fishing"] = true, - ["Horseback riding"] = true, - }, - ["Wacky"] = { - ["Foosball"] = true, - ["Calvinball"] = true, - ["Croquet"] = true, - ["Cricket"] = true, - ["Dodgeball"] = true, - ["Squash"] = true, - ["Trampoline"] = true, - }, - }, - ["Movies/TV"] = { - "/sc 6_6", - true, - ["Science Fiction"] = true, - ["Animated"] = { ["Anime"] = true }, - ["Comedy"] = true, - ["Romantic"] = true, - ["Action"] = true, - ["Fantasy"] = true, - }, - ["Music"] = { - "/sc 6_7", - true, - ["Country"] = true, - ["Jazz"] = true, - ["Rap"] = true, - ["Hip-hop"] = true, - ["Techno"] = true, - ["Classical"] = true, - ["Pop"] = true, - ["Rock"] = true, - }, - ["Hobbies"] = { - "/sc 6_8", - true, - ["Computers"] = { - ["Building computers"] = true, - ["Videogames"] = true, - ["Coding"] = true, - ["Hacking"] = true, - }, - ["The Internet"] = { - ["lol. teh internets!"] = true, - ["Watching vids"] = true, - }, - ["Dance"] = true, - ["Gymnastics"] = true, - ["Listening to music"] = true, - ["Arts and crafts"] = true, - ["Martial Arts"] = { - ["Karate"] = true, - ["Judo"] = true, - ["Taikwon Do"] = true, - ["Wushu"] = true, - ["Street fighting"] = true, - }, - ["Music lessons"] = { - ["Playing in my band"] = true, - ["Playing piano"] = true, - ["Playing guitar"] = true, - ["Playing violin"] = true, - ["Playing drums"] = true, - ["Playing a weird instrument"] = true, - }, - }, - ["Location"] = { - "/sc 6_9", - true, - ["USA"] = { - ["West"] = { - ["Alaska"] = true, - ["Arizona"] = true, - ["California"] = true, - ["Colorado"] = true, - ["Hawaii"] = true, - ["Idaho"] = true, - ["Montana"] = true, - ["Nevada"] = true, - ["New Mexico"] = true, - ["Oregon"] = true, - ["Utah"] = true, - ["Washington"] = true, - ["Wyoming"] = true, - }, - ["South"] = { - ["Alabama"] = true, - ["Arkansas"] = true, - ["Florida"] = true, - ["Georgia"] = true, - ["Kentucky"] = true, - ["Louisiana"] = true, - ["Mississippi"] = true, - ["North Carolina"] = true, - ["Oklahoma"] = true, - ["South Carolina"] = true, - ["Tennessee"] = true, - ["Texas"] = true, - ["Virginia"] = true, - ["West Virginia"] = true, - }, - ["Northeast"] = { - ["Connecticut"] = true, - ["Delaware"] = true, - ["Maine"] = true, - ["Maryland"] = true, - ["Massachusetts"] = true, - ["New Hampshire"] = true, - ["New Jersey"] = true, - ["New York"] = true, - ["Pennsylvania"] = true, - ["Rhode Island"] = true, - ["Vermont"] = true, - }, - ["Midwest"] = { - ["Illinois"] = true, - ["Indiana"] = true, - ["Iowa"] = true, - ["Kansas"] = true, - ["Michigan"] = true, - ["Minnesota"] = true, - ["Missouri"] = true, - ["Nebraska"] = true, - ["North Dakota"] = true, - ["Ohio"] = true, - ["South Dakota"] = true, - ["Wisconsin"] = true, - }, - }, - ["Canada"] = { - ["Alberta"] = true, - ["British Columbia"] = true, - ["Manitoba"] = true, - ["New Brunswick"] = true, - ["Newfoundland"] = true, - ["Northwest Territories"] = true, - ["Nova Scotia"] = true, - ["Nunavut"] = true, - ["Ontario"] = true, - ["Prince Edward Island"] = true, - ["Quebec"] = true, - ["Saskatchewan"] = true, - ["Yukon"] = true, - }, - ["Mexico"] = true, - ["Central America"] = true, - ["Europe"] = { - ["France"] = true, - ["Germany"] = true, - ["Spain"] = true, - ["Italy"] = true, - ["Poland"] = true, - ["Switzerland"] = true, - ["Greece"] = true, - ["Romania"] = true, - ["Netherlands"] = true, - ["Great Britain"] = { - ["England"] = true, - ["Scotland"] = true, - ["Wales"] = true, - ["Northern Ireland"] = true, - }, - }, - ["Asia"] = { - ["China"] = true, - ["India"] = true, - ["Japan"] = true, - ["Korea"] = true, - ["Russia"] = true, - ["Vietnam"] = true, - }, - ["South America"] = { ["Argentina"] = true, ["Brazil"] = true }, - ["Africa"] = { ["Eygpt"] = true, ["Swaziland"] = true }, - ["Australia"] = true, - ["Middle East"] = true, - ["Antarctica"] = true, - ["New Zealand"] = true, - }, - ["Age"] = { - "/sc 6_10", - true, - ["Rugrat"] = true, - ["Kid"] = true, - ["Tween"] = true, - ["Teen"] = true, - ["Twenties"] = true, - ["Old"] = true, - ["Ancient"] = true, - ["Mesozoic"] = true, - ["I don't want to say my age. Don't ask."] = true, - }, - ["Mood"] = { - "/sc 6_11", - true, - ["Good"] = true, - ["Great!"] = true, - ["Not bad"] = true, - ["Sad"] = true, - ["Hyper"] = true, - ["Chill"] = true, - ["Happy"] = true, - ["Kind of mad"] = true, - }, - ["Boy"] = { "/sc 6_12", true }, - ["Girl"] = { "/sc 6_13", true }, - ["I don't want to say boy or girl. Don't ask."] = { - "/sc 6_14", - true, - }, - [1] = "/sc 6", - }, - ["Game"] = { - ["Let's build"] = { "/sc 7_0", true }, - ["Let's battle"] = { "/sc 7_1", true }, - ["Nice one!"] = { "/sc 7_2", true }, - ["So far so good"] = { "/sc 7_3", true }, - ["Lucky shot!"] = { "/sc 7_4", true }, - ["Oh man!"] = { "/sc 7_5", true }, - ["I challenge you to a fight!"] = { "/sc 7_6", true }, - ["Help me with this"] = { "/sc 7_7", true }, - ["Let's go to your game"] = { "/sc 7_8", true }, - ["Can you show me how do to that?"] = { "/sc 7_9", true }, - ["Backflip!"] = { "/sc 7_10", true }, - ["Frontflip!"] = { "/sc 7_11", true }, - ["Dance!"] = { "/sc 7_12", true }, - ["I'm on your side!"] = { "/sc 7_13", true }, - ["Game Commands"] = { - "/sc 7_14", - true, - ["regen"] = true, - ["reset"] = true, - ["go"] = true, - ["fix"] = true, - ["respawn"] = true, - }, - [1] = "/sc 7", - }, - ["Silly"] = { - ["Muahahahaha!"] = true, - ["all your base are belong to me!"] = true, - ["GET OFF MAH LAWN"] = true, - ["TEH EPIK DUCK IS COMING!!!"] = true, - ["ROFL"] = true, - ["1337"] = { - true, - ["i r teh pwnz0r!"] = true, - ["w00t!"] = true, - ["z0mg h4x!"] = true, - ["ub3rR0xXorzage!"] = true, - }, - }, - ["Yes"] = { - ["Absolutely!"] = true, - ["Rock on!"] = true, - ["Totally!"] = true, - ["Juice!"] = true, - ["Yay!"] = true, - ["Yesh"] = true, - }, - ["No"] = { - ["Ummm. No."] = true, - ["..."] = true, - ["Stop!"] = true, - ["Go away!"] = true, - ["Don't do that"] = true, - ["Stop breaking the rules"] = true, - ["I don't want to"] = true, - }, - ["Ok"] = { - ["Well... ok"] = true, - ["Sure"] = true, - }, - ["Uncertain"] = { - ["Maybe"] = true, - ["I don't know"] = true, - ["idk"] = true, - ["I can't decide"] = true, - ["Hmm..."] = true, - }, - [":-)"] = { - [":-("] = true, - [":D"] = true, - [":-O"] = true, - ["lol"] = true, - ["=D"] = true, - ["D="] = true, - ["XD"] = true, - [";D"] = true, - [";)"] = true, - ["O_O"] = true, - ["=)"] = true, - ["@_@"] = true, - [">_<"] = true, - ["T_T"] = true, - ["^_^"] = true, - ["<(0_0<) <(0_0)> (>0_0)> KIRBY DANCE"] = true, - [")';"] = true, - [":3"] = true, - }, - ["Ratings"] = { - ["Rate it!"] = true, - ["I give it a 1 out of 10"] = true, - ["I give it a 2 out of 10"] = true, - ["I give it a 3 out of 10"] = true, - ["I give it a 4 out of 10"] = true, - ["I give it a 5 out of 10"] = true, - ["I give it a 6 out of 10"] = true, - ["I give it a 7 out of 10"] = true, - ["I give it a 8 out of 10"] = true, - ["I give it a 9 out of 10"] = true, - ["I give it a 10 out of 10!"] = true, - }, - }, + SafeChat_List = SafeChat, CreateEnum "SafeChat" { "Level1", "Level2", "Level3" }, SafeChatTree = {}, TempSpaceLabel = nil,