Trying to prevent exploiters stealing tools

I was trying to make a script to protect a private tool against stealtools, I tried it in several ways, but it is still vulnerable, for being a LocalScript … could you help me how to protect it better?

My code:

local Player = game:GetService("Players").LocalPlayer
local ID = mygroupid
if (not Player:IsInGroup(ID)) then

I would like to know how to protect the tool better, because even with this script, the exploiter can still use the tool…

1 Like

Make it a server script. If they are in the group, fire a remote event to the client, and equip the tool. It’s the safest way to do it.

1 Like