Full script:
local module = {}
local MPS = game:GetService(“MarketplaceService”)
local Notification = game.ReplicatedStorage:FindFirstChild(“rblxClans | SendNotification”)
local setUpComplete = “5040535955”
local loadingSystems = “5040079061”
local smallLogo = “5040133345”
local bigLogo = “5039939443”
local bigLogo2 = “5039939443”
local bot = script.AI
local product
local spawnPoint
local maxRaidTime
local admins
local function startRaid(starter)
print(“not finished”)
end
local function stopRaid(stoper)
print(“not finished”)
end
local function check(id)
MPS.ProcessReceipt = function(receiptInfo)
if receiptInfo.ProductId == id then
local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
startRaid(player)
return Enum.ProductPurchaseDecision.PurchaseGranted
end
end
end
local function poorSettingsCheck(status, devProduct, part, raidTime)
if devProduct == 12345 then
print(“rblxClans Plugin | Raid System is incorrectly installed on the setting: ‘Developer Product ID’”)
end
if part == “game.Workspace.BasePlate” then – in “” cause its probally gonna error out
print(“rblxClans Plugin | Raid System is incorrectly installed on the setting: ‘Raid Spawn Point Part’”)
end
if raidTime <=60 then
print(“rblxClans Plugin | Raid System is incorrectly installed on the setting: ‘Raid Time’, Cant be under 1 minute”)
end
end
local function chatCommands()
game.Players.PlayerAdded:Connect(function(player)
for i, v in pairs(admins) do
if v.Name == player.Name then
player.Chatted:Connect(function(msg)
if msg == “!stopRaid” then
stopRaid(player)
print(“rblxClans Plugin | Raid System, “..player.Name..” forcefully stoped a raid by running a admin command”)
end
if msg == “!startRaid” then
startRaid(player)
print(“rblxClans Plugin | Raid System, “..player.Name..” forcefully started a raid by running a admin command”)
end
end)
end
end
end)
end
function module.forceStart()
startRaid(“Server”)
end
function module.setup()
–gotta make sure they dont spam this/accidentally duplicate stuff :facepalm:
if game.ReplicatedStorage:FindFirstChild(“rblxClans | SendNotification”) then
print(“rblxClans Plugin | Raid System, nice try its already there, therefore not going with the rest”)
else
script.NotificationScript.Parent = game.StarterPlayer.StarterPlayerScripts
local event = Instance.new(“RemoteEvent”)
event.Name = “rblxClans | SendNotification”
event.Parent = game.ReplicatedStorage
print(“rblxClans Plugin | Raid System, begining setup!”)
print(“rblxClans Plugin | Raid System, As we like to let you know what we setted up/added. a temp screengui in CoreGui Displaying setup status for 5 seconds, Notification LocalScript to handle ingame notifcations and Remote Event for our Module Script controling everything making it all possible to communicate with the Notification LocalScript sending RobloxGui/CoreGui Messages”)
print(“rblxClans Plugin | We send messages that are important while in studio mode to you via Output where your viewing this message! Our ScreenGui Located in CoreGui will in the future also display it with our own version of notification system incase you miss/new users miss our important output messages”)
end
end
function module.start(status, devProduct, part, raidTime, allowed)
if status == true then
print(“rblxClans Plugin | Raid System by DrxpLoxs is loading…”)
poorSettingsCheck()
chatCommands()
product = devProduct
spawnPoint = part
maxRaidTime = raidTime
admins = allowed
elseif status == false then
print(“rblxClans Plugin | Raid System by DrxpLoxs is not loading as it has been disabled by a clan devleoper :c”)
end
end
function module.purchase(player)
game.MarketplaceService:PromptProductPurchase(player, product)
check(product)
end
return module
Server Script:
local status = true – Is it enabled?
local devProduct = 12345 – Developer Product
local part = game.Workspace.Baseplate – Part where the raiders spawn
local raidTime = 300 – How long they raid, Default: 300 Seconds (5 Minutes)
local allowed = {“Username”, “Username2”} – List of admins allowed to stop/start raids, commands: !startRaid/!stopRaid, Default: “Username”, “Username2”
– HOW DO I START THIS???
– Simply create a Local Script and type the script.Parent mousebutton stuff and type this in the middle of it!
– require(11111).purchase(game.Players.LocalPlayer)
– HOW DO I FORCEFULLY START IT???
– require(11111).forceStart(game.Players.LocalPlayer)
–psst, allowed may be buggy 
require(11111).start(status, devProduct, part, raidTime, allowed)
–WARNING: BEFORE THIS WORKS PLEASE OPEN COMMAND BAR IN STUDIO AND RUN THIS:
–require(11111).setup()