I’m trying to make an anti-lua virus scanner, and everytime I try to use the RemoteFunction using “game”, it always creates an error saying " [The current identity (5) cannot Class security check (lacking permission 6)]" Can someone please help me solve this problem, that would be great!
ScanButton.Click:Connect(function()
for i, v in pairs(game:GetChildren()) do
script.Parent.Scan:Invoke(v)
end
end)
Some services in the DataModel are locked by Roblox - in other words nothing can access them, not even plugins. Only Roblox scripts can. You might wanna wrap this in a pcall.
local children = game:GetChildren()
for i = 1, #children do
local ok, service = pcall(function()
return children[i]
end)
if ok then -- Proceed with scanning service
end
end
Also by the way, BindableFunctions are meant for returning things back to the caller. If you will not return anything (you are throwing away the return value in your script), use a BindableEvent instead.