
Key Required

-- Boot Rayfield
local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
-- Create main window
local Window = Rayfield:CreateWindow({
Name = "Untitled Drill Game auto harvester",
LoadingTitle = "Harvester loading",
LoadingSubtitle = "by Literallymymail",
ConfigurationSaving = { Enabled = true, FolderName = nil, FileName = "KeySpammerConfig" },
KeySystem = false
})
-- Add UI elements
local Tab = Window:CreateTab("Settings", nil)
local Section = Tab:CreateSection("Spam Settings")
-- Dropdown for key selection
local keyOptions = {}
for _, key in ipairs(Enum.KeyCode:GetEnumItems()) do
table.insert(keyOptions, key.Name)
end
local selectedKey = "E"
Tab:CreateDropdown({
Name = "Key to Spam",
Options = keyOptions,
CurrentOption = {selectedKey},
MultipleOptions = false,
Flag = "SpamKey",
Callback = function(option)
selectedKey = option[1]
end,
})
-- Slider for rate
local spamRate = 0.1
Tab:CreateSlider({
Name = "Spam Rate (seconds)",
Range = {0.01, 1},
Increment = 0.01,
Suffix = "s",
CurrentValue = spamRate,
Flag = "SpamRate",
Callback = function(value)
spamRate = value
end,
})
-- Toggle status label
Tab:CreateLabel("Press Ctrl+T to toggle spam")
-- Spamming logic variables
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local VirtualInputManager = game:GetService("VirtualInputManager")
local spamEnabled = false
local lastSpam = 0
-- Toggle spam on Ctrl+T
UserInputService.InputBegan:Connect(function(input, gp)
if gp then return end
if input.KeyCode == Enum.KeyCode.T and UserInputService:IsKeyDown(Enum.KeyCode.LeftControl) then
spamEnabled = not spamEnabled
Rayfield:Notify({
Title = "Spammer",
Content = "Spamming: " .. (spamEnabled and "ON" or "OFF"),
Duration = 2,
Image = nil,
Actions = {}
})
end
end)
-- Main loop
RunService.RenderStepped:Connect(function(dt)
if spamEnabled and tick() - lastSpam >= spamRate then
lastSpam = tick()
local kc = Enum.KeyCode[selectedKey]
VirtualInputManager:SendKeyEvent(true, kc, false, game)
VirtualInputManager:SendKeyEvent(false, kc, false, game)
end
end)



brother why would u dislike this script who ever it is