Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Scipt not printing table?

Asked by
iladoga 129
5 years ago

I have a script here that when fired checks if a player has a string in a table stored in a local script but I transferred it over to a server script. Basically the reason for this is that exploiters can fire any remote event and if they do they could get free items. Unless we detect if they have the item in a table. But for some reason its not working at all? it doesn't even print the table? I am so confused someone please help!

RemoteEvents.KniveEvents.EquipKnife.OnServerEvent:connect(function(plr,knifename,plrknifes)
    for i,v in ipairs(plrknifes) do
        if knifename == v then
            print("This script does not work at all!")
        end
    end
end)

0
I also tried to print the table but it didnt work at all either :/ iladoga 129 — 5y
0
Did you pass the table as an argument? SirDerpyHerp 262 — 5y
0
yes iladoga 129 — 5y
0
try adding a else, just to test... Leamir 3138 — 5y
0
i have iladoga 129 — 5y

Answer this question