Advertisement
nafasasdase2

Mall Drifters Script

Dec 27th, 2024
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.75 KB | Gaming | 0 0
  1. local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
  2.  
  3. local Window = Rayfield:CreateWindow({
  4. Name = "Mall Drifters Script πŸš—",
  5. Icon = 0, -- Icon in Topbar. Can use Lucide Icons (string) or Roblox Image (number). 0 to use no icon (default).
  6. LoadingTitle = "Mall Drifters Script",
  7. LoadingSubtitle = "",
  8. Theme = "Amethyst", -- Check https://docs.sirius.menu/rayfield/configuration/themes
  9.  
  10. DisableRayfieldPrompts = false,
  11. DisableBuildWarnings = false, -- Prevents Rayfield from warning when the script has a version mismatch with the interface
  12.  
  13. ConfigurationSaving = {
  14. Enabled = false,
  15. FolderName = nil, -- Create a custom folder for your hub/game
  16. FileName = "MD hub"
  17. },
  18.  
  19. Discord = {
  20. Enabled = false, -- Prompt the user to join your Discord server if their executor supports it
  21. Invite = "noinvitelink", -- The Discord invite code, do not include discord.gg/. E.g. discord.gg/ABCD would be ABCD
  22. RememberJoins = true -- Set this to false to make them join the discord every time they load it up
  23. },
  24.  
  25. KeySystem = false, -- Set this to true to use our key system
  26. KeySettings = {
  27. Title = "Untitled",
  28. Subtitle = "Key System",
  29. Note = "No method of obtaining the key is provided", -- Use this to tell the user how to get a key
  30. FileName = "Key", -- It is recommended to use something unique as other scripts using Rayfield may overwrite your key file
  31. SaveKey = true, -- The user's key will be saved, but if you change the key, they will be unable to use your script
  32. GrabKeyFromSite = false, -- If this is true, set Key below to the RAW site you would like Rayfield to get the key from
  33. 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")
  34. }
  35. })
  36.  
  37. local MainTab = Window:CreateTab("Christmas EventπŸŽ„", nil) -- Title, Image
  38. local MainSection = MainTab:CreateSection("Auto Collect")
  39.  
  40.  
  41. local Button = MainTab:CreateButton({
  42. Name = "Auto collect Presents",
  43. Callback = function()
  44.  
  45. local targetUsername = "soenrts"
  46.  
  47. -- Find the "Present" model inside the "gifts" folder
  48. local present = game.workspace.Presents.Gifts:FindFirstChild("Present")
  49.  
  50. -- Check if the "Present" model exists and contains a "Base" part
  51. if present then
  52. local basePart = present:FindFirstChild("Base")
  53.  
  54. -- If the "Base" part exists
  55. if basePart then
  56. -- Find the player by their username
  57. local player = game.Players:FindFirstChild(targetUsername)
  58.  
  59. if player then
  60. -- Check if the player has a character and a primary part
  61. if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  62. -- Teleport the player to the position of the "Base" part
  63. player.Character:SetPrimaryPartCFrame(basePart.CFrame)
  64. else
  65. warn(targetUsername .. " does not have a valid character.")
  66. end
  67. else
  68. warn("Player with username '" .. targetUsername .. "' not found!")
  69. end
  70. else
  71. warn("Base part not found inside Present!")
  72. end
  73. else
  74. warn("Present model not found!")
  75. end
  76.  
  77. Rayfield:Notify({
  78. Title = "Teleport",
  79. Content = "Teleported to the nearest Present",
  80. Duration = 6.5,
  81. Image = 4483362458,
  82. })
  83. end,
  84. })
  85.  
  86. local MainSection = MainTab:CreateSection("ESP")
  87.  
  88. local Button = MainTab:CreateButton({
  89. Name = "Present ESP",
  90. Callback = function()
  91.  
  92. -- Function to create a "Present" text above each present
  93. local function createPresentText(present)
  94. -- Create a BillboardGui for displaying text above the Present
  95. local billboardGui = Instance.new("BillboardGui")
  96. billboardGui.Parent = present -- Set the parent to the Present model
  97. billboardGui.Adornee = present -- Attach the BillboardGui to the Present model
  98. billboardGui.Size = UDim2.new(0, 200, 0, 50) -- Set the size of the text box
  99. billboardGui.StudsOffset = Vector3.new(0, 5, 0) -- Position the text above the model
  100. billboardGui.AlwaysOnTop = true -- Make sure the text is always visible
  101.  
  102. -- Set the text properties
  103. local textLabel = Instance.new("TextLabel")
  104. textLabel.Parent = billboardGui
  105. textLabel.Size = UDim2.new(1, 0, 1, 0) -- Fill the BillboardGui with the text
  106. textLabel.Text = "Present" -- The text to display
  107. textLabel.TextColor3 = Color3.fromRGB(255, 0, 0) -- Red text color
  108. textLabel.TextStrokeTransparency = 0.8 -- Make the text have a stroke for better visibility
  109. textLabel.TextSize = 40 -- Size of the text
  110. textLabel.BackgroundTransparency = 1 -- Make the background invisible
  111. textLabel.TextScaled = true -- Automatically scale the text to fit
  112.  
  113. -- Blink effect: Toggle text visibility a few times
  114. local blinkCount = 5 -- Number of blinks
  115. local blinkDelay = 0.5 -- Delay between each blink
  116.  
  117. -- Create a loop for blinking effect
  118. for i = 1, blinkCount do
  119. textLabel.Visible = not textLabel.Visible -- Toggle visibility
  120. wait(blinkDelay)
  121. end
  122.  
  123. -- Make the text always visible after the blinking effect
  124. textLabel.Visible = true
  125. end
  126.  
  127. -- Find all Present models inside the "Presents" folder
  128. local presentsFolder = game.workspace.Presents.Gifts
  129. local presents = presentsFolder:GetChildren()
  130.  
  131. -- Loop through each present and create the text
  132. for _, present in ipairs(presents) do
  133. if present:IsA("Model") and present:FindFirstChild("Base") then
  134. createPresentText(present)
  135. end
  136. end
  137.  
  138. end,
  139. })
  140.  
  141.  
  142. local Button = MainTab:CreateButton({
  143. Name = "Present ESP Off",
  144. Callback = function()
  145.  
  146. -- Function to remove all BillboardGui objects in the "Present" models
  147. local function removeBillboardGuis()
  148. -- Get the folder containing the Presents
  149. local presentsFolder = game.workspace.Presents.Gifts
  150.  
  151. -- Loop through each model in the folder
  152. for _, model in ipairs(presentsFolder:GetChildren()) do
  153. -- Check if the model is named "Present"
  154. if model:IsA("Model") and model.Name == "Present" then
  155. -- Loop through all descendants of the model (including nested children)
  156. for _, child in ipairs(model:GetDescendants()) do
  157. if child:IsA("BillboardGui") then
  158. -- Destroy the BillboardGui
  159. print("Removing BillboardGui from", model.Name) -- Debugging line
  160. child:Destroy()
  161. end
  162. end
  163. end
  164. end
  165. end
  166.  
  167. -- Call the function to remove the BillboardGuis
  168. removeBillboardGuis()
  169.  
  170.  
  171.  
  172. Rayfield:Notify({
  173. Title = "Present ESP",
  174. Content = "Turned Off",
  175. Duration = 6.5,
  176. Image = 4483362458,
  177. })
  178.  
  179. end,
  180. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement