Advertisement
NotExotic

babft

Sep 21st, 2023 (edited)
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.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 BABFTTab = Window:CreateTab("⛵ Build a Boat ⛵", nil)
  29. local BABFTSection = BABFTTab:CreateSection("⛵ Build a Boat ⛵")
  30.  
  31. local Button = BABFTTab:CreateButton({
  32. Name = "Delete Water 👍",
  33. Callback = function()
  34. -- Reference to the part you want to delete
  35. local waterPart = game.Workspace:FindFirstChild("Water")
  36.  
  37. -- Check if the part exists
  38. if waterPart then
  39. -- Destroy the part
  40. waterPart:Destroy()
  41. print("Water part has been deleted.")
  42. else
  43. print("Water part not found in the workspace.")
  44. end
  45. end,
  46. })
  47.  
  48. local Button = BABFTTab:CreateButton({
  49. Name = "Delete Trees 👍",
  50. Callback = function()
  51. -- Reference to the model you want to delete
  52. local treesModel = game.Workspace:FindFirstChild("Trees")
  53.  
  54. -- Check if the model exists
  55. if treesModel then
  56. -- Destroy the model and its children
  57. treesModel:Destroy()
  58. print("Trees model has been deleted.")
  59. else
  60. print("Trees model not found in the workspace.")
  61. end
  62. end,
  63. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement