Advertisement
NotExotic

Piggy

Sep 22nd, 2023
64
-1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.71 KB | None | 0 1
  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("🐷 Piggy 🐷", nil)
  29. local LarrySection = LarryTab:CreateSection("🐷 Piggy 🐷")
  30.  
  31. -- TELEPORT TO the Huge Machine
  32.  
  33. local Button = LarryTab:CreateButton({
  34. Name = "Deletes Doors 👍",
  35. Callback = function()
  36. -- Reference to the House model
  37. local houseModel = game.Workspace:FindFirstChild("House")
  38.  
  39. -- Check if the House model exists
  40. if houseModel then
  41. -- Destroy the House model and its children
  42. houseModel:Destroy()
  43. print("House model has been deleted.")
  44. else
  45. print("House model not found in the workspace.")
  46. end
  47. end,
  48. })
  49.  
  50. local Button = LarryTab:CreateButton({
  51. Name = "Teleports all items to localplayer 👍",
  52. Callback = function()
  53. -- Reference to the local player
  54. local player = game.Players.LocalPlayer
  55.  
  56. -- Reference to the folder containing the parts to teleport
  57. local folderToTeleport = game.Workspace:FindFirstChild("-2125751531771736300")
  58.  
  59. -- Check if the folder and the local player exist
  60. if folderToTeleport and player then
  61. -- Iterate through all the parts in the folder
  62. for _, part in ipairs(folderToTeleport:GetChildren()) do
  63. if part:IsA("BasePart") then
  64. -- Teleport each part to the local player's position
  65. part.CFrame = player.Character.HumanoidRootPart.CFrame
  66. end
  67. end
  68. print("Teleported all parts in the folder to the local player.")
  69. else
  70. print("Folder or local player not found.")
  71. end
  72.  
  73. end,
  74. })
  75.  
  76.  
  77. local Button = LarryTab:CreateButton({
  78. Name = "PH 👍",
  79. Callback = function()
  80.  
  81. end,
  82. })
  83.  
  84.  
  85. -- Reference to the local player
  86. local player = game.Players.LocalPlayer
  87.  
  88. -- Reference to the folder containing the parts to teleport
  89. local folderToTeleport = game.Workspace:FindFirstChild("-2125751531771736300")
  90.  
  91. -- Check if the folder and the local player exist
  92. if folderToTeleport and player then
  93. -- Iterate through all the parts in the folder
  94. for _, part in ipairs(folderToTeleport:GetChildren()) do
  95. if part:IsA("BasePart") then
  96. -- Teleport each part to the local player's position
  97. part.CFrame = player.Character.HumanoidRootPart.CFrame
  98. end
  99. end
  100. print("Teleported all parts in the folder to the local player.")
  101. else
  102. print("Folder or local player not found.")
  103. end
  104.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement