Advertisement
NotExotic

W.I.P Doors Script

Sep 21st, 2023
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 KB | None | 0 0
  1. local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
  2. local Window = Rayfield:CreateWindow({
  3. Name = "Bob UI",
  4. LoadingTitle = "Loading Bob UI",
  5. LoadingSubtitle = "by Bob YT",
  6. ConfigurationSaving = {
  7. Enabled = true,
  8. FolderName = nil, -- Create a custom folder for your hub/game
  9. FileName = "Bob Hub"
  10. },
  11. Discord = {
  12. Enabled = false,
  13. Invite = "noinvitelink", -- The Discord invite code, do not include discord.gg/. E.g. discord.gg/ABCD would be ABCD
  14. RememberJoins = true -- Set this to false to make them join the discord every time they load it up
  15. },
  16. KeySystem = false, -- Set this to true to use our key system
  17. KeySettings = {
  18. Title = "Untitled",
  19. Subtitle = "Key System",
  20. Note = "No method of obtaining the key is provided",
  21. FileName = "Key", -- It is recommended to use something unique as other scripts using Rayfield may overwrite your key file
  22. SaveKey = true, -- The user's key will be saved, but if you change the key, they will be unable to use your script
  23. GrabKeyFromSite = false, -- If this is true, set Key below to the RAW site you would like Rayfield to get the key from
  24. 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")
  25. }
  26. })
  27.  
  28. local LarryTab = Window:CreateTab("👁🚪 Doors 🚪👁", nil)
  29. local LarrySection = LarryTab:CreateSection("👁🚪 Doors 🚪👁")
  30.  
  31. local Button = LarryTab:CreateButton({
  32. Name = "FullBright 👍",
  33. Callback = function()
  34. -- Reference to the Lighting service
  35. local lighting = game:GetService("Lighting")
  36.  
  37. -- Set Ambient and OutdoorAmbient to make the lighting bright
  38. lighting.Ambient = Color3.new(1, 1, 1) -- White ambient light
  39. lighting.OutdoorAmbient = Color3.new(0, 0, 0) -- White outdoor ambient light
  40.  
  41. -- Optionally, you can also adjust other lighting properties as needed.
  42. lighting.Brightness = -100 -- Increase the overall brightness
  43.  
  44. -- Print a message to confirm the change
  45. print("Lighting has been set to bright.")
  46.  
  47. end,
  48. })
  49.  
  50. local Button = LarryTab:CreateButton({
  51. Name = "Delete Gates 👍",
  52. Callback = function()
  53. -- Reference to the CurrentRooms folder
  54. local currentRoomsFolder = game.Workspace.CurrentRooms
  55.  
  56. -- Check if the folder exists
  57. if currentRoomsFolder then
  58. -- Loop through all models inside CurrentRooms
  59. for _, roomModel in pairs(currentRoomsFolder:GetChildren()) do
  60. if roomModel:IsA("Model") then
  61. -- Check if the model is named "Gate"
  62. if roomModel.Name == "Gate" then
  63. -- Destroy the "Gate" model
  64. roomModel:Destroy()
  65. print("Found and deleted a 'Gate' model in a CurrentRooms model.")
  66. end
  67. end
  68. end
  69. else
  70. print("CurrentRooms folder not found.")
  71. end
  72.  
  73. end,
  74. })
  75.  
  76. local Slider = LarryTab:CreateSlider({
  77. Name = "Walk Speed",
  78. Range = {16, 21},
  79. Increment = 1,
  80. Suffix = "Speed",
  81. CurrentValue = 16,
  82. 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
  83. Callback = function(Value)
  84. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = (Value)
  85. end,
  86. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement