Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
- local Window = Rayfield:CreateWindow({
- Name = "Bob UI",
- LoadingTitle = "Loading Bob UI",
- LoadingSubtitle = "by Bob YT",
- ConfigurationSaving = {
- Enabled = true,
- FolderName = nil, -- Create a custom folder for your hub/game
- FileName = "Bob Hub"
- },
- Discord = {
- Enabled = false,
- Invite = "noinvitelink", -- The Discord invite code, do not include discord.gg/. E.g. discord.gg/ABCD would be ABCD
- RememberJoins = true -- Set this to false to make them join the discord every time they load it up
- },
- KeySystem = false, -- Set this to true to use our key system
- KeySettings = {
- Title = "Untitled",
- Subtitle = "Key System",
- Note = "No method of obtaining the key is provided",
- FileName = "Key", -- It is recommended to use something unique as other scripts using Rayfield may overwrite your key file
- SaveKey = true, -- The user's key will be saved, but if you change the key, they will be unable to use your script
- GrabKeyFromSite = false, -- If this is true, set Key below to the RAW site you would like Rayfield to get the key from
- Key = {"Hello"} -- List of keys that will be accepted by the system, can be RAW file links (pastebin, github etc) or simple strings ("hello","key22")
- }
- })
- local LarryTab = Window:CreateTab("👁🚪 Doors 🚪👁", nil)
- local LarrySection = LarryTab:CreateSection("👁🚪 Doors 🚪👁")
- local Button = LarryTab:CreateButton({
- Name = "FullBright 👍",
- Callback = function()
- -- Reference to the Lighting service
- local lighting = game:GetService("Lighting")
- -- Set Ambient and OutdoorAmbient to make the lighting bright
- lighting.Ambient = Color3.new(1, 1, 1) -- White ambient light
- lighting.OutdoorAmbient = Color3.new(0, 0, 0) -- White outdoor ambient light
- -- Optionally, you can also adjust other lighting properties as needed.
- lighting.Brightness = -100 -- Increase the overall brightness
- -- Print a message to confirm the change
- print("Lighting has been set to bright.")
- end,
- })
- local Button = LarryTab:CreateButton({
- Name = "Delete Gates 👍",
- Callback = function()
- -- Reference to the CurrentRooms folder
- local currentRoomsFolder = game.Workspace.CurrentRooms
- -- Check if the folder exists
- if currentRoomsFolder then
- -- Loop through all models inside CurrentRooms
- for _, roomModel in pairs(currentRoomsFolder:GetChildren()) do
- if roomModel:IsA("Model") then
- -- Check if the model is named "Gate"
- if roomModel.Name == "Gate" then
- -- Destroy the "Gate" model
- roomModel:Destroy()
- print("Found and deleted a 'Gate' model in a CurrentRooms model.")
- end
- end
- end
- else
- print("CurrentRooms folder not found.")
- end
- end,
- })
- local Slider = LarryTab:CreateSlider({
- Name = "Walk Speed",
- Range = {16, 21},
- Increment = 1,
- Suffix = "Speed",
- CurrentValue = 16,
- Flag = "Slider1", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
- Callback = function(Value)
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = (Value)
- end,
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement