Ok so iv been trying for hours this is all i could do D: please help!
function unminion(part)
if part.Parent == p.Character then return end
if part.Parent:FindFirstChild("Humanoid") ~= nil then
v = part.Parent.Name
for i,x in pairs(minions) do
if (string.upper(v) == string.upper(x)) then
table.remove(x,v)
end
end
end
end

5 comments
What is the table here?
This is just the function part the table is minions
Instead of "v" on line 7, try "i", to index the "minions" table & remove that value.
No that didnt work D:
Oops, the first parameter of the "remove" method for the "table" class should be a table value. So try "table.remove(minions, i).