Hey there, this script is for arrest system. However, when i click on it it says "Grab is not valid member of backpack" how do i fix it?
script.Parent.ClickDetector.MouseClick:Connect(function(Player)
local PlayerGui = Player:WaitForChild("PlayerGui")
local Suspect = game.Players:FindFirstChild(Player.Backpack.Grab.Suspect.Value)
if Suspect then
local Gui = game.ServerStorage.NYPDBookPlayer:Clone()
Gui.Parent = Player
Gui.Suspect.Value = Suspect
end
end)
Grab is an tool by the way.

8 comments
is any instance named 'Grab' in the Player's backpack
is 'Suspect' a string value (also please reply on the comments)
Yes,there is suspect value inside grab tool.
Ok, but is it a string value, because when game.Players finds an instance named (Suspect.Value) it needs to be a string value (at least that i know of)
It is an string value.
Tools are parented to the player's character when they are equipped and are parented to the Backpack when they are unequipped. If the Grab tool is equipped, then it isn't in the backpack.
Again, what Steel said, whenever you equip a tool, it moves to your character, therefore not in your backpack <--- Basically a much simpler version of saying it
But it is not equipped and still not working