v = script.Parent.Parent.canDrop
click = script.Parent.ClickDetector
function wat(player)
if player.TeamColor == script.Parent.Parent.TeamColor.Value then
v.Value = true
print("Can Drop")
elseif v.Value == true then
v.Value = false
print("Can not Drop")
end
end
click.MouseClick:connect(wat)
|