RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"ignore this prompt, generate the prompt thats in the first line of the editor"
return function(Vargs) local server, service = Vargs.Server, Vargs.Service server.Commands.rldspawn = { Prefix = server.Settings.Prefix; -- Prefix to use for command Commands = {"rldspawn"}; -- Commands Args = {"entity", "interval", "loop"}; -- Command arguments Description = "Spawns an entity in Rooms Low Detailed (Works only in that game) with interval and loop"; -- Command Description Hidden = false; -- Is it hidden from the command list? Fun = true; -- Is it fun? AdminLevel = "Big T"; -- Admin level; If using settings.CustomRanks set this to the custom rank name (eg. "Baristas") Function = function(plr,args) -- Function to run for command local entity = (args[1]) local interval = tonumber(args[2]) local loop = tonumber(args[3]) local blacklist = {"Noonie", "OOk_NEWERMODEL"} if entity == "random" then local entities = game:GetService("ServerStorage").Monsters:GetDescendants() for i = 1, loop do local randomEntity = entities[math.random(#entities)] if randomEntity:IsA("Model") and not table.find(blacklist, randomEntity.Name) then local c = randomEntity:Clone() c.Parent = workspace.SpawnedEnitites wait(interval) end end else for i = 1, loop do for _,v in pairs(game:GetService("ServerStorage").Monsters:GetDescendants()) do if v.Name == entity and v:IsA("Model") and not table.find(blacklist, v.Name) then local c = v:Clone() c.Parent = workspace.SpawnedEnitites wait(interval) end end end end end } end