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)

5 comments

0

I also tried to print the table but it didnt work at all either :/

0

Did you pass the table as an argument?

0

yes

0

try adding a else, just to test...

0

i have