There is an error in the script I have made but I have no idea what it is. The purpose of my script is to alert me if any asset is made by the ADMINS and MODS of ROBLOX it says this Workspace.Leaker.Script:16: 'then' expected near ',' but I do not see the error in my script please help me if you can Thank you
--HOW TO USE;
--Insert this script into a Part, and add a Sound to the part as well. When an item is found, it'll be named in the Output for you to see, and a sound will play
local objid = 23932048 -- Change this to the ID you want to start on. Make sure it's recent!
local framenumber = 1 -- Do not change this. This is how it counts how many items have been scanned.
local service = game:GetService("MarketplaceService")
local co = coroutine.create(function()
while true do
for i = 1,15 do
local num = objid + framenumber
local obj = service:GetProductInfo(num)
if obj.Creator ~= nil then
if obj.Creator.Name == "ROBLOX","Brighteyes","stickmasterluke","blockhaak","Builderman","Telamon","Matt Dusek","noob007","Keith","renderman","Madrak","RobloTim","timobius","jeditkacheff","jahrblox","compacalanche","GemLocker","njay","hotthoth","RobloYZ","ReeseMcBlox","ragnarokker","foster008","Limon","MajorTom4321","groundcontroll2","vaiobot","LittleParadise","teaandtoasties","goddessnoob","Thorasaur","FFJosh","MrDoomBringer","Stealth Pilot","Organzola","foster008","RowBlocks587","MSE6","Varia","Chro","RobloShorty","TheLorekt","Deezle" then
print("Item found! Name: "..obj.Name.." ID: "..num.."")
script.Parent.Sound:play()
end
end
script.Parent.Name = "Object Checked: "..num..""
framenumber = framenumber + 1
end
end
end)
coroutine.resume(co) -- Makes sure the coroutine will resume even if the script fails or breaks.
