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 = "Mall Drifters Script π",
- Icon = 0, -- Icon in Topbar. Can use Lucide Icons (string) or Roblox Image (number). 0 to use no icon (default).
- LoadingTitle = "Mall Drifters Script",
- LoadingSubtitle = "",
- Theme = "Amethyst", -- Check https://docs.sirius.menu/rayfield/configuration/themes
- DisableRayfieldPrompts = false,
- DisableBuildWarnings = false, -- Prevents Rayfield from warning when the script has a version mismatch with the interface
- ConfigurationSaving = {
- Enabled = false,
- FolderName = nil, -- Create a custom folder for your hub/game
- FileName = "MD hub"
- },
- Discord = {
- Enabled = false, -- Prompt the user to join your Discord server if their executor supports it
- 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", -- Use this to tell the user how to get a key
- 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 MainTab = Window:CreateTab("Christmas Eventπ", nil) -- Title, Image
- local MainSection = MainTab:CreateSection("Auto Collect")
- local Button = MainTab:CreateButton({
- Name = "Auto collect Presents",
- Callback = function()
- local targetUsername = "soenrts"
- -- Find the "Present" model inside the "gifts" folder
- local present = game.workspace.Presents.Gifts:FindFirstChild("Present")
- -- Check if the "Present" model exists and contains a "Base" part
- if present then
- local basePart = present:FindFirstChild("Base")
- -- If the "Base" part exists
- if basePart then
- -- Find the player by their username
- local player = game.Players:FindFirstChild(targetUsername)
- if player then
- -- Check if the player has a character and a primary part
- if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
- -- Teleport the player to the position of the "Base" part
- player.Character:SetPrimaryPartCFrame(basePart.CFrame)
- else
- warn(targetUsername .. " does not have a valid character.")
- end
- else
- warn("Player with username '" .. targetUsername .. "' not found!")
- end
- else
- warn("Base part not found inside Present!")
- end
- else
- warn("Present model not found!")
- end
- Rayfield:Notify({
- Title = "Teleport",
- Content = "Teleported to the nearest Present",
- Duration = 6.5,
- Image = 4483362458,
- })
- end,
- })
- local MainSection = MainTab:CreateSection("ESP")
- local Button = MainTab:CreateButton({
- Name = "Present ESP",
- Callback = function()
- -- Function to create a "Present" text above each present
- local function createPresentText(present)
- -- Create a BillboardGui for displaying text above the Present
- local billboardGui = Instance.new("BillboardGui")
- billboardGui.Parent = present -- Set the parent to the Present model
- billboardGui.Adornee = present -- Attach the BillboardGui to the Present model
- billboardGui.Size = UDim2.new(0, 200, 0, 50) -- Set the size of the text box
- billboardGui.StudsOffset = Vector3.new(0, 5, 0) -- Position the text above the model
- billboardGui.AlwaysOnTop = true -- Make sure the text is always visible
- -- Set the text properties
- local textLabel = Instance.new("TextLabel")
- textLabel.Parent = billboardGui
- textLabel.Size = UDim2.new(1, 0, 1, 0) -- Fill the BillboardGui with the text
- textLabel.Text = "Present" -- The text to display
- textLabel.TextColor3 = Color3.fromRGB(255, 0, 0) -- Red text color
- textLabel.TextStrokeTransparency = 0.8 -- Make the text have a stroke for better visibility
- textLabel.TextSize = 40 -- Size of the text
- textLabel.BackgroundTransparency = 1 -- Make the background invisible
- textLabel.TextScaled = true -- Automatically scale the text to fit
- -- Blink effect: Toggle text visibility a few times
- local blinkCount = 5 -- Number of blinks
- local blinkDelay = 0.5 -- Delay between each blink
- -- Create a loop for blinking effect
- for i = 1, blinkCount do
- textLabel.Visible = not textLabel.Visible -- Toggle visibility
- wait(blinkDelay)
- end
- -- Make the text always visible after the blinking effect
- textLabel.Visible = true
- end
- -- Find all Present models inside the "Presents" folder
- local presentsFolder = game.workspace.Presents.Gifts
- local presents = presentsFolder:GetChildren()
- -- Loop through each present and create the text
- for _, present in ipairs(presents) do
- if present:IsA("Model") and present:FindFirstChild("Base") then
- createPresentText(present)
- end
- end
- end,
- })
- local Button = MainTab:CreateButton({
- Name = "Present ESP Off",
- Callback = function()
- -- Function to remove all BillboardGui objects in the "Present" models
- local function removeBillboardGuis()
- -- Get the folder containing the Presents
- local presentsFolder = game.workspace.Presents.Gifts
- -- Loop through each model in the folder
- for _, model in ipairs(presentsFolder:GetChildren()) do
- -- Check if the model is named "Present"
- if model:IsA("Model") and model.Name == "Present" then
- -- Loop through all descendants of the model (including nested children)
- for _, child in ipairs(model:GetDescendants()) do
- if child:IsA("BillboardGui") then
- -- Destroy the BillboardGui
- print("Removing BillboardGui from", model.Name) -- Debugging line
- child:Destroy()
- end
- end
- end
- end
- end
- -- Call the function to remove the BillboardGuis
- removeBillboardGuis()
- Rayfield:Notify({
- Title = "Present ESP",
- Content = "Turned Off",
- Duration = 6.5,
- Image = 4483362458,
- })
- end,
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement