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 BABFTTab = Window:CreateTab("⛵ Build a Boat ⛵", nil)
- local BABFTSection = BABFTTab:CreateSection("⛵ Build a Boat ⛵")
- local Button = BABFTTab:CreateButton({
- Name = "Delete Water 👍",
- Callback = function()
- -- Reference to the part you want to delete
- local waterPart = game.Workspace:FindFirstChild("Water")
- -- Check if the part exists
- if waterPart then
- -- Destroy the part
- waterPart:Destroy()
- print("Water part has been deleted.")
- else
- print("Water part not found in the workspace.")
- end
- end,
- })
- local Button = BABFTTab:CreateButton({
- Name = "Delete Trees 👍",
- Callback = function()
- -- Reference to the model you want to delete
- local treesModel = game.Workspace:FindFirstChild("Trees")
- -- Check if the model exists
- if treesModel then
- -- Destroy the model and its children
- treesModel:Destroy()
- print("Trees model has been deleted.")
- else
- print("Trees model not found in the workspace.")
- end
- end,
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement